You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Rainer Sokoll <R....@intershop.de> on 2006/06/06 15:26:43 UTC

Re: spamd ignoring add_header

On Wed, May 24, 2006 at 11:46:48AM +0200, Rainer Sokoll wrote:
> Hi all,
> 
> in my local.cf, I have (among others):
> add_header all Contact Rainer Sokoll
> 
> If I pipe a mail through spamassassin, a header X-Spam-Contact: is
> added, as expected. But spamd does not. spamd is called with these
> options:
> "-d -u vscan --siteconfigpath=/usr/local/sendmail/etc/spamassassin -m 10
> --min-children=5 --max-spare=5"
> I know that spamd uses /usr/local/sendmail/etc/spamassassin/local.cf, as
> I have set required_score to 100, which I can see in the mails, for
> example:
> X-Spam-Status: No, hits=28.5 required=100.0
> Any idea why spamd does not set X-Spam-Contact?
> SA 3.1.1.

Update, now for SA 3.1.2:
I have this line in my local.cf:

add_header all Status _YESNO_, hits=_HITS_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_

If I add for example Test=test at the end of the line, I get exactly
this added.
But If I add an additional line, for example

add_header all Test test

there is no X-Spam-Test: test, as I would expect.
The only idea I have is my milter: spamass-milter-0.3.0, invoked with
these options: "-p /var/milter/spamass -f -i 10.0.0.0/8"

I need an enlightement...

Rainer

Re: spamd ignoring add_header

Posted by Rainer Sokoll <R....@intershop.de>.
On Tue, Jun 06, 2006 at 11:19:10AM -0400, Theo Van Dinter wrote:

> As I recall, spamass-milter only copies back a certain set of headers.

Just for the records: You remember right.

From
http://savannah.nongnu.org/support/?func=detailitem&item_id=102966#options

-------8<------
Unfortunately spamass_milter only extracts specific named headers
(Report, Flags, Status) using replace_or_insert, so the custom header is
lost.
-------8<------

Rainer

Re: spamd ignoring add_header

Posted by Rainer Sokoll <R....@intershop.de>.
On Tue, Jun 06, 2006 at 11:19:10AM -0400, Theo Van Dinter wrote:
> On Tue, Jun 06, 2006 at 03:26:43PM +0200, Rainer Sokoll wrote:
> > The only idea I have is my milter: spamass-milter-0.3.0, invoked with
> > these options: "-p /var/milter/spamass -f -i 10.0.0.0/8"
> 
> As I recall, spamass-milter only copies back a certain set of headers.  Do you
> get the header if you run through the normal SA tools?

Yes, I do. With spamassassin as well as with spamd.
I'll ask at the milter list.

Thank you,
Rainer

Re: spamd ignoring add_header

Posted by Theo Van Dinter <fe...@apache.org>.
On Tue, Jun 06, 2006 at 03:26:43PM +0200, Rainer Sokoll wrote:
> The only idea I have is my milter: spamass-milter-0.3.0, invoked with
> these options: "-p /var/milter/spamass -f -i 10.0.0.0/8"

As I recall, spamass-milter only copies back a certain set of headers.  Do you
get the header if you run through the normal SA tools?

-- 
Randomly Generated Tagline:
"IBM: It may be slow, but it's hard to use." - Andrew Tannenbaum