So, I learn about SMTP and try to use telnet to send mail through SMTP.
I could easily send mail to my gmail account with:
$ 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 am unable to send from my gmail account. From what I understand about SMTP, I have to use SMTP to send mail from < mygmailaddress@gmail.com > to outgoing gmail SMTP servers, which in turn use SMTP to send mail to the recipient of the incoming ect SMTP server.
However, I have difficulties. If I telnet to smtp.gmail.com through port 465 (gmail outgoing smtp canonical mail server), I immediately disconnected after starting with HELO < blah@blah.com > or asked STARTTLS . I can not find the answers to the question of how to proceed.
Any help is appreciated.
Sidenote: I am currently using Starbucks free Wi-Fi to access the Internet. Actually I cannot telnet directly from my computer (host routing error). Instead, it only works if I ssh in a remote Linux box on my school network, and then telnet from there. Any idea why this is?
Thanks!
gone
source share