auzen
By:
auzen

Emails not being sent (postfix)

May 17, 2017 608 views
Apache Email DNS CentOS

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.

2 Answers

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

  • Oh, it's not there plus I haven't changed anything beside hostname, etc on configuration file.

    • I don't know CentOS very well, but could it be /var/log/maillog instead?
      Otherwise it is probably going into /var/log/syslog without being separated into it's own log file.

@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.

Have another answer? Share your knowledge.