Making Postfix daemon programs more verbose
Append one or more “-v” options to selected daemon definitions in /etc/postfix/master.cf and type “postfix reload“. This will cause a lot of activity to be logged to the syslog daemon. For example, to make the Postfix SMTP server process more verbose:
/etc/postfix/master.cf: smtp inet n - n - - smtpd -v
run Postfix on multiple SMTP ports
In this example, an alternate SMTP port 2525 is added in addition to default SMTP port 25.
Connect to a Linux server via SSH.
Create a backup file of the current master.cf file:
cp /etc/postfix/master.cf /etc/postfix/master.cf.bak
Open the file /etc/postfix/master.cf in any text editor. In this example, we are using the vi editor:
vi /etc/postfix/master.cf
Add a line with a new SMTP port like this:
====================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ====================================================================
smtp inet n – y – – smtpd
2525 inet n – y – – smtpd
Save the changes and close the file.
Restart Postfix to apply the changes: service postfix restart