February 26, 2020

Category: Postfix

Add the email subject to your Postfix logs

To record the email subject in the Postfix logs, simply add the following line to your Postfix header checks file: /^subject:/ INFO With this done, restart the Postfix service.  On Centos that is with the following command: service postfix restart That’s it! Or is it?  If you haven’t enabled header checks yet you need to do […]

BASH :: A quick script to help you search Postfix logs

Have you ever has to grep through mail logs on Postfix?  What you quickly find is there are two problems which quickly become really irritating: You grep based on email address and so only get the lines relevant to that email address.  Sounds obvious but that means if you search for a sender, you won’t […]

BASH :: check the Postfix mail queues for Nagios

Here is a tiny bash script that will check your Postfix mail queue and exit the code dependant on the result.  Often mail relays sit in the background not really ever breaking and therefore never being monitored.  I wrote this little check so the IT team would be the first to know if mail started […]

Subscribe to SYNACK via Email