Ruleset to archive mail

Kevin Old kevinold at
Thu Oct 7 20:28:09 IST 2004

Hello everyone,

I've been trying to create a ruleset that would copy mail, from or to
kevin at to the directory /root/marchive with little success.

First, I must state that I can archive *all* mail by setting "Archive
Mail = /root/marchive" in MailScanner.conf.

I've tried the following ( taken from

In /etc/MailScanner/MailScanner.conf:

Archive Mail = %rules-dir%/archive.rules

In %rules-dir%/archive.rules:

FromOrTo:      kevin at      yes
FromOrTo:      default       /root/marchive

I've tried so many variations of this that I can't even begin to start
listing them.

Can someone tell me what I'm doing wrong?

Kevin Old
kevinold at

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

More information about the MailScanner mailing list