How can I test if my postfix whitelist works correctly (assuming I don't have access to any address currently listed on dnsbl).
I'm not sure if my whitelist works ok.
Here's my config:
smtpd_client_restrictions =
permit_mynetworks,
check_client_access hash:/etc/postfix/access,
reject_rbl_client zen.spamhaus.org,
permit
smtpd_sender_restrictions =
permit_mynetworks,
check_client_access hash:/etc/postfix/access,
reject_unknown_sender_domain,
reject_non_fqdn_sender,
reject_unknown_address,
reject_sender_login_mismatch,
reject_unauth_pipelining,
permit
smtpd_recipient_restrictions =
permit_mynetworks,
reject_invalid_hostname,
reject_unauth_pipelining,
permit_sasl_authenticated,
reject_unauth_destination,
reject_rbl_client dnsbl.sorbs.net,
reject_rbl_client bl.spamcop.net,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client dnsbl-1.uceprotect.net,
permit
/etc/postfix/access
# dnsbl whitelist
# some client
74.125.82.55 OK
user@example.com OK
example.com OK
# After you are done editing the file, you must run:
# postmap /etc/postfix/access
# and restart postfix