> 
> But this checks the recipient, not the sender.
> 

Good catch.  I didn't scroll down far enough in my main.cf.  For some reason 
I'm using the same access file for both.  I need to fix that.

smtpd_recipient_restrictions = hash:/etc/postfix/custom/access,   
permit_mynetworks,   reject_unknown_sender_domain,   reject_rbl_client 
zen.spamhaus.org,   reject_rbl_client bl.spamcop.net,   reject_rbl_client 
rhsbl.ahbl.org,   reject_rbl_client dnsbl-1.uceprotect.net,   
check_policy_service inet:10.80.65.26:5847,   reject_unauth_pipelining,   
reject_unauth_destination,   reject_invalid_hostname
...
smtpd_sender_restrictions = hash:/etc/postfix/custom/access,   permit

The logic is sound though.  Create a file for the rejects, postmap it, then add 
the link to the hash file in the smtpd_sender_restrictions.

With that said, I need to update me some email relays in a minute.  I don't 
know what I was smoking when I used a common file for that.  

Gary Smith

Reply via email to