Forum Discussion
Jim_Carlberg_98
Nimbostratus
Jan 10, 2011Adding 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 specific action can be done to that email. The pool members of the VIP are the products that do the action on the email. Hope this is clear.
3 Replies
- The_Bhattman
Nimbostratus
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_Minton
Nimbostratus
That SMTP proxy irule is now located at https://devcentral.f5.com/s/articles/smtp-proxy-send-to-specific-pool-based-on-sender-domain
- Jim_Carlberg_98
Nimbostratus
thanks for the help.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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