[exim] Mark as spam mail messages from blacklisted hosts

Pàgina inicial
Delete this message
Reply to this message
Autor: José de Jesús Gutiérrez Ramírez
Data:  
A: exim-users
Assumptes vells: Re: [exim] Populate a local recipient array from MySQL
Assumpte: [exim] Mark as spam mail messages from blacklisted hosts
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?
btw, it's frequent to do this? or normally any message from a blacklisted
host is rejected?

TIA

Jesus Gtez

PS. This a message sample.

Delivery-date: Wed, 19 Nov 2008 04:06:45 -0600
Received: from eua39.neoplus.adsl.tpnet.pl ([83.20.172.39])
by myserver.com with smtp (Exim 4.63)
(envelope-from <JuniorRamsey@???>)
id 1L2jxM-0005J1-7P; Wed, 19 Nov 2008 04:06:45 -0600
Date: Wed, 19 Nov 2008 05:08:10 -0500
From: " Instanta'nea impulso sexual" <MarieHatfield@???>
Message-ID: <10187.debby@trump>
To: user@???
Subject: Re: Sexual mejora ahora mismo
MIME-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Subject: *SPAM*
X-Warning: 83.20.172.39 is listed at dnsbl.sorbs.net (127.0.0.10: Dynamic IP
Addresses See: http://www.sorbs.net/lookup.shtml?83.20.172.39)