This article was written to create an easy step to add more SPAM protection to ISPConfig when you are running postfix. This not only will cut down on SPAM but it will also cut down on load by not sending as much SPAM to spamassassin. Below are some SPAM protection additions that can be made to postfix’s main configuration file and will stop most SPAM from even reaching spamassassin. The reject_rbl_client command is used to add SPAM blacklists for postfix to check against. You can research other blacklists and add them if you like.
Add the below to /etc/postfix/main.cf.
[quickcode:main.cf] # SPAM Prevention Below
# Please make sure to keep blacklists up to date.
smtpd_helo_required = yes
non_fqdn_reject_code = 554
relay_domains_reject_code = 554
disable_vrfy_command = yes
strict_rfc821_envelopes = yes
invalid_hostname_reject_code = 554
multi_recipient_bounce_reject_code = 554
unknown_client_reject_code = 554
unknown_sender_reject_code = 554
unknown_address_reject_code = 554
unknown_hostname_reject_code = 554
unknown_virtual_alias_reject_code = 554
unknown_virtual_mailbox_reject_code = 554
unknown_local_recipient_reject_code = 554
unknown_relay_recipient_reject_code = 554
unverified_recipient_reject_code = 554
unverified_sender_reject_code = 554
Restart postfix by: /etc/init.d/postfix restart
You now have extra SPAM protection for postfix and your ISPConfig installation.