Forum Discussion
hooleylist
Nov 26, 2008Cirrostratus
Hi there,
You can check this post for some suggestions on handling SNAT for SMTP virtual servers. They discuss changing routing as well as how to/issues with logging the client details on LTM.
SNAT Pass the source IP to the sever (SMTP) (Click here)
The basic idea is that it would be easier to change the routing configuration for load balancing the SMTP servers to eliminate the SNAT rather than trying to modify the SMTP headers to insert a custom header.
SMTP does support arbitrary header names (which typically start with X-), but there isn't native support in iRules to parse SMTP and insert a header. So you'd have to collect the TCP data, modify it, and send it to the pool. As AaronB pointed out in the linked post, you'd have to worry about collecting more than 4Mb of TCP data (Click here). Most SMTP messages could easily be above this limit.
Aaron