Forum Discussion
JG
May 18, 2014Cumulonimbus
iRule for SMTP: Passing Client IP Addr to backend mail servers
When SNATs are used for a virtual server, the backend SMTP servers cannot get the client IP address. This irule is intended to replace the string after "EHLO" or "HELO" in mail client initiation with...
John_Alam_45640
May 19, 2014Historic F5 Account
Take out the \r\n from the expression. The (.*) should match that as well.
STREAM::expression {@^EHLO.*@@ @^HELO.*@@}
Here is an example:
(System32) 30 % regexp {EHLO.*} "EHLO 1.1.1.1\r\n" var1
1
(System32) 31 % puts $var1
EHLO 1.1.1.1
(System32) 32 %
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects