Sending mail to /dev/null without scanning

Cameron B. Prince cplists at princeservices.com
Fri Jan 27 23:55:49 GMT 2006


Hey guys,

I have been getting a lot of emails coming in with CC's to every-name-known
to-man at mydomain.com. It bothered me that so many of my mail server's
resources and my internet connection were both being used to send bounces
and that this could also be an attempt to determine valid addresses.

I did some research and came up with creating an alias like this:

garbage: /dev/null

Then in my virtusertable I have something like this:

bob at host.com	bob
tim at host.com	tim
@host.com		garbage

It works, but now instead of bouncing, the messages are all scanned and then
sent to /dev/null. I need to configure MailScanner so that it doesn't scan
these messages destined for oblivion.

Jan 27 17:41:00 p2 sendmail[14975]: k0RNeu33014975:
from=<MolliesfDuttonc at netzero.net>, size=1421, class=0, nrcpts=1,
msgid=<aristotelean.combustion at g42Ls1T6.23.com>, proto=SMTP, daemon=MTA,
relay=[221.0.209.135]
Jan 27 17:41:00 p2 MailScanner[14330]: New Batch: Scanning 1 messages, 1883
bytes
Jan 27 17:41:01 p2 MailScanner[14330]: Virus and Content Scanning: Starting
Jan 27 17:41:01 p2 MailScanner[14330]: Uninfected: Delivered 1 messages
Jan 27 17:41:01 p2 MailScanner[14330]: Logging message k0RNeu33014975 to SQL
Jan 27 17:41:01 p2 MailScanner[14294]: k0RNeu33014975: Logged to MailWatch
SQL
Jan 27 17:41:01 p2 sendmail[14980]: k0RNeu33014975: to=/dev/null,
ctladdr=<henderson at mydomain.com> (8/0), delay=00:00:03, xdelay=00:00:00,
mailer=*file*, pri=121421, dsn=2.0.0, stat=Sent

I setup a ruleset like this in the scan.messages.rules file:

To:       /dev/null  no
FromOrTo: default    yes

I have this in the .conf file

Scan Messages = %rules-dir%/scan.messages.rules

MailScanner continues to scan the mail even though the to line states "
to=/dev/null"

Can anyone tell me if this is possible and what I may be doing wrong?

Thanks,
Cameron



More information about the MailScanner mailing list