Nonexistent Users

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


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

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:       bad.customer.com  no

#   From:     ignore.domain.com no

#   From:     my.domain.com     virus

#   FromOrTo: default           yes

# That will scan all mail except mail to bad.customer.com and mail from

# ignore.domain.com. 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:  *@mydomian.com no

 

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

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

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.

 

Jim

 

From: MailScanner
[mailto:mailscanner-bounces+jim=flamingoseismic.com at lists.mailscanner.info]
On Behalf Of Alan Dobkin
Sent: Friday, May 06, 2016 9:48 AM
To: MailScanner Discussion
Subject: Re: Nonexistent Users

 

Jim,

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:
https://s3.amazonaws.com/mailscanner/docs/ms-admin-guide.pdf

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:
http://www.postfix.org/SMTPD_ACCESS_README.html

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
("smtpd_reject_unlisted_recipient
<http://www.postfix.org/postconf.5.html#smtpd_reject_unlisted_recipient>  =
yes").

If you are relaying for other mail servers, you may also want to enable
recipient address verification:
http://www.postfix.org/ADDRESS_VERIFICATION_README.html#recipient

Alan

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

Is there a way to configure  MailScanner to not process email to nonexistent
users/accounts?

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

 

Thanks....

 

Jim


-- 
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: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20160506/16434e7b/attachment.html>


More information about the MailScanner mailing list