How to ignore all outgoing mail in MailScanner

Martin.Hepworth martinh at
Thu Jan 3 16:48:50 GMT 2008


Yes you can add a ruleset whereby the internal ip-addresses/networks are not scanned (either at all or at various stages).

I do this here, don't spam scan outbound (ie FROM my internal email server), but do virus scan and add the footer below.

The 'big off' switch is "Scan messages" in MailScanner.conf

Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300

> -----Original Message-----
> From: mailscanner-bounces at [mailto:mailscanner-
> bounces at] On Behalf Of Ronny T. Lampert
> Sent: 03 January 2008 16:37
> To: mailscanner at
> Subject: How to ignore all outgoing mail in MailScanner
> Hi all,
> after endless searching with Google I did not find any solution to the
> following problem (well, I found
> October/066594.html
> - but is this still the best way to go?)
> All outgoing mails (= mails received from internal, trusted servers)
> MUST NOT be scanned by MailScanner.
> ATM I'm using the postfix setup with header_checks enabled, but this (of
> course) causes ALL MAIL to be scanned by MailScanner.
> postfix has this nice "permit_mynetworks" keyword to bypass all checks
> for internal servers.
> 1) Is there a clean way to NOT PASS any mails from a list of relays to
> MailScanner at all (by postfix)?
> -OR-
> 2) Is there a similar keyword for Mailscanner so it ignores those mails
> completely?
> Has anybody a suggestion how to implement that the most clean way?
> It's not just a couple of IPs...
> Cheers,
> Ronny
> --
> MailScanner mailing list
> mailscanner at
> Before posting, read
> Support MailScanner development - buy the book off the website!

Confidentiality : This e-mail and any attachments are intended for the 
addressee only and may be confidential. If they come to you in error 
you must take no action based on them, nor must you copy or show them 
to anyone. Please advise the sender by replying to this e-mail 
immediately and then delete the original from your computer.
Opinion : Any opinions expressed in this e-mail are entirely those of 
the author and unless specifically stated to the contrary, are not 
necessarily those of the author's employer.
Security Warning : Internet e-mail is not necessarily a secure 
communications medium and can be subject to data corruption. We advise 
that you consider this fact when e-mailing us. 
Viruses : We have taken steps to ensure that this e-mail and any 
attachments are free from known viruses but in keeping with good 
computing practice, you should ensure that they are virus free.

Red Lion 49 Ltd T/A Solid State Logic
Registered as a limited company in England and Wales 
(Company No:5362730)
Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
United Kingdom

More information about the MailScanner mailing list