Blocking empty To with rules

S Mohan smohan at
Sun Feb 16 02:47:17 GMT 2003

Would it not be better to change outgoing queue directory to /dev/null
for such mails. What would happen if I set incoming directory to
/dev/null? Will MailScanner try to read from /dev/null to scan or will
it just drop them? Why waste resources scanning when we want to drop
them off the cliff anyway?


-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
Behalf Of Julian Field
Sent: Saturday, February 15, 2003 4:08 AM
Subject: Re: Blocking empty To with rules

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
MailScanner thanks transtec Computers for their support

More information about the MailScanner mailing list