Re: version 3.4.1 with block TLD

2017-06-13 Thread Robert Kudyba

> On Jun 12, 2017, at 9:44 PM, Joseph Brennan  wrote:
> 
> 
> 
> --On June 8, 2017 at 12:07:43 PM -0400 Robert Kudyba  
> wrote:
> 
> I would like
>> to block *@*.us but allow the cities and schools that use them so allow
>> examples like @ci.boston.ma.us and corunna.k12.mi.us. I don’t think
>> this can be done with the access.db file in sendmail.
> 
> 
> Sendmail access.db? It's easy:
> 
> From:us REJECT
> From:ci.boston.ma.us OK
> From:corunna.k12.mi.usOK
> 
> Or name the states:
> 
> From:us   REJECT
> From:ma.usOK
> From:mi.usOK

Thanks for the suggestion didn’t realize it worked with the top level domain as 
well as the prefix before the TLD. Does the order matter? Meaning should the:
From:us REJECT 
come before the “OK” lines?

Also where can I add a rejection for the hostname colocrossing.com when it 
appears in the relay line like this. 
v5CB8tYp022453: ruleset=check_mail,  relay=198-23-201-144-host.colocrossing.com 
[198.23.201.144] (may be forged), 

I tried:
colocrossing.comREJECT

But that doesn’t seem to work.

Re: version 3.4.1 with block TLD

2017-06-12 Thread Joseph Brennan



--On June 8, 2017 at 12:07:43 PM -0400 Robert Kudyba  
wrote:


I would like

to block *@*.us but allow the cities and schools that use them so allow
examples like @ci.boston.ma.us and corunna.k12.mi.us. I don’t think
this can be done with the access.db file in sendmail.



Sendmail access.db? It's easy:

From:us   REJECT
From:ci.boston.ma.us   OK
From:corunna.k12.mi.us  OK

Or name the states:

From:us REJECT
From:ma.us  OK
From:mi.us  OK

Joseph Brennan
Columbia University





Re: version 3.4.1 with block TLD

2017-06-08 Thread Robert Kudyba

> i just upgrade to the lates version 3.4.1,  
> 
> understand this version help to combat top level domain spam mail.
> 
> 
> so how to block some of the  domain , using black_list or custom rules ?
> 
> black_list_from  *@*.top
> black_list_from *@*.us
> 
> or 
> 
> custom rules ?

There was a pretty big thread about this suggesting to do this at the MTA 
level: https://lists.gt.net/spamassassin/users/198207/?page=1; 


What I’ve noticed is the *@*.us has picked up steam over the past couple of 
days. Since we use sendmail, it uses regular expressions and something called 
LOCAL_CONFIG and LOCAL_RULESETS macros, see 
http://www.xiitec.com/blog/2009/02/25/using-regular-expressions-in-sendmail/ 
 
but negative look aheads aren’t support (basic POSIX). I would like to block 
*@*.us but allow the cities and schools that use them so allow examples like 
@ci.boston.ma.us and corunna.k12.mi.us. I don’t think this can be done with the 
access.db file in sendmail.

version 3.4.1 with block TLD

2017-06-04 Thread wong fook loong
hi

i just upgrade to the lates version 3.4.1,

understand this version help to combat top level domain spam mail.


so how to block some of the  domain , using black_list or custom rules ?

black_list_from  *@*.top
black_list_from *@*.us

or

custom rulse ?


thanks