Wednesday, August 11, 2010

Watch errors in linux maillog fly by…

Whether you are using Postfix or Sendmail with Spamassassin, you can watch your maillogs within an ssh session by using the following code:

tail -f /var/log/maillog | egrep '(reject|error|warning|fatal|panic)'

This will help to troubleshoot rejected emails or emails rejected due to Spamassassin blocking the email as Spam.