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