[Exim] Re: Exim not passing email to spamassassin

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Derrick 'dman' Hudson
Date:  
À: 'exim-users@exim.org'
Sujet: [Exim] Re: Exim not passing email to spamassassin
--
On Mon, Jun 10, 2002 at 01:46:48PM -0400, Owen Creger wrote:
| -----Original Message-----
| From: Owen Creger
| Sent: Monday, June 10, 2002 1:40 PM
| To: Owen Creger
| Subject: RE: [Exim] Exim not passing email to spamassassin

|
|
| I changed the domainlist router to use spamcheck and now the emails are
| checked numerous times :-(
| What did I do wrong?


exim 4 is much easier to understand.

exim 3 has two separate sections that handle "outgoing" mail. One of
them, directors, is for outgoing mail that is delivered locally. The
other, routers, is for outgoing mail that isn't being delivered
locally. What you want to do is copy the spamcheck_director into the
top of the routers section.

By changing the domainlist router to use the spamcheck transport
here's what happens :

1)  new message arrives.
2)  route it -- it isn't for a "local domain", check the routers list
3)  "domainlist" router accepts responsiblity for it
4)  deliver it -- the router says to use the "spamcheck" transport
5)  feed it to the spamcheck transport, we're all done here
6)  new message arrives (this "new" message is the output from spamc,
    it's really the same message but exim doesn't know that)
7)  go to #2
ad inifinitum


The trick to changing step #7 is to set $received_protocol during the
spamcheck transport and then bypassing the spamcheck_router (which you
will create by moving the spamcheck_director).

[snip to rather critial details in the config]
| >     command = /usr/sbin/exim -oMr spam-scanned -bS

                                 ^^^^^^^^^^^^^^^^^

| >     # When to scan a message :
| >     #   -   it isn't already scanned


| >     condition = "${if !eq {$received_protocol}{spam-scanned} {1}{0 }}"


| > Should I change the domainlookup router to use the spamcheck
| > transport?


No.


It is important, when configuring exim, to understand how exim handles
addresses and messages (routers, directors, transports and the
interactions between them).

HTH,
-D

--

The righteous hate what is false,
but the wicked bring shame and disgrace.
        Proverbs 13:5


GnuPG key : http://dman.ddts.net/~dman/public_key.gpg

--
[ Content of type application/pgp-signature deleted ]
--