Re: [exim] Adding/replacing headers with ACL warn

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tony Finch
Dátum:  
Címzett: Matthew Newton
CC: exim-users
Tárgy: Re: [exim] Adding/replacing headers with ACL warn
On Mon, 31 Jan 2005, Matthew Newton wrote:
>
> If not, can anyone suggest a good tidy workaround? Is there an ACL
> command to remove particular headers?


There is not.

One way would be to use headers_remove and headers_add on a transport or
router. You could use an ACL variable to transmit the contents of the
Spam Score header to the headers_add statement.

We use an X-Cam-SpamScore header, partly because MailScanner encourages
that kind of branding, and partly to avoid clashing with other
SpamAssassin installations - both from the point of view of having to
remove existing headers or to allow both our header and a user's header to
coexist in a message. We are of course assuming that spammers won't try to
spoof the name, but we reckon this is unlikely because we're not a very
big target.

There's a bug in that the X-Cam- fields are appended to the header, which
makes it hard to tell when they were added. In the future I'll probably
use Exim's ACL warn message = :at_start: feature to insert them at the
appropriate point in the Received: chain.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}