divert email, like archive, possible?
Jeff A. Earickson
jaearick at COLBY.EDU
Wed Dec 8 20:58:49 GMT 2004
[ 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. ]
Denis,
Thank you, this worked. My MailScanner.conf changes were:
%localrules-dir% = /etc/MailScanner/rules
Non Spam Actions = %localrules-dir%/nonspam.rules
and my ruleset was:
#---non-spam email delivery rules
From: joeblow at colby.edu and To: testbot at colby.edu forward jaearick at colby.edu
FromOrTo: default deliver
With this ruleset, if joeblow sends testbot email, then it goes to me
and does not end up in testbot's mailbox. If I send testbot email,
it gets delivered. This is what I wanted. I knew MailScanner could
do this...
Julian, maybe this is worthy of the rules EXAMPLES file.
Jeff Earickson
Colby College
On Wed, 8 Dec 2004, Denis Beauchemin wrote:
> Date: Wed, 8 Dec 2004 14:52:43 -0500
> From: Denis Beauchemin <Denis.Beauchemin at USHERBROOKE.CA>
> Reply-To: MailScanner mailing list <MAILSCANNER at JISCMAIL.AC.UK>
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: divert email, like archive, possible?
>
> Jeff A. Earickson wrote:
>
>> Julian,
>>
>> The boss just asked me if I can divert all email inbound from
>> a badguy to a certain account here, and save it to an alternate
>> mailbox. We have a case of a nasty divorce, where the harasser is
>> elsewhere and the harassee works here. We want to divert and save
>> the messages from the harasser and not have the harassee see them.
>> And we want other messages to the harassee flow normally.
>>
>> Thinking that the Archive feature would do the trick, I set up an
>> archive ruleset for testing:
>>
>> From: joeblow at colby.edu and To: jaearick at colby.edu /var/mail/a/archive
>> default no
>>
>> Then I logged on as joeblow and sent a test email to myself. Archiving
>> worked beautifully -- it snagged the test message to the archive file, and
>> let everything else pass on. BUT it also delivered the test message into
>> my mailbox; not what I wanted in this case. Any way to divert specific
>> to/from email messages with MailScanner?
>>
>> Jeff Earickson
>> Colby College
>>
> Jeff,
>
> I think you should use the "Non Spam Actions" rule instead of the archiving
> one:
> From: joeblow at colby.edu and To: jaearick at colby.edu forward someone at colby.edu
> default deliver
>
> Denis
> PS: I'm not sure if you also need "delete" before the forward clause...
>
> --
> _
> °v° Denis Beauchemin, analyste
> /(_)\ Université de Sherbrooke, S.T.I.
> ^ ^ T: 819.821.8000x2252 F: 819.821.8045
>
> ------------------------ 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!
>
------------------------ 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