Forum Discussion
Jamey_Price_105
Aug 13, 2007Nimbostratus
Posted By sh710 on 08/12/2007 5:03 PM
Fish, did you get this resolved at the end ? I have exactly the same issue where I need to capture and translate the internal mail server names to one external address for the client and also making sure that the HTTP request from the client for directed to the right and same mail server every time...
Funny you should mention that. Not only did I manage to work around the problem, I won first place in last year's "iRule. Do you?" contest for it, customer category. http://devcentral.f5.com/Default.aspx?tabid=107
If you go to http://devcentral.f5.com/Default.aspx?tabid=108 which is linked from the previous page, you can see the iRule I submitted. In practice, it's actually a few different iRules that I put together into one for the contest, and I cleaned it up and threw a whackload of comments in to make it more understandable, but it's all there. I don't think it's changed much, if at all, since then either.
There is a small issue, though, that may or may not bite you with how I did it: If the cookie that holds the mailserver gets lost, and you're forced by the server to reauthenticate, on our systems it doesn't send you back through the redirector page where I grab the mailserver, so you can end up on the wrong server. That's not much of a problem here, because our users tend not to leave webmail open that long, but it's something to be aware of. If that's a problem, you could try sticking the info you need to keep in a global variable instead of cookie.
If there's anything I can clarify for you or any questions I can answer, just let me know.
Fish