> I have a list of IP/domain combinations that I want to reject.  This
> list is built from spamassassin AWL.  I don't necessarily want to block
> the entire domain if I don't have to, just domain IP combinations.  So,
> running creative queries against AWL, I get a list of domain/IP's.
> 
> Is there a way to apply type of criteria (domain/ip) to
> smtpd_sender_restrictions?  I can use a local file or mysql.  Either is
> fine for me.  I know for mysql you can pass in user, domain, and/or
> u...@domain but what about IP.  I don't see that as an option in the
> man page, so I assume the answer is no.
> 
> The reason for not wanting to do just the domain is that I'm getting
> several valid domains that I don't want to block the freemail domains
> such as yahoo because someone is forging their email address.

Looking at answering my own question here, it looks like most of the maps don't 
use/care about IP and the best alternative looks like a policy service.  
Looking at the perl sample, this should be pretty simple so I will look at 
something similar.  If you know a better way, I'd like to here.
 

Reply via email to