Search code examples
smtptelnet

telnet connection to outgoing SMTP server


I can't establish a connection to an outgoing SMTP server. I get this:

   telnet smtp.gmail.com 25
   Trying 64.233.190.109...
   telnet: connect to address 64.233.190.109: Operation timed out
   Trying 64.233.190.108...
   telnet: connect to address 64.233.190.108: Operation timed out
   Trying 2800:3f0:4003:c00::6d...
   telnet: connect to address 2800:3f0:4003:c00::6d: No route to host
   telnet: Unable to connect to remote host

what is going on?


Solution

  • Most likely, your ISP is blocking outgoing connections on port 25. Many ISP's do this to prevent spammers from running mail servers on their networks. Can you connect to any SMTP server on port 25? Have you tried connecting to smtp.gmail.com on port 587 instead?