Forum Discussion
Jim_Carlberg_98
Jan 10, 2011Nimbostratus
Adding x-header to SMTP
Looking for an example i-rule that can modify SMTP packet and add an x-header. We have products that scan mail and do actions based on x-header. I want the F5 to add text to a new x-header so that a ...
The_Bhattman
Jan 11, 2011Nimbostratus
Hi Jim,
There are no native SMTP commands in iRules, which would allow you to insert an SMTP header in requests. You would need to collect the SMTP TCP data, insert the new X- header into the payload and then replace the original payload with the new one. There is an SMTP proxy iRule in the Codeshare which may be a helpful reference Click Here.
TCP::payload wiki page Click Here also has some good examples there.
I hope this helps
Bhattman
- Brian_MintonFeb 19, 2020Nimbostratus
That SMTP proxy irule is now located at https://devcentral.f5.com/s/articles/smtp-proxy-send-to-specific-pool-based-on-sender-domain
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