Re: [Exim] exim3/spamassassin/amavis mail looping with no er…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nigel Wade
Dátum:  
Címzett: Bob Branch, Exim users list
Tárgy: Re: [Exim] exim3/spamassassin/amavis mail looping with no error
Bob Branch wrote:
> So I've got exim/amavis working great for sending/receiving mail to/from
> virtual accounts and virtual domains, and scanning them for viruses and
> being happy..
>
> My next task was to get spamassassin working. I've followed the docs on
> spamassassin.org and put in the following transport and director:
> (yes I know they're commented out heh)
>
> transport -
> #spamcheck:
> #       driver = pipe
> #       command = /usr/sbin/exim -oMr spam-scanned -bS
> #       transport_filter = /usr/bin/spamc -u ${local_part}@$domain
> #       transport_filter = /usr/bin/spamc -u mail
> #       bsmtp = all
> #       home_directory = "/tmp"
> #       current_directory = "/tmp"
> #       user = mail
> #       group = mail
> #       return_path_add = false
> #       log_output = true
> #       return_fail_output = true
> #       prefix =
> #       suffix =

>
> director -
> #spamcheck_director:
> #       no_verify
> #       condition = "${if and { {!def:h_X-Spam-Flag:} {!eq
> {$received_protocol}{spam-scanned}} {!eq {$received_protocol}{local}} }
> {1}{0}}"
> #       driver = smartuser
> #       transport = spamcheck

>
> The problem I'm coming across is this.. I send a message, spamassassin
> scans it, pronounces it clean..and..then...proceeds to scan it again?
> endlessly..Apparently appending onto it more received headers, because
> eventually it fails due to too many of them, and repeats the process for
> both the bounce message, and the subsequent message sent to postmaster.
>



It looks to me as though your test will be true if the message has no
X-Spam-Flag header. If the message isn't spam it won't have this header, so
gets sent back into the spamcheck transport...


--
Nigel Wade, System Administrator, Space Plasma Physics Group,
             University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@???
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555