Problem with archive.rules
Julian Field
MailScanner at ecs.soton.ac.uk
Thu Jan 20 14:35:37 GMT 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. ]
Martin Hepworth wrote:
> Oliver Rooney wrote:
>
>> Hello All,
>>
>> I am running MailScanner on a sendmail relay and I am having some
>> trouble with archiving email. I have successfully been archiving all
>> emails sent throught the relay to a directory, but now I am trying to
>> archive emails to mail boxes based on the domain of the
>> sender/recipient. This itself is not the problem, I also need to exclude
>> some emails based on the username of the sender/recipient. I have tried
>> the following %rules_dir%/archive.rules setup:
>>
>> Fromorto: exclude at mydomain.com /var/mailarchive
>> Fromorto: *@external_domain.com /var/mailarchive
>> external_domain at mydomain.com
>> Fromorto: default /var/mailarchive
>>
>> And had no joy as emails match both rules. I have also tried separate
>> to: and from: lines for both, also withou joy. I have also tried
>> (longshot) recursive rulsets
>>
>> Fromorto: *@external_domain.com %rules_dir%/external.rules
>>
>> But that gets interpreted as an mbox file.
>>
>> Is there anyway to achieve this? Thanks in advance.
>>
>> Regards,
>>
>> Oliver Rooney
>> Trayport Ltd
>> <http://www.trayport.com>
>>
> Oliver
>
> FromOrTO:<tab>*@external_domain.com<tab>/var/archive/external_domain.com
>
> should work, extrapolating from my rules and the examples..
>
Just a minor point, they don't have to be <tab> characters, any
whitespace will do. The only times tab characters are required are in
filename.rules.conf and filetype.rules.conf.
--
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
------------------------ 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 MAQ (http://www.mailscanner.biz/maq/) 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