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 email@example.com
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:
* !^X-Loop: firstname.lastname@example.org
* ^X-Spam-Status: Yes
| formail -A "X-Loop: email@example.com" | \
/usr/sbin/sendmail -oi firstname.lastname@example.org
This code works, meaning all mail that gets marked as spam by spamassassin also gets redirected to email@example.com
. 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?
It seems the mails get checked by spamassassin over and over again until finally they're to big (>256k) to be handled.