I’m new to this forum and also new to the wonderful World of F5 - so please go easy on me should I ask anything stupidily obvious!
The reason I’m posting is to see if anyone has an idea how I can forward smtp traffic to a smarthost (say cluster.email.com)? I’ve setup a virtual server listening on port 25 and also set a pool up that includes the servers I want to be able to send/receive smtp traffic…i’ve also set the send connector on those servers to point at the VIP…but how can I get the VIP, which is listening on Port 25, to send the smtp traffic on to cluster.email.com? The reason I want to set this up is so I can install one SSL certificate on the VIP that can be used for all the exchange boxes etc…
Any help would be appreciated as I’m no F5 guru to say the least…exchange i’m not too bad with though!
I am a bit confused - why are you pointing your send connectors to the VIP? Shouldn’t they explicitly be pointed to Cluster.emal.com(which I assume does not resolve to your VIP and does not reside on your Hub/Edge servers?
Secondly…the idea was to be able to point our 3 Hub Transport servers at the VIP, then the VIP would forward traffic to our email service provider (cluster.email.com etc)…this way we would only need to install one SSL certificate on the F5 for all the smtp traffic generated too/from our 3 Hub Transport servers! Does that make more sense to you now?
Maybe a diagram would help. I am not sure I see the value or reason to provide a VIP on F5 for cloud.email.com - that name does not live in your environment/namespace - so how it come into play? You configure each Hub server to send external mail via cloud.email.com host - and that host IP lives in the cloud - so why intercept that traffic at the LTM level? I am probably missing some piece of info here…
The value would be to reduce the amount of SSL certificates required for our hub transport servers…from 3 to 1 SSL certificate. I agree that the name (cloud.email.com) does not live in our namespace, hence the reason I want to forward traffic to that names space(which out of interest is the fqdn of the exchange cluster that our email service provider uses to route email through)! I believe a simple irule to forward any traffic received by the SMTP VIP would do the trick, but I’m no good with irules! If a diagram would be better then I can always provide one, should I email you direct?
But if your hub servers are sending outbound SMTP connections to email.cloud.com, then they are not using SSL certs hosted on them, right - email.cloud.com provides its own SSL cert and you don’t have access to it, right?
no mate The HUB servers are sending outbound traffic to the Vip(172.30.1.1) and then I just want the VIP to forward that traffic to our Email Service Provider(cluster.messagelabs.com or cloud.email.com)…so the SSL certificate will be installed on the VIP…but regardless of the SSL certificates or my exchange setup - I just want an IRule forward traffic to a FQDN..surely thats possible?
I think I am getting it now. So, I think you simply want to point your hubs to that VIP/name internally, but have that VIP send traffic to cluster.messagelabs.com. In that case you should use an iRule that checks source IP and if it matches IP of your hub servers, you will then resolve cluster.messagelabs.com using Jason’s suggestion and forward traffic to that IP using node command.
Yes that is exactly what i am trying to achieve! Would there be any chance you could provide me with the required irule…I only ask because i am a complete noob to irules and it’ll probably take me some time to figure this out! No worries if not…i’ll just get reading/googling!
We have a similar situation where our ingress mail (Internet resolved MX) points to messagelabs.com. Traffic is subsequently forwarded to our location, through our edge firewall (and NAT’d - public IP to private) to a private F5 VIP IP (with two backend Exchange mail edge servers in a pool).
Additionally, we need to have our egress mail traffic (that is sourced from the two edge pool members) reverse-proxy back through the same VIP IP address (currently used for ingress traffic).
Our thinking was to create a SNAT similar to the one below and assign it to the appropriate F5 based VLAN:
snat mail-snat {
translation 10.225.18.41
origins {
10.19.154.36
10.19.154.37
}
vlans dmz enable
}
For some reason, the traffic isnt using the SNAT (egress): as the traffic leaves our network, it is using the edge firewall based NAT Overload address instead of the static one-to-one NAT currently inplace for ingress traffic.