Nonexistent Users

Jim Wirtz jim at
Fri May 6 15:04:42 UTC 2016

Thanks Alan....   Shortly after I sent out the email I found the answer,

an option that worked for me.  I went through the MailScanner.conf and found


# The purpose of this option is to set it to be a ruleset, so that you

# can skip all scanning of mail destined for some of your users/customers

# and still scan all the rest.

# A sample ruleset would look like this:

#   To:  no

#   From: no

#   From:     virus

#   FromOrTo: default           yes

# That will scan all mail except mail to and mail from

# To set this up, put the 3 lines above into a file

# called /etc/MailScanner/rules/scan.messages.rules and set the next line to

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

# This can also be the filename of a ruleset (as illustrated above).

#Scan Messages = yes

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


My server only handles a few users, so it was fairly simple to make a list
of all

my users and end it with a no to all the rest.

To:  * no


Now all the nonexistent users go to my  "junkmail" account.  I'm using

so I added  "define(`LUSER_RELAY',`local:junkmail')dnl" to my

Since most of these would be spam, didn't see the point of using my
resources to

send a reject email.  For the odd chance that it might be a legitimate I
save it  to

the junkmail account.




From: MailScanner
[ at]
On Behalf Of Alan Dobkin
Sent: Friday, May 06, 2016 9:48 AM
To: MailScanner Discussion
Subject: Re: Nonexistent Users



Ideally, your MTA (Postfix, Sendmail, etc.) should reject mail to
non-existent accounts during the initial SMTP transaction, before
MailScanner ever sees it. See page 8 of the MailScanner guide book for an
overview of how it works, available here:

If you provide more details on your server configuration, someone here may
be able to point you in the right direction. For example, with Postfix, see:

Rejecting mail for a non-existent recipient address. This form of ingress
filtering helps to keep the mail queue free of undeliverable MAILER-DAEMON
messages. This requirement is enabled by default
<>  =

If you are relaying for other mail servers, you may also want to enable
recipient address verification:


On 5/6/2016 9:45 AM, Jim Wirtz wrote:

Is there a way to configure  MailScanner to not process email to nonexistent

My server spends a lot of CPU time  to check/process emails that are just
going to be deleted.





This message has been scanned for viruses and 
dangerous content by MailScanner, and is 
believed to be clean. 

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the MailScanner mailing list