Connect with us

Hi, what are you looking for?

Linux

How to Monitor Postfix Mail Server on Ubuntu 16.04

How to Monitor Postfix Mail Server on Ubuntu 16.04 / Debian 8 / Linux mint 17. For monitoring Postfix mail server we use the package known as Pflogsumm. It is written in perl programming language and it monitors Postfix mail server log files and its activities. This tutorial show how you will be configure the Pflogsumm and use it for its log monitoring purposes for postfix mail server. It is recommended to monitor your Postfix mail servers to protect against a external attacks and unwanted usages.

Step-1 (Check the mail log file first for monitoring purposes)
$ cat /var/log/mail.log
Step-2 (Install the Pflogsumm from default repositories)
$ sudo apt-get update && sudo apt-get install pflogsumm
Step-3 (After successfully installation done check the mail log files first)
$ pflogsumm /var/log/mail.log

After that you will see the huge amount of log information of postfix mail server using mail log files.

Step-4 (Setup CRON jobs to Schedule your Reports)

Finally Setup the Cron job to add a pflogsumm to a postfix mail server.

$ sudo vi /etc/cron.daily/pflogsumm

Add the given lines:

Advertisement. Scroll to continue reading.
pflogsumm -d yesterday /var/log/mail.log | mail -s "Postfix log summaries" postmaster@techbrown.com

Note: You must replace the email postmaster@techbrown.com with your desired e-mail ID.

Step-5 (Finally Make the script executable using the chmod command)
$ sudo chmod u+x /etc/cron.daily/pflogsumm

Finally you have setup regular emails status with Postfix mail server using pflogsumm.

Final Words

Congratulations now you have Monitor the Postfix Mail Server on respective Linux distribution with ease. Most important thing you have to follow all the steps so carefully to accomplish above task. If you have any questions or doubt then you need to use the comment section below.

Comments
Advertisement
Advertisement
Advertisement

You May Also Like

Windows

How to auto upgrade JioFi firmware for JioFi 2 / JioFi 3 / JioFi 4 / JioFi 5 / JioFi 6 and other JioFi...

Windows

Internet is the most important public network for connecting to the WEB. For internet connection requirement the ISP is required as well as it...

Windows

How to download and install the Mobile Intel 4 Series Express Chipset Graphics Drivers for Windows 10.  Windows 10 is the one of the...

Windows

How to Install and Configure PCSX2 on Windows 10. The Windows 10 is the most recommended operating system for the Games. In stream platform...