Changes

Postfix Tips and Tricks

1,486 bytes added, 00:51, 5 June 2015
/* Determine Installed Version */
The following lines were added (+) and removed (-):
=== process the queue now ====== queue processing ===process entire queue nowSchedule immediate delivery of all mail that is queued for the domain foo.com postqueue -s foo.com postsuper -d messageidqshape prints Postfix queue domain and age distribution information. qshape activeshows the number of emails being sent to each domain and how long they have been in the active queue qshape deferredshows the number of emails in the deferred queue for each domain and how long they have been thereYour installation may not have qshape compiled by default.  qshape does not seem to be included with the Redhat / Fedora / Trustix / CentOS postfix packages.  It needs to be added.  For those distributions 'yum install postfix-perl-scripts'== Send Mail Test ==check if postfix can send emails echo "Hello this is a test." | mail -s "Testing" admin@foo.comfollow the message by watching the log - the -f follow tells tail to actively display log activity.  Be advised there is a timeout in which tail will fail to follow.  tail -f /var/log/mail.log== Determine Installed Version ==If postfix is running and the main.cf specifies smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)you can telnet localhost 25If postfix is not running you can check by the package.There is no version switch on the postfix binary.  Here are some ways you can determine what version of postfix is installed:Redhat/Fedora/CentOS: rpm -qa postfixDebian/Ubuntu: dpkg -s postfix[[Category:Computer_Technology]][[Category:Linux]]
Bureaucrat, administrator
16,192
edits