Re: [exim] Mark as spam mail messages from blacklisted hosts

Top Page
Delete this message
Reply to this message
Author: Eduardo M KALINOWSKI
Date:  
To: exim-users
Subject: Re: [exim] Mark as spam mail messages from blacklisted hosts
José de Jesús Gutiérrez Ramírez escreveu:
> Hi,
>
> I want to mark as spam any mail coming from a blacklisted host. The idea is
> to add the label "SPAM" in the Subject of the message.
>
> I have the next script in the acl_check_rcpt section
>
> warn
>     message = X-Warning: $sender_host_address is listed at $dnslist_domain 
> ($dnslist_value: $dnslist_text)
>     log_message = $sender_host_address is listed at $dnslist_domain 
> ($dnslist_value: $dnslist_text)
>         add_header = Subject: *SPAM* $h_Subject:
>     dnslists = CHECK_RCPT_IP_DNSBLS

>
>
> But it doesn't change the Subject of the message, instead, it add a Subject
> line what only can be viewed in the properties of the message.
>
> How can I do what I want?
>


To change the subject (or another header), you need a system filter. See
http://wiki.exim.org/FAQ/Headers/Q0905 .
> btw, it's frequent to do this?


Frequent enough, but I personally find this a bad idea. Add another
header (such as X-Spam-Status) and let the user filter based on that
header, instead of clobbering the subject.

> or normally any message from a blacklisted
> host is rejected?
>


However, this is a very simplistic approach to spam that may detect some
spam, but will let go lots of it undetected. You should take a look at
spamassassin or another similar product.

And please do not hijack threads, that is, do not reply to an existing
message in order to start a new topic.

--
Eduardo M Kalinowski
eduardo@???