[Exim] exim3/spamassassin/amavis mail looping with no error

Pàgina inicial
Delete this message
Reply to this message
Autor: Bob Branch
Data:  
A: exim-users
Assumpte: [Exim] exim3/spamassassin/amavis mail looping with no error
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.

I've attached relevant log segments below. I understand this is
apparently a misconfiguration of some sort, though I haven't been able
to track down where or what the misconfiguration is via google or any
error messages truly relevant to the problem.

Any help would be GREATLY appreciated!

Regards,
Bob Branch..

(syslog)
Mar 25 08:57:23 mail2 spamd[29267]: connection from mail2 [127.0.0.1] at
port 44518
Mar 25 08:57:23 mail2 spamd[30492]: info: setuid to mail succeeded
Mar 25 08:57:23 mail2 spamd[30492]: processing message
<E1B6VM8-0007tv-00@mail2> for mail:8.
Mar 25 08:57:24 mail2 spamd[30492]: clean message (0.0/5.0) for mail:8
in 1.0 seconds, 51549 bytes.
Mar 25 08:57:24 mail2 postgres[30495]: [1] DEBUG: connection:
host=127.0.0.1 user=exim database=maildb
Mar 25 08:57:24 mail2 postgres[30498]: [1] DEBUG: connection:
host=127.0.0.1 user=exim database=maildb
Mar 25 08:57:24 mail2 amavis[30208]: (30208-10) Passed, (?) ->
<postmaster@???>, Message-ID: <E1B6VM8-0007tv-00@mail2>, Hits:
-
Mar 25 08:57:24 mail2 postgres[30500]: [1] DEBUG: connection:
host=127.0.0.1 user=exim database=maildb
Mar 25 08:57:24 mail2 postgres[30506]: [1] DEBUG: connection:
host=127.0.0.1 user=exim database=maildb
Mar 25 08:57:24 mail2 spamd[29267]: connection from mail2 [127.0.0.1] at
port 44524
Mar 25 08:57:24 mail2 spamd[30507]: info: setuid to mail succeeded
Mar 25 08:57:24 mail2 spamd[30507]: processing message
<E1B6VM8-0007tv-00@mail2> for mail:8.
Mar 25 08:57:25 mail2 spamd[30507]: clean message (0.0/5.0) for mail:8
in 1.0 seconds, 52123 bytes.
Mar 25 08:57:25 mail2 postgres[30510]: [1] DEBUG: connection:
host=127.0.0.1 user=exim database=maildb
Mar 25 08:57:25 mail2 postgres[30515]: [1] DEBUG: connection:
host=127.0.0.1 user=exim database=maildb
Mar 25 08:57:25 mail2 amavis[30493]: (30493-01) Passed, (?) ->
<postmaster@???>, Message-ID: <E1B6VM8-0007tv-00@mail2>, Hits:
-
Mar 25 08:57:25 mail2 postgres[30517]: [1] DEBUG: connection:
host=127.0.0.1 user=exim database=maildb
Mar 25 08:57:25 mail2 postgres[30523]: [1] DEBUG: connection:
host=127.0.0.1 user=exim database=maildb

(exim mainlog)
2004-03-25 08:57:23 1B6VMH-0007vV-00 => postmaster@???
D=amavis_director T=amavis_smtp H=127.0.0.1 [127.0.0.1]
2004-03-25 08:57:23 1B6VMH-0007vV-00 Completed
2004-03-25 08:57:23 1B6VMH-0007vQ-00 => postmaster
<postmaster@???> D=spamcheck_director T=spamcheck
2004-03-25 08:57:23 1B6VMH-0007vQ-00 Completed
2004-03-25 08:57:24 1B6VMJ-0007vj-00 <= <> U=mail P=spam-scanned S=51706
id=E1B6VM8-0007tv-00@mail2
2004-03-25 08:57:24 1B6VMK-0007vt-00 <= <> U=amavis P=scanned-ok S=52123
id=E1B6VM8-0007tv-00@mail2
2004-03-25 08:57:24 1B6VMJ-0007vj-00 => postmaster@???
D=amavis_director T=amavis_smtp H=127.0.0.1 [127.0.0.1]
2004-03-25 08:57:24 1B6VMJ-0007vj-00 Completed
2004-03-25 08:57:24 1B6VMI-0007ve-00 => postmaster
<postmaster@???> D=spamcheck_director T=spamcheck
2004-03-25 08:57:24 1B6VMI-0007ve-00 Completed
2004-03-25 08:57:25 1B6VMK-0007vy-00 <= <> U=mail P=spam-scanned S=52280
id=E1B6VM8-0007tv-00@mail2
2004-03-25 08:57:25 1B6VML-0007wA-00 <= <> U=amavis P=scanned-ok S=52697
id=E1B6VM8-0007tv-00@mail2
2004-03-25 08:57:26 1B6VMK-0007vy-00 => postmaster@???
D=amavis_director T=amavis_smtp H=127.0.0.1 [127.0.0.1]
2004-03-25 08:57:26 1B6VMK-0007vy-00 Completed

(also exim mainlog - relevant bit is the too many headers message)
2004-03-25 08:57:26 1B6VML-0007wF-00 <= <> U=mail P=spam-scanned S=52854
id=E1B6VM8-0007tv-00@mail2
2004-03-25 08:57:27 1B6VML-0007wF-00 ** Too many "Received" headers -
suspected mail loop
2004-03-25 08:57:27 1B6VMN-0007wN-00 <= <> R=1B6VML-0007wF-00 U=mail
P=local S=53605
2004-03-25 08:57:27 1B6VML-0007wF-00 Error message sent to
postmaster@???
2004-03-25 08:57:27 1B6VML-0007wF-00 Completed