LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 11-03-2009, 05:15 AM   #1
darshan_ghumare
LQ Newbie
 
Registered: Oct 2009
Posts: 8

Rep: Reputation: 0
ERROR while communicating with gmail


$./a.out smtp.gmail.com 25
220 mx.google.com ESMTP 9sm2923369yxf.23

250 mx.google.com at your service

220 2.0.0 Ready to start TLS

after handshake
Common Name: smtp.gmail.com
after get cert dn
-----BEGIN SSL SESSION PARAMETERS-----
d4f65cac7d180d5b17d3f6334cf60bcaee84cea782dc39be68e9224d06ec9b86
-----END SSL SESSION PARAMETERS-----
CIPHER is RC4-MD5

EHLO
250-mx.google.com at your service, [61.11.23.15]
250-SIZE 35651584
250-8BITMIME
250-AUTH LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250 PIPELINING
MAIL FROM:<root@stripe>
502 5.5.1 Unrecognized command. 9sm2923369yxf.23


Above program just connect to smtp.gmail.com@25 and send
1) HELO
2) STARTTLS
..
After succ handshake we need to send EHELO again. I have sent EHELO but after that whne I semt MAIL FROM it give me unrecognized command why?
 
Old 11-18-2009, 02:15 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hello,

Although you can telnet to Google SMTP server on port 25, you cannot send mails using that port. Google only accepts mails on port 465 instead of 25. That's why the command is failing. If you have a Gmail account yourself, check under Settings, Forwarding and POP/IMAP, configuration instructions. There you'll find the necessary information.

Kind regards,

Eric
 
  


Reply

Tags
error, gmail, while


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prob. with gmail It's that time of day. Gmail aims to help you in many ways..." frenchn00b General 1 04-10-2009 05:27 PM
SUSE Open 10.3. Gmail. PITA. (If you don't have Gmail, you will not understand) Lola Kews Suse/Novell 6 03-19-2008 08:43 AM
LXer: Import mail into Gmail with the Gmail Loader LXer Syndicated Linux News 0 03-19-2007 07:01 AM
gkrellm gmail check strange error kalebris Linux - Software 0 11-29-2005 10:44 AM
Sylpheed Gmail error korbind Linux - Software 4 04-04-2005 08:14 PM


All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration