Forum Discussion

Eugene_Reznik_1's avatar
Eugene_Reznik_1
Icon for Nimbostratus rankNimbostratus
Nov 13, 2014

Routing to multiple external SMTP servers

We have multiple external SMTP services and we would like for F5 to load balance between them. Each service has a different set of credentials.

 

Initially I was thinking of setting a up each service as a pool member and injecting the SMTP credentials using an iRule when the member is selected. But I was not able to do it using the iRule.

 

Is that something possible to do with LTM? And if so how?

 

4 Replies

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus

    Not OOTB.

     

    You'd need to persist with your original thoughts, and write an iRule to insert the credentials into the stream dependent on the member being selected.

     

    You didn't elaborate why it didn't work previously...

     

    H

     

  • Here is the iRule:

    when CLIENT_ACCEPTED {
        STREAM::expression {@username@user123@ @password@pass123@}
        STREAM::enable
    }
    

    It works when replacing username string as a part of subject/body but not when it's the same string within the actual SMTP username or password.

    • nitass's avatar
      nitass
      Icon for Employee rankEmployee
      are you talking about smtp auth? if yes, is username and password sent in clear text? How to Test SMTP AUTH using Telnet https://www.ndchost.com/wiki/mail/test-smtp-auth-telnet
    • Eugene_Reznik_1's avatar
      Eugene_Reznik_1
      Icon for Nimbostratus rankNimbostratus
      Thanks nitass that was it! I was sending the username and password in plain text.