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.

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.

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

Submit an Answer