[MAILSCANNER] Block outgoing mail with rules

Kevin Old kevinold at gmail.com
Thu Sep 22 17:02:02 IST 2005

    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

On 9/22/05, Julian Field <jkf at ecs.soton.ac.uk> wrote:
> On 22 Sep 2005, at 02:27, Kevin Old wrote:
> To: email.addy at idontwantsetto and From: bad.user at mydomain blahblahblah
> Instead of blahblahblah you should put whatever would have been the
> correct result for that configuration option if you hadn't used a
> ruleset at all. For example, if this is going on the "Archive Mail"
> option, then the correct blahblahblah would be a directory or file name.

Ok, according to EXAMPLES in /etc/MailScanner/rules , I've done this:

I put this into /etc/MailScanner/MailScanner.conf:

Block Outgoing To = /etc/MailScanner/rules/block.outgoing.rules

And here's my /etc/MailScanner/rules/block.outgoing.rules

To: kevinold at gmail.com and From: kevin.old at uavco.com /tmp/kdo.txt

Here's the error I get from MailScanner:

Sep 22 11:41:30 uavco MailScanner[13358]: Syntax error(s) in configuration file:
Sep 22 11:41:30 uavco MailScanner[13358]: Unrecognised keyword
"blockoutgoingto" at line 1911
Sep 22 11:41:30 uavco MailScanner[13358]: Aborting due to syntax
errors in /etc/MailScanner/MailScanner.conf.

How do I define a new keyword for a new rules file?

Should I put this in another rules file?

Any help is appreciated,
Kevin Old
kevinold at gmail.com

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!

More information about the MailScanner mailing list