Forum Discussion

zpf_eccom's avatar
zpf_eccom
Icon for Nimbostratus rankNimbostratus
Mar 14, 2016

How smtp server record client source ip address

I have a smtp server (linux operations system), i want record(log) client source ip address , but you know , F5 execute auto-map transform client source ip add to internal ip address and server will see an address only , How can i solve the problem ?

 

3 Replies

  • To get the client IP address, you have two choices : - Disable SNAT alltogether. The BigIP needs to be your email server default gateway. In this configuration, the BigIP simply routes back and forth the SMTP traffic, do what it has to do in the middle, but the SMTP server sees the client IP. - Make your email server support the PROXY protocol, and play around with iRules to make it work on the BigIP: Proxy Protocol : http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt Example iRule for the BigIP side : https://devcentral.f5.com/s/articles/proxy-protocol-initiator Postfix for instance support the Proxy Protocol.