Configuring Postfix with Abusix Mail Intelligence is simple!

Instructions

To add or configure Abusix Mail Intelligence to Postfix

Edit /etc/postfix/main.cf 

Add the following in the "smtpd_recipient_restrictions" parameter. It should be placed after "reject_unauth_destination".

For example:

smtpd_recipient_restrictions =
    ...
    reject_unauth_destination
    # Check rDNS in domain blacklist (optional)
    reject_rhsbl_client APIKEY.dblack.mail.abusix.zone
    # Check HELO/EHLO in domain blacklist (optional)
    reject_rhsbl_helo APIKEY.dblack.mail.abusix.zone
    # Check FROM domain in blacklist (optional)
    reject_rhsbl_sender APIKEY.dblack.mail.abusix.zone
    # Check connecting IP in whitelist (optional)
    # permit_dnswl_client entries should be placed before any reject directives
    # that want to skip, but should always be before any reject_rbl_client
    # entries to ensure that any IP listed on the whitelist not rejected.
    permit_dnswl_client APIKEY.white.mail.abusix.zone
    # Reject any IP listed in the blacklist
    reject_rbl_client APIKEY.combined.mail.abusix.zone

rbl_reply_maps = texthash:/etc/postfix/rbl_reply_map

Where APIKEY is retrieved from the management page, on your Abusix Intelligence Dashboard.

Create /etc/postfix/rbl_reply_map

This will prevent your APIKEY from being leaked. Create /etc/postfix/rbl_reply_map with the following:

APIKEY.combined.mail.abusix.zone		$rbl_code Service unavailable; $rbl_class [$rbl_what] blocked using Abusix Mail Intelligence${rbl_reason?; $rbl_reason}
APIKEY.dblack.mail.abusix.zone $rbl_code Service unavailable; $rbl_class [$rbl_what] blocked using Abusix Mail Intelligence${rbl_reason?; $rbl_reason}

If you are using Postscreen then you can omit the "reject_rbl_client" entry and instead add:

postscreen_dnsbl_reply_map = texthash:/etc/postfix/postscreen_dnsbl_reply_map
postscreen_dnsbl_sites = APIKEY.combined.mail.abusix.zone

Create /etc/postfix/postscreen_dnsbl_reply_map

This will prevent your APIKEY from leaking, the file should contain the following:

APIKEY.combined.mail.abusix.zone				mail.abusix.zone

Reload
Reload Postfix to activate Abusix Mail Intelligence.

Learn More

Did this answer your question?