Re: [exim] add_header question

Top Page
Delete this message
Reply to this message
Author: Chris Edwards
Date:  
To: exim-users
Subject: Re: [exim] add_header question
On Thu, 5 Jun 2008, Marc Perkel wrote:

| If I use add_header in an ACL then then in the next ACL I run
| spamassassin - does the add_header run first and add the header so that
| spamassassin sees it?


We do this all the time. The RCPT acl writes warning headers. The DATA
acl calls spamassassin which acts on them.

For example, where the sending host isn't DNS registered, exim writes a
header which causes SA to award points. Yes, I suspect this can be done
entirely within SA itself - however we find it more elegant to let exim
decide ($host_lookup_failed) and leave SA simply to score.

Similar for DNSBLs which we don't trust for an outright reject. Again, we
do the lookups in exim, and write headers for SA to score.

What _doesn't_ work is writing a header in the DATA acl itself, prior to
the call to SA. The doesn't seem to be seen by SA.

(at least not in our version)