You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Sebastian Ries <se...@dtnet.de> on 2006/12/19 09:50:58 UTC

Adding TO in custom header

Hi there

I need to filter mails via header_checks in postfix.
These checks schould contain the ricipient and the spam status at the same 
time.
Clearly: I want to redirect mail to a different user if (and only if) the mail 
was detected as spam AND was sent to a specified recipient.

As header_checks in postfix just can check one header line at a time I need to 
have the recipient and the spam-status in that line together.

Adding a custom header line is no problem, but I did not find a Variable or 
something like that that contains the recipient of the current mail.

Is there a way to add this to a custom header?

Regards
Sebastian Ries

-- 
------------------------------------------------------------
DT Netsolution GmbH -  Talaeckerstr. 30 -  D-70437 Stuttgart
Tel: +49-711-849910-36               Fax: +49-711-849910-936
WEB: http://www.dtnet.de/     email: Sebastian.Ries@dtnet.de

Re: Adding TO in custom header

Posted by Sebastian Ries <se...@dtnet.de>.
Hi

> Yes, it is, probably.  At least with a plugin.  But you'd have to define
> "recipient"... Envelope recipient, To/Cc/etc?  If the latter, what's wrong
> with those headers? If the former, it'd probably be better to have the MTA
> do it when passing to the MDA.  Otherwise SpamAssassin would have to look
> at the headers and make some educated guesses.

As explained I have the problem that postfix can only check one (header) line 
at a time.
And I have to redirect mails that are sent to a certain recipient AND are 
detected as spam.

What do I have to look for to find a proper plugin that does something like 
that?

Regards
Sebastian Ries

-- 
------------------------------------------------------------
DT Netsolution GmbH -  Talaeckerstr. 30 -  D-70437 Stuttgart
Tel: +49-711-849910-36               Fax: +49-711-849910-936
WEB: http://www.dtnet.de/     email: Sebastian.Ries@dtnet.de

Re: Adding TO in custom header

Posted by Theo Van Dinter <fe...@apache.org>.
On Thu, Dec 21, 2006 at 08:01:32AM +0100, Sebastian Ries wrote:
> Does noone know if it is possible to add the recipient to a custom header?

Yes, it is, probably.  At least with a plugin.  But you'd have to define "recipient"...
Envelope recipient, To/Cc/etc?  If the latter, what's wrong with those headers?
If the former, it'd probably be better to have the MTA do it when passing to
the MDA.  Otherwise SpamAssassin would have to look at the headers and make
some educated guesses.

-- 
Randomly Selected Tagline:
 Fry: Lucy Liu-bot, if I don't survive the corn, I want you to know that I 
  love you as much as a man can love a computerized image of a gorgeous 
  celebrity, which it turns out is a lot.

Re: Adding TO in custom header

Posted by Sebastian Ries <se...@dtnet.de>.
Hi

Does noone know if it is possible to add the recipient to a custom header?

Regards
Sebastian Ries

-- 
------------------------------------------------------------
DT Netsolution GmbH -  Talaeckerstr. 30 -  D-70437 Stuttgart
Tel: +49-711-849910-36               Fax: +49-711-849910-936
WEB: http://www.dtnet.de/     email: Sebastian.Ries@dtnet.de

Copy all mail to certain account

Posted by Andy Boatman <an...@mcfarlingtech.net>.
Is there anyway to send a blind copy of every email filtered through copfilter 
to another email address?  Perhaps by modifying mailscanner.sh?  I thought i 
saw something about this some time ago, but I can't for the life of me find 
it. I'm using spamassasin 3.1.4 that comes with the copfilter plugin for 
IPCop. I also have spamd running.  Any help is appreciated.

thanks

Andy