Forum Discussion

gg234_32466's avatar
gg234_32466
Icon for Nimbostratus rankNimbostratus
Oct 08, 2010

SMTP iRule help needed

Guys,

 

 

I am very new to iRules please help me with the following situation

 

 

We have a SMTP VS with two members.Now we have a requirement as follows

 

 

1) one User sends an email to xxxx@example1.com and another user sends an email to xxxx@example2.com domain users now once bigip SMTP VS receives these mail messages we need to send different mail gateway than the existing members in SMTP VS.

 

 

I think this can be done through iRules but i am new to irules and i didn't know how to create for this

 

 

Thanks for your help

 

 

 

  • There is no standard decode for smtp built in, so you'll need to do a TCP::collect in the CLIENT_ACCEPTED event and process that collection in the CLIENT_DATA event. Take a look at this smtp proxy iRule, it has a lot of the work already done for you:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/SMTPProxy.html Click Here