Blocking mail from random addresses

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.exim

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-22-2006
Rob van der Putten
 
Posts: n/a
Default Blocking mail from random addresses

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 |
+----------------------------------------------------------------------+
Reply With Quote
  #2 (permalink)  
Old 03-22-2006
Rob van der Putten
 
Posts: n/a
Default Re: Blocking mail from random addresses

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 |
+----------------------------------------------------------------------+
Reply With Quote
  #3 (permalink)  
Old 03-22-2006
Rob van der Putten
 
Posts: n/a
Default Re: Blocking mail from random addresses

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:06 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0