Create custom rule like:

header OLDADDRESS Delivered-To =~ /brians-old-address\@enchanter\.net/i
describe OLDADDRESS This is an old address
score OLDADDRESS 100.0

Now any message with Delivered-To: header will get a score of 100 and
therefore get tagged as Spam.
---
Ed.


>
> I have some old email addresses I no longer use which are getting
> flooded with spam these days.  I want SpamAssassin to automatically
> tag these as spam.
>
> I receive email sent to any address at my domain; my ISP is nice
> enough to add a 'Delivered-To' header to my incoming email to tell
> me what address it was really sent to.  For example, a message in
> my inbox might have these headers:
>
>    To: <[EMAIL PROTECTED]>
>    Delivered-To: [EMAIL PROTECTED]
>
> Or:
>
>    To: [EMAIL PROTECTED]
>    Delivered-To: [EMAIL PROTECTED]
>
> I want to set up the equivalent of a spamassassin 'blacklist_to'
> option which pays attention to Delivered-To headers, so that I can
> blacklist the addresses I no longer use.  How can I accomplish this?
>
> The spamassassin man page tells how to set up spamtraps, but that's
> not exactly what this is -- I don't want to automatically
> reject/report all email to those old addresses, just in case I
> might ever receive a legit email there.  I just want spamassassin
> to tag it as spam, so my mail client can route it into my spambox,
> so I can later look at the subject lines and delete them.
>


_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to