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 ?

You can disable auto-map.

if can i use iRules to solve it ?

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 : Proxy Protocol Initiator - Community CodeShare - DevCentral - An F5 Technical Community Postfix for instance support the Proxy Protocol.