Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double ehlo appears to be preventing Mailsend.exe from working #152

Open
MatthewALHardy opened this issue Oct 11, 2019 · 0 comments
Open

Comments

@MatthewALHardy
Copy link

Hi,

I have a client using Office 365 hosted exchange. When testing manually from putty I note that each time I connect, the first time I issue either a helo or ehlo command. I received "500 5.3.3 Unrecognized command '????'" but then if I issue exactly the same command again I receive the expected response. I believe that this is an anti spam measure.
When I test from mailsend1.20b.exe the command fails.
Does anyone know if it's possible to tell mailsend to retry the ehlo command if it fails the first time?

Command and response as below

mailsend1.20b.exe -to me@mydomain.com -from sender@clientdomain.com -domain clientdomain.com -smtp clientdomain-com.mail.protection.outlook.com -sub "Subject LIne" +cc +bc -v < d:\path\file.LOG
Connecting to clientdomain-com.mail.protection.outlook.com:25
Will detect IPv4 or IPv6 automatically

libmsock: using getaddrinfo
AF_INET IPv4
IP address: xx.xx.xx.xx:xx
EINPROGRESS=10036,EWOULDBLOCK=10035
connect(): socket=332,rc=-1, errno=10035
Try socket 332
Setting read timeout to: 5 seconds
Windows Setting read timeout to: 5 seconds
[S] 220 CY1NAM02FT061.mail.protection.outlook.com Microsoft ESMTP MAIL Service r
eady at Fri, 11 Oct 2019 16:40:13 +0000
[C] EHLO clientdomain.com
Setting read timeout to: 5 seconds
Windows Setting read timeout to: 5 seconds
Winsock error[10060]: A connection attempt failed because the connected party di
d not properly respond after a period of time, or established connection failed
because connected host has failed to respond.

Error: Connection is closed unexpectedly
Error: EHLO failed
[C] MAIL FROM: sender@clientdomain.com

Setting read timeout to: 5 seconds
Windows Setting read timeout to: 5 seconds
Winsock error[10060]: A connection attempt failed because the connected party di
d not properly respond after a period of time, or established connection failed
because connected host has failed to respond.

Error: Connection is closed unexpectedly
Error: MAIL FROM failed: '-1 '
Could not send mail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant