postfix-users

Re: adding headers

Subject: Re: adding headers
From: Magnus Bäck <magnus AT dsek.lth DOT se>
To: postfix-users AT postfix DOT org
Date: Sat, 4 Aug 2007 11:43:48 +0200
On Saturday, August 04, 2007 at 11:38 CEST,
     Magnus Bäck <magnus AT dsek.lth DOT se> wrote:

> On Friday, August 03, 2007 at 15:19 CEST,
>      Nikolay Shopik <shopik AT inblock DOT 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.

Dang, forgot the $:

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

-- 
Magnus Bäck
magnus AT dsek.lth DOT se

<Prev in Thread] Current Thread [Next in Thread>