ISPConfig3 – Postfix Improvement

I am using ISPConfig for years now. It is a good management software for hosting servers. Not as good and stuffy as CPanel, but it will do the job.

Because we don’t have MailScanner out-of-box in ISPConfig and because I don’t want to configure it manually for all the websites, I decided to tune up the postfix.

Long story short, you have to do that:

1. Backup

cp -pf /etc/postfix/ /etc/postfix/

2. Add new features with postconf -e

postconf -e 'smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_recipient_domain, reject_non_fqdn_recipient, reject_unauth_destination, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_rbl_client,reject_rbl_client,reject_rbl_client, check_recipient_access mysql:/etc/postfix/, reject_unauth_destination'

3. Restart postfix

/etc/init.d/postfix restart

Credits to



Author: ionut_d

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.