I want to restrict emails by recipient address with check_recipient_access.
In my case check_recipient_access is functional for sending from remote e-mail clients but when I test it with Alpine on the e-mail server or from PHP code on the same server then it is ignored. I checked mail.log and see that Alpine or uses connecting to localhost and I have permit_mynetworks below check_recipient_access in settings. What is wrong? Or how to debug evaluating of restrictions? My restrictions in main.cf: smtpd_client_restrictions = smtpd_helo_restrictions = smtpd_sender_restrictions = permit_mynetworks check_sender_access hash:/etc/postfix/sender_access reject_rbl_client sbl.spamhaus.org reject_rbl_client cbl.abuseat.org reject_rbl_client bl.spamcop.net permit smtpd_recipient_restrictions = reject_unknown_sender_domain reject_unknown_recipient_domain check_recipient_access hash:/etc/postfix/recipient_access permit_sasl_authenticated permit_mynetworks reject_non_fqdn_hostname reject_unauth_destination reject_invalid_hostname reject_sender_login_mismatch permit -- Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html