Forum Discussion
Terje_Gravvold
Nimbostratus
Jun 13, 2006SMTP_proxy
For some reasons, not mentioned here :-), we have decided to do loadbalancing on BigIP based on recipient e-mail address.
The case is like this:
- E-mail reaches BigIP.
- SMTP_proxy iRule triggers.
- E-mails containing recipient a@mydomain.com gets directed to pool_a all others go to a default pool.
I've copied the SMTPproxy iRule from the download area and re-written it for our use. I now got something that works (at least when I'm using telnet :-)).
What I request is for you clever guys to have a look at it and comment whats good and whats bad. I'm new to iRulse and have just recently finished the BigIP course track. I'm specialy interessed in any comments regarding better regexps and SMTP standard related stuff. It would be nice to not break to many RFCs while trying to achive what we want. Also I'm interessed in any security related things you may notice.
This is not a producion version so please do not use it for your own use without re-writing it for your use and test it properly. If you find use for this iRule yourself thats fine, but please give me a hint if you get some clever ideas on the way.
The iRule is attached to this post.
Best regards
Terje Gravvold
- unRuleY_95363Historic F5 AccountI like it!!
- Terje_Gravvold
Nimbostratus
I'll take that as a complement, but the guy(s) who created the SMTPproxy iRule in the download area is the one(s) that realy deserves the credits. I've just "stolen" their work. - Terje_Gravvold
Nimbostratus
Sure! That would be a honor. I'll try to complete the todo list and post a better more stabel version. I've just worked with iRuls for two months and I'm not a programmer so it could be quite a few bugs hided in there ;-). - Terje_Gravvold
Nimbostratus
Time for a new release. - atrixnet_102486
Nimbostratus
Looks like nothing short of genius to me! - Terje_Gravvold
Nimbostratus
Please note that we've never got to run this iRule in production due to the lack of ESMTP support and the lack of time to develop this support.
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