Rich Winkel a écrit : > I guess this can be accomplished using check_sender_access in > smtpd_recipient_restrictions but it seems like such a common need > I thought there might be a more direct way (i.e. lookup IP# of > sender and compare with $mynetworks when MAIL FROM: claims to be > local) ... >
this was discussed multiple times last week. check the archives. smtpd_recipient_restrictions = reject_non_fqdn_sender reject_non_fqdn_recipient permit_mynetworks permit_sasl_authenticated reject_unauth_destination #check_client_access cidr:/var/db/dnswl/postfix-dnswl-permit reject_invalid_helo_hostname reject_non_fqdn_helo_hostname reject_unknown_sender_domain reject_rbl_client zen.spamhaus.org check_sender_access hash:/etc/postfix/access_sender == access_sender example.com REJECT blah blah .example.com REJECT blah blah example.net REJECT blah blah .example.net REJECT blah blah