Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to send an email to any email address using Windows XP telnet. I opened the command prompt and typed telnet after enabling telnet. It successfully connects me to the SMTP servers of Gmail, Yahoo and Live. But whenever i start giving commands for sending email, it gives me some errors.
1 - After writing telnet on command prompt, the command prompt shows this..
Welcome to Microsoft Telnet Client
Escape Character is 'CTRL+]'
Microsoft Telnet>
2 - Then i type open smtp.gmail.com 587
Welcome to Microsoft Telnet Client
Escape Character is 'CTRL+]'
Microsoft Telnet> smtp.gmail.com 587
3 - Pressing enter shows me this message..
220 mx.google.com ESMTP e6sm9347529wiz.1
4 - Then i type HELO and it replies this message...
220 mx.google.com ESMTP e6sm9347529wiz.1
HELO
250 mx.google.com at your service
5 - When i type, MAIL FROM: myname#gmail.com, it gives error message.
220 mx.google.com ESMTP e6sm9347529wiz.1
HELO
250 mx.google.com at your service
MAIL FROM: myname#gmail.com
502 5.5.1 Unrecognized command. e6sm9347529wiz.1
6 - When i give it my email address instead of above address, it gives this error message
220 mx.google.com ESMTP e6sm9347529wiz.1
HELO
250 mx.google.com at your service
MAIL FROM: myname#gmail.com
502 5.5.1 Unrecognized command. e6sm9347529wiz.1
MAIL FROM: shy.girl96#yahoo.com
530 5.7.0 Must issue a STARTTLS command first. e6sm9347529wiz.1
7 - Typing StartSTL Port 587, it gives this message
555 5.5.2 Syntax error. e6sm9347529wiz.1
I am stucked here. Please help.
You can't. The protocol required to send mail over GMail's port 587 (SUBMISSION) requires SSL negotiation, which is impossible to do by hand.
Related
I have a small texting service that is not blacklisted by cloudmark barracuda nor 100+ other respected anti-spam entities yet after roughly 1000 deliveries to vzwpix.com domain possible grey list happening? Also have exim.pl and exim.conf randomize 3 IP's for outgoing delivery only. SPF and DKIM correct through all IPs for reputation status. I searched for 2 weeks little to find last resort contact cloudfilter aka cloudmark. Thanx for your inputs not a huge deal at the moment.
PS: IP Reputation status clear since May 17'
Connecting to smtpin01-mms.vzw.a.cloudfilter.net [52.205.80.105]:25 from my.mailserver.ip.address ... connected
SMTP<< 220 vzw-ibgw-5003a.stratus.cloudmark.com cmsmtp ESMTP server ready
SMTP>> EHLO mail.mydomain.com
SMTP<< 250-vzw-ibgw-5003a.stratus.cloudmark.com hello [my.mailserver.ip.address], pleased to meet you
250-HELP
250-SIZE 30000000
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-STARTTLS
250 OK
SMTP>> STARTTLS
SMTP<< 220 2.0.0 Ready to start TLS
SMTP>> EHLO mail.mydomain.com
SMTP<< 250-vzw-ibgw-5003a.stratus.cloudmark.com hello [my.mailserver.ip.address], pleased to meet you
250-HELP
250-SIZE 30000000
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 OK
SMTP>> MAIL FROM:<customer#mydomain.com> SIZE=1946
SMTP<< 452 4.1.0 <customer#mydomain.com> requested action aborted: try again later
LOG: MAIN
SMTP error from remote mail server after MAIL FROM:<customer#mydomain.com> SIZE=1946: 452 4.1.0 <customer#mydomain.com> requested action aborted: try again later
SMTP>> QUIT
SMTP(close)>>
I'm trying to send an email via SMTP using telnet. I have to authenticate (I'm interested now in AUTH LOGIN method). Here is output:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost ESMTP service ready
ehlo localhost
250-localhost
250-STARTTLS
250-AUTH PLAIN LOGIN
250-PIPELINING
250 8BITMIME
auth login
334 VXNlcm5hbWU6
bXl1c2VybmFtZQ
334 UGFzc3dvcmQ6
bXlwYXNzd29yZA
535 invalid authentication
With example above all is fine - server understands my login and passwords (there are wrong but it's not important right now). Here is another example:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost ESMTP service ready
ehlo localhost
250-localhost
250-STARTTLS
250-AUTH PLAIN LOGIN
250-PIPELINING
250 8BITMIME
auth login bXl1c2VybmFtZQ
334 UGFzc3dvcmQ6
bXlwYXNzd29yZA
500 Unrecognized command
My question is - am I able to send AUTH LOGIN user_name command and then password? Or should I always send just AUTH LOGIN and then separately user name and separately password?
I am designing a website on aliyun.com. This website includes a function to send emails with PHPMailer. It perfectly works on my laptop (a Mac Book Air running XAMPP) but not on the live server (a fresh CentOS 6) with exactly the same php files (SMTP host, password, ...). Here is below the log I got from PHPMailer in verbose mode:
2015-04-08 02:59:42 Connection: opening to smtp.mywebsite.com:587, t=300, opt=array (
)
2015-04-08 02:59:42 Connection: opened
2015-04-08 02:59:42 SERVER -> CLIENT: 220 smtp.aliyun-inc.com MX AliMail Server(10.194.100.112)
2015-04-08 02:59:42 CLIENT -> SERVER: EHLO mywebsite.com
2015-04-08 02:59:42 SERVER -> CLIENT: 250-smtp.aliyun-inc.com
250-8BITMIME
250-AUTH=PLAIN LOGIN XALIOAUTH
250-AUTH PLAIN LOGIN XALIOAUTH
250-PIPELINING
250 DSN
2015-04-08 02:59:42 CLIENT -> SERVER: STARTTLS
2015-04-08 02:59:42 SERVER -> CLIENT: 220 Ready to start TLS
2015-04-08 02:59:42 CLIENT -> SERVER: QUIT
2015-04-08 02:59:44 SERVER -> CLIENT: ��:%4P���pGC#mLa+�%YF�l �0���I
2015-04-08 02:59:44 SMTP ERROR: QUIT command failed: ��:%4P���pGC#mLa+�%YF�l �0���I
2015-04-08 02:59:44 Connection: closed
2015-04-08 02:59:44 SMTP connect() failed.
Although I spent many hours on internet looking for a solution, I cannot figure out where the problem comes from... I am using the latest release of PHPMailer and the function mail in command lines works well (I mean I receive them), so where the problem could from?
Thanks a lot in advance!
Alplob
Perhaps, the openssl PHP extension is not installed on the Centos server. You should make sure the openssl extension is installed. To check the installed extensions, try the following command on Centos:
php -i
and look for openssl in the resulting text.
I am trying to set up my university smtp server with wanderlust/emacs, and on getting a repeated error decided to have a look via telnet.
the only trouble is, knowing next to nothing about smtp, I can't understand the output:
telnet pod51016.outlook.com 587
Trying 157.56.253.22...
Connected to pod51031.outlook.com.
Escape character is '^]'.
220 DBXPR06CA012.outlook.office365.com Microsoft ESMTP MAIL Service ready at Tue, 30 Sep 2014 16:44:11 +0000
ehlo test
250-DBXPR06CA012.outlook.office365.com Hello [129.234.0.21]
250-SIZE 78643200
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250 CHUNKING
I had expected to see an auth line as 250-AUTH LOGIN PLAIN --- II am just missing something? How do I see what authentication the server supports?
Alternatively, I have it working with thunderbird, so if anyone knows how to extract it from prefs.js that would do.
many thanks, and apologies for the lack of specificity in the question,
John
The server requires you to use establish a secure connection: Use STARTTLS, and the auth methods will appear.
You can test this with openssl:
openssl s_client -starttls smtp -connect server:587
i've set up Exim4 on my Ubuntu machine.
I've started learning CodeIgniter and when sending an e-mail through there email library i get the following if I ask for the debug status. Looks OK i suppose, but i never receive e-mail on jandante#telenet.be. Also doesn't work for jandante.meulemeester#gmail.com, anyone has an idea?
220 Concept-IT ESMTP Sendmail 8.14.3/8.14.3/Debian-9.1ubuntu1; Fri, 3 Sep 2010 18:15:59 +0200; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
hello: 250-Concept-IT Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
from: 250 2.1.0 ... Sender ok
to: 250 2.1.5 ... Recipient ok
data: 354 Enter mail, end with "." on a line by itself
250 2.0.0 o83GFx3a021848 Message accepted for delivery
quit: 221 2.0.0 Concept-IT closing connection
Your message has been successfully sent using the following protocol: smtp
User-Agent: CodeIgniter
Date: Fri, 3 Sep 2010 18:15:59 +0200
From: "Concept-IT"
Return-Path:
To: jandante#telenet.be
Subject: =?utf-8?Q?Uw_nieuw_wachtwoord_voor_Concept-IT_CRM?=
Reply-To: "info#concept-it.be"
X-Sender: info#concept-it.be
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <4c811f3f98626#concept-it.be>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Uw gebruikersnaam is: liesbeth en uw wachtwoord is: 6ZiKJxD.
As you can read in my comments my problem comes from my ISP. Which doesn't allow me to send mail from my server.
I've followed the following tutorial to make Exim4 send mail through Google Mail: http://www.manu-j.com/blog/wordpress-exim4-ubuntu-gmail-smtp/.
Works like a charm.