Deleting Bounces for unkown users

Ken Anderson (Pacific Internet) ka at PACIFIC.NET
Mon Apr 12 16:02:26 IST 2004


Hendrik den Hartog wrote:
> Hello, we'd appreciate some expert help advice.
>
> At our site [a school] we have a high turnover of students.
> We get several emails for students who have left, 99.99%
> [probably 100%] of which are list/spam/etc.
>
> Using Kevin Spicer's methods as per the FAQ, we stop the
> mail for unknown users at the Firewall, this saves them
> being processed by Mailscanner and forwarded to the
> internal server and thats great! (Thanks Kevin).
>
> However, the only option for 'ldap_routing' feature
> is BOUNCE, several sites seem to refuse returned mails,
> so these messages end up sitting in mqueue going through
> the 'motions'

ldap routing has to do with delivery of mail that you have already
accepted. You won't have this problem if you reject AT the connection
attempt instead. Use the sendmail access map to do this. Create a list
of valid users that you accept mail for:

TO:user1 at domain.com    RELAY
TO:user2 at domain.com    RELAY

# Default entry to reject
TO:domain.com  ERROR:5.1.1:550 User unknown


> Is there any way to have these messages DELETED instead
> of bounced? or, are there any [safe] scripts around which
> can grep/delete email for 'unknown users' from mqueue?

It the access map isn't possible, you can try to do cleanup later with a
script. See re-mqueue in the contrib directory of sendmail dist for one
option to lighten the load on the queue. It will move mail to lower
priority queues that run less frequently, freeing up the outgoing queue
for normal mail traffic.

Ken A.
Pacific.Net

>
> Any help/advice appreciated
>
> Cheers!
> Hendrik
>
>



More information about the MailScanner mailing list