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
EHLO/HELO sent regardless of server's ready state #517
Comments
Hi, Just so you know, I see this happening with Exim4 on Debian wheezy exim --version
the full error message in the log is:
|
This is handled by the The SMTP timeouts are set to the RFC2821 recommendation of 5 minutes. Is your server taking longer than that? I don't see how it's getting past those things - could you try tracing what's happening in your case to see how it's saying that the connection is successful when it isn't? |
Hi Synchro, Thank you for your reply. That line you showed, seems to evaluate if it is a resource, and it is. However you send the ehlo/helo before the server greets. In this case the server takes about a second to greet,
I supose one must read the greeting line before sending the helo. I believe this is the problem, but did not debug it |
The code does wait - after connecting successfully, it then waits for input from the server. What do you see if you set |
Did you solve this? |
Bump @cusco On 18 November 2015 08:49:40 CET, Marcus Bointon notifications@github.com wrote:
|
Hi. Sorry. Did not solve it. I went somewhere in the class and added a sleep of 2 seconds and it sends email now.. I could tell you I would look all that up later and even test it, but my time is limited right now.. So if there is no one else with this issue, you could perhaps close it. I can always re open at a later time if needed Thank you for your attention Sent from my iPhone
|
The code definitely waits for input, with a long timeout. Given that it still breaks, it suggests that the server may be sending a blank line or something before it sends its greeting. I'll close this for now. |
Hi,
We use PHPMailer to transport our emails to external SMTPd's.
Some SMTPds dont answer in time, so the
get_lines()
call afterconnect()
returns empty. However PHPMailer sends hisEHLO/HELO
before the SMTPd asks for it resulting in mail rejection by RFC Standards.I.e. Exim4 reports
SMTP protocol synchronization error (input sent without waiting for greeting)
and closes the connection afterwards.We use PHPMailer 5.2.7 but I checked the current upstream code in 5.2.13 and I couldnt find any wait code there either.
Cheers,
f0o
The text was updated successfully, but these errors were encountered: