Mark mail as spam for known destination and origin

Julian Field mailscanner at ecs.soton.ac.uk
Fri Oct 1 09:28:57 IST 2004


<x-flowed>
At 08:28 01/10/2004, you wrote:
>On Thu, 30 Sep 2004 10:25:03 +0100, you wrote:
>
> >>Is it possible to mark a mail as spam on the following conditions:
> >>
> >>if a mail is from bla at domain.com and the destination is fubar at mydomain.com
> >>then the mail is spam.
> >>
> >>BUT
> >>
> >>if a mail is from bla at domain.com and the destination is me at mydomain.com
> then
> >>the mail isn't spam.
> >>
> >>I thought of using the spam.blacklist.rules and write a rule like this:
> >>
> >>From: bla at destination.com To:fubar at mydomain.com Yes
> >>
> >>But that doesn't work out (you can't make combinations on 1 line)
> >
> >Yes you can, you forgot to put in the word "and" in the middle.
>
>So when I want to consider everything to spam-addr at mydomain.com to be
>spam except mail from me at mydomain.com I use:
>
>To: spam-addr at mydomain.com yes
>To: spam-addr at mydomain.com and From: me at mydomain.com no

Swap those 2 rules over. You want the most specific rules first, otherwise
the general rule matches and the specific rule will be ignored.


--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support
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).
</x-flowed>



More information about the MailScanner mailing list