Postfix Logs
Posted by mike Filed Under Troubleshooting with Comments Off
Checking Logs
The file /etc/syslog.conf contains a line that is used to copy all mail by syslogd (CentOS). Note that Suse uses syslog-ng and so that config file is found at /etc/syslog-ng/syslog-ng.conf (see below).
Here is that line(CentOS):
# Log all the mail messages in one place.
mail.* -/var/log/maillog
So the location of the maillog is listed and you can use this command to locate the most notable issues with Postfix.
# egrep ' (reject|warning|error|fatal|panic):' /var/log/maillog
Here is an example.
# egrep ' (reject|warning|error|fatal|panic):' /var/log/maillog
Jun 6 17:53:09 admin131 postfix[5195]: warning: My hostname admin131 is not a f ully qualified name – set myhostname or mydomain in /etc/postfix/main.cf
Jun 6 17:53:10 admin131 postfix/master[5196]: warning: My hostname admin131 is not a fully qualified name – set myhostname or mydomain in /etc/postfix/main.cf
Jun 6 17:53:10 admin131 postfix/postfix-script: warning: My hostname admin131 i s not a fully qualified name – set myhostname or mydomain in /etc/postfix/main.c f
Jun 6 17:53:10 admin131 postfix/postfix-script: fatal: the Postfix mail system is not running
Jun 6 18:38:52 admin131 postfix/master[5570]: fatal: pipe: Cannot allocate memo ry
Jun 6 18:59:38 admin131 postfix/postmap[5712]: warning: /etc/postfix/canonical, line 227: expected format: key whitespace value
Jun 6 19:00:18 admin131 postfix/postmap[5743]: warning: /etc/postfix/canonical, line 227: expected format: key whitespace value
Jun 6 18:38:52 admin131 postfix/master[5570]: fatal: pipe: Cannot allocate memory
Jun 6 18:59:38 admin131 postfix/postmap[5712]: warning: /etc/postfix/canonical, line 227: expected format: key whitespace value
Jun 6 19:00:18 admin131 postfix/postmap[5743]: warning: /etc/postfix/canonical, line 227: expected format: key whitespace value

