nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

ERROR while communicating with gmail.com

This is a discussion on ERROR while communicating with gmail.com within the Mail Servers forums, part of the Mastering Servers category; $./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 ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Mastering Servers > Mail Servers

Linux answers from nixCraft.


Mail Servers Discussion on Postfix/Sendmail Mail servers and related program such as IMAP/POP3, Anti-Spam technologies.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-03-2009, 03:46 PM
Junior Member
User
 
Join Date: Oct 2009
OS: Fedira
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
darshan is on a distinguished road
Default ERROR while communicating with gmail.com

$./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-----
d4f65cac7d180d5b17d3f6334cf60bcaee84cea782dc39be68 e9224d06ec9b86
-----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?
Reply With Quote
  #2 (permalink)  
Old 11-03-2009, 11:03 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Posts: 2,450
Thanks: 11
Thanked 189 Times in 139 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
MAIL FROM:<root@stripe>
Most mail server needs fully qualified domain name and email id to send and receive an email. Another thing,is most server will reject email coming from dsl/adsl/cable/modem IPs as those are often used by spammers.

To solve your problem use full email id such as you@example.com
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 11-04-2009, 10:22 AM
Junior Member
User
 
Join Date: Oct 2009
OS: Fedira
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
darshan is on a distinguished road
Default

Code:
 
# ./a.out smtp.gmail.com 25
220 mx.google.com ESMTP 22sm280809ywh.30
250 mx.google.com at your service
220 2.0.0 Ready to start TLS
Please enter the message: after client new
after handshake
Common Name:   smtp.gmail.com
after get cert dn
-----BEGIN SSL SESSION PARAMETERS-----
b2691f97b70da87c7a7ad63c9add3179267fbbb771bcb3d7447c8b0e7db7f2b8
-----END SSL SESSION PARAMETERS-----
CIPHER is RC4-MD5
in for loop
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:<miibm2000@yahoo.co.in>
502 5.5.1 Unrecognized command. 22sm280809ywh.30
Reply With Quote
Reply

Tags
error while communicating with gmail.com


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Hotmail/gmail login problem - Squid Transparent Proxy Cyborg_sa CentOS / RHEL / Fedora 4 04-03-2009 02:26 AM
Problem blocking file ext downloads from Gmail in squid Roshu Networking, Firewalls and Security 1 08-25-2007 12:21 AM
Invalid ICMP type 3 code 3 error to a broadcast -samba error raj Linux software 0 07-09-2006 05:38 AM


All times are GMT +5.5. The time now is 02:57 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38