MS Config Question - outbound

Julian Field MailScanner at
Thu Nov 2 19:42:15 GMT 2006

Hash: SHA1

Sign Clean Messages = %rules-dir%/sign.clean.rules

In /etc/MailScanner/rules/sign.clean.rules, put something like this:
From: yes
FromOrTo: default no

And then if you want to vary the signature per-domain for example, use this

Inline HTML Signature = %rules-dir%/html.sig.rules
Inline Text Signature = %rules-dir%/text.sig.rules

and then in ..../rules/html.sig.rules

From: /etc/MailScanner/reports/hisdomain/inline.sig.html
FromOrTo: default /etc/MailScanner/reports/en/inline.sig.html

and in ..../rules/text.sig.rules

From: /etc/MailScanner/reports/hisdomain/inline.sig.txt
FromOrTo: default /etc/MailScanner/reports/en/inline.sig.txt

That should be enough to get you started.

sandrews at wrote:
> Why?  Because the customer asked that a default disclaimer/signature
> block be added to all his outbound emails.  I figured using my
> mailscanner box as a smarthost and then using the rules to sign outbound
> messages would be easiest.
> All I was missing was the architecture of the rules to "sign" just the
> outbound messages from his domain.
> -----Original Message-----
> From: mailscanner-bounces at
> [mailto:mailscanner-bounces at] On Behalf Of Evan
> Platt
> Sent: Wednesday, November 01, 2006 3:40 PM
> To: MailScanner discussion
> Subject: Re: MS Config Question - outbound
> At 11:56 AM 11/1/2006, you wrote:
>> I'm currently using mailscanner to scan all inbound mail and that works
>> great.
>> Is there a way to use mailscanner to also be the outbound mail server 
>> and add a disclaimer/signature block to all outbound messages like it 
>> does for inbound scanned messages?
> I've gotta ask..
> Why?
> I know of no anti-virus program that looks for "This message was scanned
> and found to be clean" and then ignores scanning the message.
> What's the point?
> I've seen spam with a EXE virus attached ("Microsoft Security Patch! 
> INSTALL NOW!") with a "This message was found to be virus clean."
> --
> MailScanner mailing list
> mailscanner at
> Before posting, read
> Support MailScanner development - buy the book off the website! 


- -- 
Julian Field MEng CITP
Buy the MailScanner book at

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit

Version: PGP Desktop 9.5.0 (Build 1112)
Comment: Fetch my public key foot-print from
Charset: ISO-8859-1


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit

More information about the MailScanner mailing list