AlArenal
6th November 2007, 16:46
Hi!
I'm trying to get this setup to work:
I use a standard ISPConfig installation and so I use postfix, spamassassin over procmail, etc. I created an email account spam@mydomain.tld and added the following code to my spamassassin.rc.master file. Afterwards I changed my accounts so the config got regenerated and reflected my changes in the user's local .spamassassin.rc . Here's my code snippet:
:0:
* ^TO_.*@mydomain.tld
* !^X-Loop: spam@mydomain.tld
* ^X-Spam-Status: Yes
| formail -A "X-Loop: spam@mydomain.tld" | \
/usr/sbin/sendmail -oi spam@mydomain.tld
This code works, meaning all mail that gets marked as spam by spamassassin also gets redirected to spam@mydomain.tld. However there is one drawback:
The mails in my spam account contain the original mail (as returned by spamassassin) several times attached to itself (maybe some 50 times or so). It looks pretty strange and I don't see why this happens.
Can anyone please turn on the light for me?
P.S.:
It seems the mails get checked by spamassassin over and over again until finally they're to big (>256k) to be handled.
I'm trying to get this setup to work:
I use a standard ISPConfig installation and so I use postfix, spamassassin over procmail, etc. I created an email account spam@mydomain.tld and added the following code to my spamassassin.rc.master file. Afterwards I changed my accounts so the config got regenerated and reflected my changes in the user's local .spamassassin.rc . Here's my code snippet:
:0:
* ^TO_.*@mydomain.tld
* !^X-Loop: spam@mydomain.tld
* ^X-Spam-Status: Yes
| formail -A "X-Loop: spam@mydomain.tld" | \
/usr/sbin/sendmail -oi spam@mydomain.tld
This code works, meaning all mail that gets marked as spam by spamassassin also gets redirected to spam@mydomain.tld. However there is one drawback:
The mails in my spam account contain the original mail (as returned by spamassassin) several times attached to itself (maybe some 50 times or so). It looks pretty strange and I don't see why this happens.
Can anyone please turn on the light for me?
P.S.:
It seems the mails get checked by spamassassin over and over again until finally they're to big (>256k) to be handled.