Hi, There is no X-Forwarded-For header in SMTP, hence HAProxy can't set it up.... As you said, there is an alternative: transparent proxy. It's up to you to setup your kernel, iptables and HAProxy to do it. there are many howtos on the web for this purpose. (if you don't want to bother with all the stuff under the wood, you can give a try to the ALOHA, haproxy appliance where everything is already setup for you and transparent proxy is summarized to a directive in HAProxy).
Second option, you can use the proxy protocol and postfix as a SMTP relay (since postfix can understand it). Example of HAProxy and Postfix with Proxy-Protocol: http://blog.exceliance.fr/2012/06/30/efficient-smtp-relay-infrastructure-with-postfix-and-load-balancers/ More info and software compatible with proxy protocol: http://blog.exceliance.fr/proxy-protocol/ and finally, the proxy protocol description: http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt Cheers On Tue, Jan 8, 2013 at 6:24 PM, Ryan Oakes <[email protected]> wrote: > Hello, > > I understand that HAProxy does not support client ip forwarding for SMTP, > looks like for http you can use forwardfor. Is there anyway within just > HAProxy to facilitate this with out using TProxy that you know of? I > appreciate any and all help :-) Thank you. > > -- > Ryan Oakes > Data Transition Specialist > Redtail Technology > Toll Free: 800.206.5030 > Extension: 1011 > Fax: 916.669.1743 > > [email protected] > > Confidentiality Notice: This E-mail transmission may contain confidential or > legally privileged information that is intended only for the individual or > entity named in the E-mail address. If you are not the intended recipient, > you are hereby notified that any disclosure, copying, distribution, or > reliance upon the content of this E-mail is strictly prohibited. If you have > received this E-mail in error, please reply to the sender so that Redtail > Technology can arrange for proper delivery, and then please delete this > message from your inbox. Thank you. > >

