-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I got mails like this:
- ---
Received: from someserver ([::ffff:122.216.181.2])
by linde.someserver with esmtp; Sun, 27 Jul 2008 10:30:07 +0900
id 0000C2BB.488BCF9F.00000448
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on
linde.someserver
X-Spam-Level:
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RDNS_NONE
autolearn=no version=3.2.3
Received: from someserver ([::ffff:122.216.181.2])
by linde.someserver with esmtp; Sun, 27 Jul 2008 10:30:05 +0900
id 0000C2C8.488BCF9D.00000443
-- in total 100 Received headers
Received: (qmail 554 invoked for bounce); 27 Jul 2008 01:28:12 -0000
Date: 27 Jul 2008 01:28:12 -0000
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: failure notice
Message-ID: <[EMAIL PROTECTED]>
- ---
Once there are more than 100 header records you get an 'Looping'
exception.
The exception is no problem but I didn't understand why the mail was
processed multiple times.
For each of the additional header lines the log showed a 'newmsg'
record; so obviously it was generated by the server.
It turned out that the spam test was looping.
After hours of search and I checked the spamassassin pythonfilter
config file.
[spamassassin.py]
spamcPath = '/usr/bin/spamc'
maxMsgSize = 512000
#username = 'username'
#rejectScore = 5
We don't run user-specific spam tests and therefore spamc is run as
root.
Therefore I changed the file to read like:
[spamassassin.py]
spamcPath = '/usr/bin/spamc'
maxMsgSize = 512000
username = 'root'
#rejectScore = 5
Now everything works like a charm.
While this is understandable once you checked all the details I wonder
whether it would be possible to check for the correct user.
May be this is difficult.
At the very least a comment in the README file and/or in
pythonfilter-modules.conf would be very much appreciated!
When investigating this problem I also check xfilter.py and the line:
self.message.add_header('X-Filtered-By', filterName)
suggests that it adds a header line.
However, I can't find this header line in my mails although the
spamassassin headers are showing fine:
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on
linde.choicenet.ne.jp
X-Spam-Level:
X-Spam-Status: No, score=0.1 required=5.0 tests=RDNS_NONE autolearn=no
version=3.2.3
Thanks for pythonfilter!
Regards,
Bernd
- --
プラゲ ベェアント - Bernd Plagge
ファースト・チョイス・インターネット(有)
First Choice Internet Ltd., Tokyo
Tel. 03-4500-7799
Fax. 03-4400-3723
mail: [EMAIL PROTECTED]
url: http://www.choicenet.ne.jp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkiL6gkACgkQpYU8M8PbPV6iCgCgrfe3lHXyFhH01qM/kFSxJA6l
3FkAoJje+fE3upIQ9rX+mcjpJcj9144t
=Sjas
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users