I'm using mailutils and sendmail, I have installed it and configured using command 'sudo sendmailconfig'. When I use command

echo "Message Body" | mail -s "Message Subject" receiver@gmail.com

nothing happens, I don't receive any email.

I want that mail should come from my system(not from other gmail account) to my gmail account(receiver@gmail.com)

I have tried postfix too but nothing happens. I am able to send mail from one gmail account to another gmail account using ssmtp.

  • The main problem might be, that your mail is rejected by googlemails spam filters. Check for returning mail in your user's inbox. Dynamic IPs are usually on blacklist mail providers use for spam prevention. – Fiximan May 28 at 11:17
  • a) Buy a domain including mail address service, use that address and forward mail via it. b) Project sounds like university? Use the universities smarthost system and send it from there. c) Proper SPF and DKIM setups. ... no trivial task, spam ruined simple mail servers as simple mail servers made spam too easy – Fiximan May 28 at 11:32
  • Can I use linux server for sending mails ? – Abhishek Lalwani May 28 at 11:42
  • I don't understand what you mean. You PC IS a mail server when you send mail via the mail command. To use a smarthost you'll have to adapt the postfix (or exim) settings. – Fiximan May 28 at 11:44
  • I am very new to all this. So how do I adopt to postfix settings. – Abhishek Lalwani May 28 at 11:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.