Terje_Gravvold
Jun 13, 2006Nimbostratus
SMTP_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