* Edgar Pettijohn <[email protected]> le [21-11-2018 11:32:43 -0600]:
> 
> On Nov 21, 2018 8:22 AM, Thuban <[email protected]> wrote:
> >
> > Hi,
> > I can't figure how to make this "junk" argument to work as 
> > mentioned in The smtpd.conf manpages :
> >
> > If the junk argument is provided, the message will be
> > moved to the Junk folder if it contains a positive X-Spam
> > header.
> >
> >
> > spams detected by spamassassin have multiple X-Spam-* headers, but aren't 
> > placed
> > into Junk folder.
> >
> > Any advice ?
> >
> >
> >
> > -- 
> >     thuban
> >
> It looks for a header matching:
> 
> X-Spam: Yes
> 
> You may need to configure spamassassin to write it that way. I believe that 
> the default is different, but I can't check right now.
> 

I tried to add this in spamassassin.conf [0] :

        add_header spam X-Spam

But if you read the link [0] closely, it can't work because spamassassin add
headers "X-Spam-someting", never "X-Spam" : 

        All headers begin with X-Spam- (so a header_name Foo will generate a 
header called X-Spam-Foo)

I guess the "junk" keyword in smtpd.conf was written to be handy, so I miss
something. Where ?

Regards.

[0] 
https://spamassassin.apache.org/full/3.1.x/doc/Mail_SpamAssassin_Conf.html#basic_message_tagging_options
        

Reply via email to