Question

Emails not being sent (postfix)

Hello there. I’m a completely a newbie to this email stuff. Anyway I have installed and configured postfix and mailx on my Centos 6 by following this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-postfix-on-centos-6

However I tried to send an test email by typing ‘mail’ into terminal. but it does not send an email.

Where should I check for error logs? Any help would be appreciated.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@auzen @hansen

On CentOS, the mail log is /var/log/maillog.

That being said, when it comes to setting up a mail server and actually getting the mail that you send to land in the recipients inbox instead of spam/junk folder, there’s a lot more to the setup.

PTR (Reverse DNS), SPF, DKIM, and DMARC all come in to play and need to be setup as upstream will check during validation – if something is amiss, the e-mail will be rejected or flagged as spam.

Hi @auzen Your mail log should be located in /var/log/mail.log unless you’ve changed that configuration in Postfix.