Whitelist specific domain from Spamhaus SBLCSS

It’s one of these two lines in /etc/postfix/main.cf:

smtpd_sender_restrictions=reject_non_fqdn_sender,reject_unknown_sender_domain,reject_authenticated_sender_login_mismatch,reject_rhsbl_sender dbl.spamhaus.org
smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks,reject_rbl_client zen.spamhaus.org,reject_unlisted_recipient,check_policy_service inet:127.0.0.1:10023

I think it’s smtpd_recipient_restrictions, so you 'd have to figure out a way to bypass the check for an address or domain.

According to postconf(5), smtpd_relay_restrictions is processed before smtpd_recipient_restrictions, so if you follow my unsupported modification guide on blocklists:

But instead add to /etc/postfix/sender_access using OK action:

username@example.com	OK
example.net				OK

I think postfix will accept the message for delivery.

1 Like