This is a discussion on Blocking mail from random addresses within the alt.comp.mail.exim forums, part of the Mail Servers and Related category; Hi there I want to do the opposit of a callout random test. So if the remote hosts accepts random ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi there
I want to do the opposit of a callout random test. So if the remote hosts accepts random address during a callout, I want to reject all mail from that domain. How does one do this? Regards, Rob -- +----------------------------------------------------------------------+ | Rob van der Putten, rob@sput.nl | | http://www.sput.nl/spam/spam-policy.html | +----------------------------------------------------------------------+ |
|
|||
|
Hi there
Rob van der Putten wrote: > I want to do the opposit of a callout random test. > So if the remote hosts accepts random address during a callout, I want to > reject all mail from that domain. > How does one do this? I did some experimenting; The stuff below tests for abuse; # Test for abuse deny !verify = sender=abuse@$sender_address_domain/callout message = Abuse account required. See http://www.sput.nl/spam/ This doesn't work for random address; verify = sender=random/callout This doens't work either; verify sender=$primary_host_name-$tod_epoch-testing@$sender_address_domain/callout This does; # Don't accept mail from random addresses deny verify = sender=sput.nl-$tod_epoch-testing@$sender_address_domain/callout message = Your SMTPD accepts mail for random addresses. See http://www.sput.nl/spam/ I probably need some whitelisting though Regards, Rob -- +----------------------------------------------------------------------+ | Rob van der Putten, rob@sput.nl | | http://www.sput.nl/spam/spam-policy.html | +----------------------------------------------------------------------+ |
|
|||
|
Hi there
Rob van der Putten wrote: > I did some experimenting; > > The stuff below tests for abuse; > > # Test for abuse > deny !verify = sender=abuse@$sender_address_domain/callout > message = Abuse account required. See http://www.sput.nl/spam/ > > This doesn't work for random address; > > verify = sender=random/callout > > This doens't work either; > > verify > sender=$primary_host_name-$tod_epoch-testing@$sender_address_domain/callout > > This does; > > # Don't accept mail from random addresses > deny verify = > sender=sput.nl-$tod_epoch-testing@$sender_address_domain/callout > message = Your SMTPD accepts mail for random addresses. See > http://www.sput.nl/spam/ > > I probably need some whitelisting though I changed things a bit; # Test for abuse deny hosts = ! : !+relay_from_hosts senders = ! : !verify = sender=abuse@${sender_address_domain}/callout message = Abuse account required. See http://www.sput.nl/spam/ # Don't accept mail from random addresses deny hosts = ! : !+relay_from_hosts senders = ! : verify = sender=sput.nl-${tod_epoch}-testing@${sender_address_domain}/callout message = Your SMTPD accepts mail for random addresses. See http://www.sput.nl/spam/ This is still experimental. Regards, Rob |