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 firstname.lastname@example.org
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: email@example.com
* ^X-Spam-Status: Yes
| formail -A "X-Loop: firstname.lastname@example.org" | \
/usr/sbin/sendmail -oi email@example.com
This code works, meaning all mail that gets marked as spam by spamassassin also gets redirected to firstname.lastname@example.org
. 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.