Testing SMTP Authentication
search cancel

Testing SMTP Authentication


Article ID: 173523


Updated On:


Messaging Gateway


SMTP Authentication is setup in Messaging Gateway but connections are failing.


Messaging Gateway configured for SMTP AUTH.


You can test if SMTP Authentication is working on Messaging Gateway with these steps:

(NOTE: Before you begin you will need to base64 encode your test username and password. There are multiple tools/websites that can do this. Use caution in providing security credentials to unknown third party websites)

  1. Run command, "telnet -b <IP of SMG> 587" (where <IP of SMG> is replaced by the IP configured in the Authentication tab)

    1. It will return a 220 banner including the name of your Messaging Gateway.

  2. Run command, "EHLO example.com"

    1. It will return the SMTP verbs offered by Messaging Gateway. AUTH LOGIN should be in the list.

  3. Run command, "AUTH LOGIN"

    1. It will return, "334 VXNlcm5hbWU6" (This is a base64 encoded string asking you for your username)

      1. Paste the base64 encoded username you created earlier.

    2. It will return "334 UGFzc3dvcmQ6" (Again this is a base64 encoded string now asking for your password)

      1. Paste the base64 encoded password you created.

    3. It will return, "235 2.0.0 Authed. Go on."

  4. Run command, "mail from: <sender email address>"

    1. It will return, "250 2.0.0 MAIL FROM accepted"

  5. Run command "rcpt to: <recipient email address>"

    1. It will return, "250 2.0.0 RCPT TO accepted"

  6. Run command, "data"

  7. Type, "Subject: Testing SMTP Auth" (Press enter twice here)

  8. Type, "Test email"

  9. Type, "."

    1. It will return, "250 2.0.0 OK"

  10. Run command, "quit"

    1. It will return, "221 2.3.0 server.example.com closing connection"