Re: [Exim] More of Filtering by Header Data

Page principale
Supprimer ce message
Répondre à ce message
Auteur: dman
Date:  
À: exim-users
Sujet: Re: [Exim] More of Filtering by Header Data
On Wed, Jan 09, 2002 at 09:21:56PM +0100, John and Catherine Allen wrote:
| From: "Scott Nolde" <scott@???>
| Sent: Tuesday, January 08, 2002 9:41 PM
| > I'd like to ask about something similar, but about filtering based on
| > $h_received: instead of $h_from:. I already have a list of spammer
| > domains set by sender_reject_recipients = @@lsearch;/etc/exim/spammers
| in
| > my config file.
| >
| > How can implement something similar in my system filter to test the
| > contents if {$h_received:} contains/matches domains in my spammers file?

|
| There was a message on 24.12.2001 from dman, subject "Drop blacklisted
| senders..." which might be relevant.


If you want to work only with user filter files, see that post. If
you can adjust the system config then use a director like

#
# Check the user's bouncelist
#
user_bouncelist:
    driver          = smartuser
    require_files   = /home/${local_part}/.exim/bouncelist
    senders         = /home/${local_part}/.exim/bouncelist
    new_address = :fail: \"${local_part}@${domain}\" thinks you are a spammer



this checks the sender address against a list of regexes.


To blacklist domains you can use something like :

http://lists.debian.org/debian-user/2002/debian-user-200201/msg01351.html

First I described how you could attempt to check Received: headers
(but I think you really need a loop construct to do that so you can
iterate over all the Received: headers individually and check each
host) then I learned about (and described) host_reject_recipient and
the net-* lookups which is probably what you want to use.

HTH,
-D

--

Dishonest money dwindles away,
but he who gathers money little by little makes it grow.
        Proverbs 13:11