OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: adding headers

From: Magnus Bäck (magnusdsek.lth.se)
Date: Sat Aug 04 2007 - 04:38:14 CDT


On Friday, August 03, 2007 at 15:19 CEST,
     Nikolay Shopik <shopikinblock.ru> wrote:

> I was wondering how I can add additional headers to message?
> For example if some remote MTA putting non FQDN EHLO and I want pass
> this message but let spamassassin decide on it.

You could use the PREPEND action in an access map to add such a header,
but that assumes that you can express the condition you want to catch
using the access map. In this particular case you can do that reasonably
well. The following in a check_helo_access map should work:

    /^[a-z0-9-_]+/ PREPEND X-Non-FQDN-Helo: Yes

For better flexibility, use a policy server.

--
Magnus Bäck
magnusdsek.lth.se