Tag some mails and send to quarantine others ..

Julian Field MailScanner at ecs.soton.ac.uk
Mon Jul 9 22:05:14 IST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, you can do this with a ruleset. Ruleset example number 32767.... :-)

In MailScanner.conf, put something like
Spam Actions = %rules-dir%/spam.actions.rules
High Scoring Spam Actions = %rules-dir/spam.actions.rules
(You can of course make these point to different ruleset files if you 
want different actions for normal spam and high-scoring spam)

In /etc/MailScanner/rules/spam.actions.rules put lines like
To: domain1.com   store
To: domain2.com   deliver
To: domain3.com   deliver attachment store

which will do different things for mail to the 3 example domains.

Then just
    service MailScanner reload
and it will reload the new configuration and take actions based on it.


Philippe BEAU wrote:
> Hello all,
>
> I've a Mailscanner gateway which is working very well. I would like to make
> some tweaks. Also, for the moment, the mails are tagged with a subject like
> "SPAM?". I would like for somes domains only to delete directly the spam.
>
> Is anyone can say me if i can do this with a ruleset ?
>
> Best regards and thanks
>
> Philippe,
>
>
>   

Jules

- -- 
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

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 www.transtec.co.uk


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.6.2 (Build 2014)
Charset: ISO-8859-1

wj8DBQFGkqMLEfZZRxQVtlQRAhLwAJ9/Nxwhr0qvWhMZ+ZgAYyR/KCNYTgCfd1X6
oqV2hRm5jBkh0MOyIFellRY=
=4W0O
-----END PGP SIGNATURE-----

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



More information about the MailScanner mailing list