Your software
Mautic: 3.2.5, 3.3.1 and 3.3.2
PHP: 7.4
MySQL: 5.7
CentOS: 7.9
cPanel: 94.0.4
PHP-FPM: Activated
Service to send mail through: Other SMTP Server
SMTP encryption type: SSL
Port: 465
SMTP authentication mode: Plain
How should email be handled?: Send inmmediatly
Send test mail: Success!
Your problem
I have been using Mautic for several years now and it always worked fine, however, from version 3.2.5 to 3.3.1 as well as with 3.3.2, it is having problems to send the emails. I have tried all kind of combinations for SMTP or Sendmail and get different kind of errors for each one.
At this case, we are using SMTP without any encryption and the problem is that, when we execute:
sudo -u [USER] /usr/local/bin/ea-php74 /home/[USER]/public_html/bin/console mautic:campaigns:trigger --batch-limit=10 > /home/[USER]/public_html/var/logs/log-campaigns-trigger.log
it continuously shows the following errors
[2021-03-24 19:29:25] mautic.ERROR: [MAIL ERROR] Expected response code 250 but got code "503", with message "503 sender already given " Log data: >> MAIL FROM:<envios+bounce_605b93155bde9556044504@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA << 503 sender already given !! Expected response code 250 but got code "503", with message "503 sender already given " (code: 503) Log data: >> MAIL FROM:<envios+bounce_605b93155bde9556044504@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA << 503 sender already given !! Expected response code 250 but got code "503", with message "503 sender already given " (code: 503) !! Expected response code 250 but got code "503", with message "503 sender already given " Log data: >> MAIL FROM:<envios+bounce_605b93155bde9556044504@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA << 503 sender already given !! Expected response code 250 but got code "503", with message "503 sender already given " (code: 503) (code: 503) (send); [EMAIL] {"exception":"[object] (Swift_TransportException(code: 503): Expected response code 250 but got code \"503\", with message \"503 sender already given\r\n\"\nLog data:\n>> MAIL FROM:<envios+bounce_605b93155bde9556044504@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n<< 503 sender already given\r\n\n!! Expected response code 250 but got code \"503\", with message \"503 sender already given\r\n\" (code: 503)\nLog data:\n>> MAIL FROM:<envios+bounce_605b93155bde9556044504@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n<< 503 sender already given\r\n\n!! Expected response code 250 but got code \"503\", with message \"503 sender already given\r\n\" (code: 503)\n!! Expected response code 250 but got code \"503\", with message \"503 sender already given\r\n\"\nLog data:\n>> MAIL FROM:<envios+bounce_605b93155bde9556044504@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n<< 503 sender already given\r\n\n!! Expected response code 250 but got code \"503\", with message \"503 sender already given\r\n\" (code: 503) (code: 503) at /home/[USER]/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/LoggerPlugin.php:124)"} []
[2021-03-24 19:29:25] mautic.ERROR: [MAIL ERROR] Expected response code 354 but got code "503", with message "503 Valid RCPT command must precede DATA " Log data: >> MAIL FROM:<envios+bounce_605b93156dc3b324085023@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA << 451 Temporary local problem - please try later !! Expected response code 250/251/252 but got code "451", with message "451 Temporary local problem - please try later " (code: 451) << 503 Valid RCPT command must precede DATA !! Expected response code 354 but got code "503", with message "503 Valid RCPT command must precede DATA " (code: 503) Log data: >> MAIL FROM:<envios+bounce_605b93156dc3b324085023@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA << 451 Temporary local problem - please try later !! Expected response code 250/251/252 but got code "451", with message "451 Temporary local problem - please try later " (code: 451) << 503 Valid RCPT command must precede DATA !! Expected response code 354 but got code "503", with message "503 Valid RCPT command must precede DATA " (code: 503) !! Expected response code 354 but got code "503", with message "503 Valid RCPT command must precede DATA " Log data: >> MAIL FROM:<envios+bounce_605b93156dc3b324085023@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA << 451 Temporary local problem - please try later !! Expected response code 250/251/252 but got code "451", with message "451 Temporary local problem - please try later " (code: 451) << 503 Valid RCPT command must precede DATA !! Expected response code 354 but got code "503", with message "503 Valid RCPT command must precede DATA " (code: 503) (code: 503) (send); [EMAIL] {"exception":"[object] (Swift_TransportException(code: 503): Expected response code 354 but got code \"503\", with message \"503 Valid RCPT command must precede DATA\r\n\"\nLog data:\n>> MAIL FROM:<envios+bounce_605b93156dc3b324085023@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n<< 451 Temporary local problem - please try later\r\n\n!! Expected response code 250/251/252 but got code \"451\", with message \"451 Temporary local problem - please try later\r\n\" (code: 451)\n<< 503 Valid RCPT command must precede DATA\r\n\n!! Expected response code 354 but got code \"503\", with message \"503 Valid RCPT command must precede DATA\r\n\" (code: 503)\nLog data:\n>> MAIL FROM:<envios+bounce_605b93156dc3b324085023@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n<< 451 Temporary local problem - please try later\r\n\n!! Expected response code 250/251/252 but got code \"451\", with message \"451 Temporary local problem - please try later\r\n\" (code: 451)\n<< 503 Valid RCPT command must precede DATA\r\n\n!! Expected response code 354 but got code \"503\", with message \"503 Valid RCPT command must precede DATA\r\n\" (code: 503)\n!! Expected response code 354 but got code \"503\", with message \"503 Valid RCPT command must precede DATA\r\n\"\nLog data:\n>> MAIL FROM:<envios+bounce_605b93156dc3b324085023@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n<< 451 Temporary local problem - please try later\r\n\n!! Expected response code 250/251/252 but got code \"451\", with message \"451 Temporary local problem - please try later\r\n\" (code: 451)\n<< 503 Valid RCPT command must precede DATA\r\n\n!! Expected response code 354 but got code \"503\", with message \"503 Valid RCPT command must precede DATA\r\n\" (code: 503) (code: 503) at /home/[USER]/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/LoggerPlugin.php:124)"} []
[2021-03-24 19:29:25] mautic.ERROR: [MAIL ERROR] Expected response code 250 but got an empty response Log data: >> MAIL FROM:<envios+bounce_605b93157a23f915615138@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA !! Expected response code 250 but got an empty response (code: 0) Log data: >> MAIL FROM:<envios+bounce_605b93157a23f915615138@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA !! Expected response code 250 but got an empty response (code: 0) !! Expected response code 250 but got an empty response Log data: >> MAIL FROM:<envios+bounce_605b93157a23f915615138@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA !! Expected response code 250 but got an empty response (code: 0) (code: 0) (send); [EMAIL] {"exception":"[object] (Swift_TransportException(code: 0): Expected response code 250 but got an empty response\nLog data:\n>> MAIL FROM:<envios+bounce_605b93157a23f915615138@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n!! Expected response code 250 but got an empty response (code: 0)\nLog data:\n>> MAIL FROM:<envios+bounce_605b93157a23f915615138@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n!! Expected response code 250 but got an empty response (code: 0)\n!! Expected response code 250 but got an empty response\nLog data:\n>> MAIL FROM:<envios+bounce_605b93157a23f915615138@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n!! Expected response code 250 but got an empty response (code: 0) (code: 0) at /home/[USER]/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/LoggerPlugin.php:124)"} []
[2021-03-24 19:29:25] mautic.ERROR: [MAIL ERROR] Expected response code 354 but got an empty response Log data: >> MAIL FROM:<envios+bounce_605b93158e99b686487358@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA !! Expected response code 250/251/252 but got an empty response (code: 0) !! Expected response code 354 but got an empty response (code: 0) Log data: >> MAIL FROM:<envios+bounce_605b93158e99b686487358@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA !! Expected response code 250/251/252 but got an empty response (code: 0) !! Expected response code 354 but got an empty response (code: 0) !! Expected response code 354 but got an empty response Log data: >> MAIL FROM:<envios+bounce_605b93158e99b686487358@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA !! Expected response code 250/251/252 but got an empty response (code: 0) !! Expected response code 354 but got an empty response (code: 0) (code: 0) (send); [EMAIL] {"exception":"[object] (Swift_TransportException(code: 0): Expected response code 354 but got an empty response\nLog data:\n>> MAIL FROM:<envios+bounce_605b93158e99b686487358@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n!! Expected response code 250/251/252 but got an empty response (code: 0)\n!! Expected response code 354 but got an empty response (code: 0)\nLog data:\n>> MAIL FROM:<envios+bounce_605b93158e99b686487358@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n!! Expected response code 250/251/252 but got an empty response (code: 0)\n!! Expected response code 354 but got an empty response (code: 0)\n!! Expected response code 354 but got an empty response\nLog data:\n>> MAIL FROM:<envios+bounce_605b93158e99b686487358@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n!! Expected response code 250/251/252 but got an empty response (code: 0)\n!! Expected response code 354 but got an empty response (code: 0) (code: 0) at /home/[USER]/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/LoggerPlugin.php:124)"} []
[2021-03-24 19:29:25] mautic.ERROR: [MAIL ERROR] Expected response code 250 but got an empty response Log data: >> MAIL FROM:<envios+bounce_605b9315a0e79650159816@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA !! Expected response code 250 but got an empty response (code: 0) Log data: >> MAIL FROM:<envios+bounce_605b9315a0e79650159816@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA !! Expected response code 250 but got an empty response (code: 0) !! Expected response code 250 but got an empty response Log data: >> MAIL FROM:<envios+bounce_605b9315a0e79650159816@[DOMAIN]> >> RCPT TO:<[EMAIL]> >> DATA !! Expected response code 250 but got an empty response (code: 0) (code: 0) (send); [EMAIL] {"exception":"[object] (Swift_TransportException(code: 0): Expected response code 250 but got an empty response\nLog data:\n>> MAIL FROM:<envios+bounce_605b9315a0e79650159816@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n!! Expected response code 250 but got an empty response (code: 0)\nLog data:\n>> MAIL FROM:<envios+bounce_605b9315a0e79650159816@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n!! Expected response code 250 but got an empty response (code: 0)\n!! Expected response code 250 but got an empty response\nLog data:\n>> MAIL FROM:<envios+bounce_605b9315a0e79650159816@[DOMAIN]>\r\n\n>> RCPT TO:<[EMAIL]>\r\n\n>> DATA\r\n\n!! Expected response code 250 but got an empty response (code: 0) (code: 0) at /home/[USER]/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/LoggerPlugin.php:124)"} []
Besides, it shows the following php warnings:
PHP Warning: fwrite(): SSL operation failed with code 1. OpenSSL Error messages:
error:1409E10F:SSL routines:ssl3_write_bytes:bad length in /home/tmatic/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 231
Steps I have tried to fix the problem:
I have changed to SMTP multiple configurations, tried several values for --bath-limit, aumeted the php allow memory upto 1.5GB (1024MB normally), etc.