Blocking empty To with rules

Julian Field mailscanner at ecs.soton.ac.uk
Fri Feb 14 22:38:08 GMT 2003


At 16:06 14/02/2003, you wrote:
>Is it possible to block a spam message where the To is empty?  We are
>getting a ton of spam from AOL and in the sendmail logfile the To is blank.
>I wouldn't mind shutting AOL down from having access to our server but I'm
>sure our customers would complain :)

In a ruleset you can specify arbitrary regular expressions, which is
perfect for this.
You could write a ruleset for the "Is Definitely Spam" parameter that
contains the line
To:     /^$/    yes
which would say that all mail with no To address is spam.
--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support



More information about the MailScanner mailing list