So I'm learning about SMTP and am trying to use telnet
to send some mail over SMTP.
I've easilly been able to send mail to my gmail account via:
$ host gmail.com
...
gmail.com mail is handled by 5 gmail-smtp-in.l.google.com.
...
$ telnet gmail-smtp-in.l.google.com 25
Trying 74.125.142.27...
...
Connected to gmail-smtp-in.l.google.com.
...
HELO <me@test.com>
...
However, I'm having trouble sending from my gmail account. From what I understand about SMTP, I should be using SMTP to send mail from < mygmailaddress@gmail.com > to the outgoing gmail SMTP servers, which in turn use SMTP to transfer the mail to the receivers incoming SMTP server ect.
However, I'm having difficulties. If I telnet
into smtp.gmail.com
via port 465
(gmail outgoing smtp mail server canonical), I'm immediately disconnected after starting with HELO <blah@blah.com>
, or asked to STARTTLS
. I can't find answers on how to proceed.
Any help is appreciated.
Sidenote: Currently I'm using Starbucks free Wi-Fi to access the internet. I'm actually unable to telnet
directly from my computer (No route to host error). Instead, it only works if I ssh
into a remote linux box on my school's network first, then telnet
from there. Any idea why this is?
Thanks!