Re: [exim] SpamAssassin + add_header

Top Pagina
Delete this message
Reply to this message
Auteur: Ted Cooper
Datum:  
Aan: exim-users
Onderwerp: Re: [exim] SpamAssassin + add_header
Philip Hazel wrote:
> On Sat, 1 Sep 2007, Ted Cooper wrote:
>
>> Ok, so I had a few minutes spare to check this out .. adding a header
>> during the RCPT stage doesn't seem to make it turn up in the DATA stage.
>
> It should. The manual (section 40.22) says:
>
> Added header lines are accumulated during the MAIL, RCPT, and predata
> ACLs. They are added to the message before processing the DATA and
> MIME ACLs.
>
> ... and the code certainly looks like it does that. If you run test with
> -bh and -d (to get debugging output), you should see a debugging line
> like this:
>
>>> Headers added by %s ACL:
>
> where %s is replaced by RCPT or DATA, as appropriate.


*sheepish grin*
Well after running it in debug mode and running numerous tests, I
finally found my issue.

It was a silly mistake of having 2 typos in both exim and SA, AND
forgetting to SIGHUP the spamd daemon and forgetting that spamassassin
-t reads its config when it starts. *sigh* I knew I should have only
done this sort of thing in the morning.

Anyway, adding the headers in the pre-DATA or before causes it to be
present in the message passed to SA which is exactly what I wanted and
exactly what the manual says :P This means you can pass all sorts of
markers in addition to what it figures itself which is brilliant.

Thanks for that :)

--
The Exim Manual
http://www.exim.org/docs.html
http://www.exim.org/exim-html-current/doc/html/spec_html/index.html