You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Ivo van Steenbruggen <iv...@thinkactive.nl> on 2004/06/09 11:34:03 UTC
forward mail after Spamassassin check
How can I forward e-mail for a particular account to another account on
another host after the Spamassassin check. Now we use a .forward file in
the home dir of the user.
I have running Spamassassin and Spamd working perfect, but when I
forward mail Spamassassin doesn't handle this mail.
--Ivo
Re: forward mail after Spamassassin check
Posted by Sandy S <sa...@boreal.org>.
Ivo -
We have the same kind of situation here, and we set up a personal
.procmailrc file for the person who needs their mail forwarded. Here's
basically how it looks (Replace the []'d areas with your own system's
settings):
In their .forward file:
"|/usr/bin/procmail /[their home directory]/.procmailrc"
----
In their .procmailrc file we have the spamassassin check and the forwarding
code :
:0fw
* <196000
| spamc [whatever options you use]
:0:
* ^X-Spam-Status: Yes
[redirect their spam here]
## forward all remaining mail to the following address
## after adding an X-Loop header to avoid mail looping back
:0BH
* !^X-Loop: [forwarding address]{
:0f
| formail -A"X-Loop: [forwarding address]"
:0
! [forwarding address]
}
:0
/dev/null
----
We add the X-Loop header the first time we forward it, so that if it's
bounced back for some reason (ex. mailbox is full) we don't end up with a
mail loop where we forward the message, it bounces back, we forward the
bounce, it bounces back, etc etc etc
I don't know if this is the kosher way to do it, but it works for us!
Sandy S.
----- Original Message -----
From: "Ivo van Steenbruggen" <iv...@thinkactive.nl>
To: <sp...@incubator.apache.org>
Sent: Wednesday, June 09, 2004 4:34 AM
Subject: forward mail after Spamassassin check
> How can I forward e-mail for a particular account to another account on
> another host after the Spamassassin check. Now we use a .forward file in
> the home dir of the user.
>
> I have running Spamassassin and Spamd working perfect, but when I
> forward mail Spamassassin doesn't handle this mail.
>
> --Ivo
>
>
Re: forward mail after Spamassassin check
Posted by Jason Crowe <jc...@midwestglove.com>.
Ivo van Steenbruggen wrote:
>How can I forward e-mail for a particular account to another account on
>another host after the Spamassassin check. Now we use a .forward file in
>the home dir of the user.
>
>
You could always use procmail to send mail through spamassassin and then
deliver it to wherever.