mohammed_darwee
Mar 14, 2010Nimbostratus
Irule need to replace FQDN in SMTP traffic EHLO Message
Hi All,
I need an iRule to fix the below issue please,
The issue is:
For the traffic coming from external servers i.e. Foreign MMSC towards the MM3/4 Inbound traffic Virtual Server on the F5 i.e. 10.117.5.80:25, then F5 is configure to route to MM3/4 Inbound pool and the pool members are: (10.117.5.75:10025, & 10.117.5.76:10025), then those two servers will process the traffic and route it to MM3/4 Outbound traffic Virtual Server on the F5 i.e. 10.117.5.81:10025, then F5 is configure to route to MM3/4 Outbound pool and the pool members is 10.99.64.36:25 i.e. final destination.
Use Case_1:
Source Destination Protocol INFO
1. 80.227.14.14 10.117.5.80 SMTP Command: HELO mms.mnc003.mcc424.gpr from external server to the F5
2. 10.117.5.79 10.117.5.75 SMTP Response: HELO mms.mnc003.mcc424.gprs from F5 to the internal server
3. 10.117.5.75 10.117.5.81 SMTP Response: EHLO pfm.etisalat.ae from From Internal Server to F5
4. 10.117.5.79 10.99.64.36 SMTP Command: EHLO pfm.etisalat.ae from From F5 to the destination
Use Case_2:
1. 195.12.14.9 10.117.5.80 SMTP Command: HELO www.xxx.zzz from external server to the F5
2. 10.117.5.79 10.117.5.75 SMTP Response: HELO www.xxx.zzz from F5 to the internal server
3. 10.117.5.75 10.117.5.81 SMTP Response: EHLO pfm.etisalat.ae from From Internal Server to F5
4. 10.117.5.79 10.99.64.36 SMTP Command: EHLO pfm.etisalat.ae from From F5 to the destination
Needed Action:
In Packet 4 need F5 to replace the FQDN from pfm.etisalat.ae to the original domain name i.e.
In Use Case_1: it should be: 10.117.5.79 10.99.64.36 SMTP Command: EHLO mms.mnc003.mcc424.gprs instead of pfm.etisalat.ae.
In Use Case_2: it should be: 10.117.5.79 10.99.64.36 SMTP Command: EHLO www.xxx.zzz instead of pfm.etisalat.ae.
Many thanks
Rgds
Mohamed