No you can't, as Haproxy don't know SMTP protocol, but it can be great to add if someone is inspired by this :)
Hervé. On Wed, 8 Dec 2010 09:58:40 +0000 Malcolm Turnbull <malc...@loadbalancer.org> wrote: > The new stunnel proxy functionality got me thinking (which is normally > a bad thing): > > With HAProxy is it possible to insert an x-forwarded (or similar) in > SMTP? > > F5 suggest: > You could insert the IP in the optional comments field, assuming > exchange can access it there. > Comments: [IP::client_addr] > > Or from the postfix documentation: > XFORWARD Example > > In the following example, information sent by the client is shown in > bold font. > > 220 server.example.com ESMTP Postfix > EHLO client.example.com > 250-server.example.com > 250-PIPELINING > 250-SIZE 10240000 > 250-VRFY > 250-ETRN > 250-XFORWARD NAME ADDR PROTO HELO > 250 8BITMIME > XFORWARD NAME=spike.porcupine.org ADDR=168.100.189.2 PROTO=ESMTP > 250 Ok > XFORWARD HELO=spike.porcupine.org > 250 Ok > MAIL FROM:<wie...@porcupine.org> > 250 Ok > RCPT TO:<u...@example.com> > 250 Ok > DATA > 354 End data with <CR><LF>.<CR><LF> > . . .message content. . . > . > 250 Ok: queued as 3CF6B2AAE8 > QUIT > 221 Bye > > > > > -- Hervé COMMOWICK, EXOSEC (http://www.exosec.fr/) ZAC des Metz - 3 Rue du petit robinson - 78350 JOUY EN JOSAS Tel: +33 1 30 67 60 65 - Fax: +33 1 75 43 40 70 mailto:hcommow...@exosec.fr