Re: Implement Protocol Filter

From: Willy Tarreau <>
Date: Thu, 11 Sep 2008 22:50:57 +0200

On Thu, Sep 11, 2008 at 04:28:46PM +0200, Holger Just wrote:
> Christoph Petersen wrote:
> > Maybe you can give me some advice if it is possible to implement a
> > protocol handler or filter which is able to simply add a header field to
> > the email which is scanned so we can track the server on which the mail
> > was scanned.
> Hi Christoph!
> I'm actually not that safe in configuring SpamAssassin, but according to
> the documentation I read, you can add arbitrary headers using SA on its
> own by using the add_header Keyword (as of 2.6.x) in its configuration.
> You could configure each of your Servers to insert a different header value.
> As far as I know, HAProxy is only able to handle SMTP Traffic as raw TCP
> and can therefore not alter it.

Yes, and it will be far easier once 1.3.16 is out, because implementing a new protocol will only be a new parser, without the complexity of managing the TCP states. So if you're not too impatient, wait a bit before jumping into the code, it will save you a lot of time.

Willy Received on 2008/09/11 22:50

This archive was generated by hypermail 2.2.0 : 2008/09/11 23:01 CEST