OSEC

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

From: Andrea S. Gozzi (as.gozzivp44.net)
Date: Sat Oct 13 2007 - 18:12:09 CDT


On Sat, 2007-10-13 at 23:16 +0200, mouss wrote:
> Andrea S. Gozzi wrote:
> > Hi.
> > I'm currently trying to add some custom headers to all the mail going
> > out from my mail server but I'm not really sure postfix can do the job.
> > It might not sound very clear but I want that every mail sent by a user
> > thru postfix gets a new header like "X-Sender: SASL Authenticated user
> > userdomain.com". Is there any way to implement this behaviour in
> > postfix?
>
>
> Not exactly what you want, but recent postfix has this:
>
> http://www.postfix.org/postconf.5.html#smtpd_sasl_authenticated_header
>
>
> > And more importantly, would this still comply with RFC?
> >
>
> you can add whatever X-* headers (from an RFC standpoint I mean).

Thanks.
What about if I want to insert a random header, like 'X-Foo: Bar', can I
make postfix do it?

Andrea