my postfix currently rejects emails that are potentially SPAM. Howver, some of my contacts have servers that are not correctly configured and I want to avoid rejecting their email.
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_non_fqdn_recipient reject_unknown_recipient_domain reject_unauth_destination reject_unknown_reverse_client_hostname reject_invalid_helo_hostname reject_non_fqdn_helo_hostname reject_non_fqdn_sender reject_non_fqdn_recipient reject_unknown_sender_domain reject_unknown_recipient_domain reject_invalid_hostname check_recipient_access proxy:pgsql:/etc/postfix/pgsql/virtual_access_list.cf #check_sender_access proxy:pgsql:/etc/postfix/pgsql/virtual_sender_list.cf permit_dnswl_client list.dnswl.org reject_rbl_client zen.spamhaus.org reject_rbl_client blackholes.easynet.nl reject_rbl_client bl.spamcop.net reject_rbl_client cbl.abuseat.org reject_rbl_client ix.dnsbl.manitu.net reject_rbl_client b.barracudacentral.org reject_rbl_client psbl.surriel.com reject_rbl_client noptr.spamrats.com reject_rbl_client dyna.spamrats.com reject_rbl_client dnsbl.sorbs.net permit
However, I would like to automatically whitelist all senders that are in my Horde address book. This is why I try to include the line
With the following syntax
user = horde password = xxxx hosts = xxx dbname = horde query = SELECT ??? FROM turba_objects WHERE object_email='%s'
However, I am not sure about the logic:
How do I set an value of "OK" to all entries that are found in the address book? What is the correct syntax?
Does this approach work? Does it achieve the target of automatically accepting emails from all senders in my address book even when they are flagged as SPAM in one of these lists or are malformated? What is best practice?