Forum Discussion
Ajay_Koushik_19
Apr 06, 2015Nimbostratus
iRule to modify SMTP mail content
Hi,
We have an requirement, where in we need to inspect the incoming SMTP message, look for a particular string and based on that modify the mail content. I have written the below iRule but this is n...
cjunior
May 10, 2015Nacreous
It is looking like it might not expecting the CR "\r" character. As a last shot, you could remove the carriage return or test it as below:
for "DATA*" part:
if { [TCP::payload] ends_with "\n.\r\n" || [TCP::payload] ends_with "\n.\n" }
for default part
if { [TCP::payload] ends_with "\n" }
The important here is to know who is the message end identifier.
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