-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Expected response code "354" but got code "250", with message "250 2.1.5 Ok" #54169
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
Comments
I have the same problem |
We also get these; we run a single messenger process that uses a redis stream. Every few hours or so, we get this error (using google workspaces smtp server). I cannot figure out how to debug why this is happening though. Relevant stacktrace:
|
@alcohol try set your config smtp config ping_threshold=9 https://symfony.com/doc/current/mailer.html#other-options smtp://USERNAME:PASSWORD@default?ping_threshold=9 |
Can you elaborate why? |
I am experiencing the same problem, although my setup differs slightly as my worker is frequently restarted. For instance:
Typically, this happens approximately every 1000 messages, though occasionally it works for up to 10,000 messages. Note that I send between 4 and 10 messages per process. |
Nice catch @HexDestroyer , it happens after timeouts for us too: In our setup, we run two parallel processes with supervisor with the following params:
The problem is that the message handler will run further (and exit normally due to other consumer settings), but it probably should just fail out after the timeout error, because it currently loses the correct state in the SMTP protocol. |
Now that you mention it, I too am seeing that these response code failures are coinciding with timeout failures. |
Looks like adding |
This issue is still actual :/ |
Yeah.. it still occurs occasionally for us even with |
Hey, thanks for your report! |
Definitely still an issue I think. Using |
Yes, definitively still an issue. |
I can also confirm we are still encountering this issue. Our setup is quite the same a process is sending mails from the work queu,e and from time to time this happens. |
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected
6.0.19
Description
Sending Emails within the same process shortly after each other to the same recipient address randomly produces this error:
Expected response code "354" but got code "250", with message "250 2.1.5 Ok"
Resending the email later produces no error any more.
The operator of the SMTP Server says: "It has to do with pipelining. Your SMTP client is probably mashing up messages from SMTP server with different emails being sent."
Is there any chance that he is right?
How to reproduce
The event is random, approximatively once every 1000 emails - I have not found a possibility to intentionally reproduce it.
Possible Solution
No response
Additional Context
A worker process (continuously running) looks for emails to be sent. Each email is sent serial, synchroneous.
The text was updated successfully, but these errors were encountered: