Forum Discussion
SMTP Relay Redirect to TCP/26
I have three proxy servers (SMTP relay) that I want to put behind my F5's. I will need to create an iRule to redirect SMTP to TCP/26 (SMTP relay servers are listening on TCP/26). I found some samples online and tried to create an irule (below) but it spat up an error. Thanks in advance!
when SMTP_REQUEST { SMTP::header replace Host "[SMTP::host]:26" }
1 Reply
did you just take HTTP::header and HTTP::host and change HTTP to SMTP?
unfortunately it is not that simple, see for example here: https://devcentral.f5.com/questions/adding-x-header-to-smtp
you will need to work with TCP::payload to modify the data.
but wouldn't it work to just have the virtual server listen on :25 and the pool members on :26?
Recent Discussions
Related Content
* 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