Mautic version: v4.4.3
Mysql version: v8.0.34
Php: v7.4.3
Server specs: 20cores 126gb ram
I am using mautic v 4.4.3 from a very long time and it is working fine except for the last few weeks its very slow in sending emails. I have a huge contacts list (approx 2million plus). When i send email to contacts i use:
mautic:broadcasts:send --limit 1000
it was working fine but from the last few weeks when i start this process it work fine for some time lets say 20 to 40 mins and started giving below error:
[2025-08-05 07:45:55] mautic.ERROR: [MAIL ERROR] Connection to tcp://email.server.com:587 Timed Out Log data: >> MAIL FROM:
<marketing+bounce_6891b695e7b6e733602700@example.com
> >> RCPT TO:
<some-email@gmail.com
> >> DATA !! Connection to tcp://email.server.com:587 Timed Out (code: 0) (send); ``some-email@gmail.com`` {“exception”:“[object] (Swift_TransportException(code: 0): Connection to tcp://email.server.com:587 Timed Out\nLog data:\n>> MAIL FROM:
<marketing+bounce_6891b695e7b6e733602700@example.com
>\r\n\n>> RCPT TO:
<some-email@gmail.com
>\r\n\n>> DATA\r\n\n!! Connection to tcp://email.server.com:587 Timed Out (code: 0) at /var/www/html/example.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/LoggerPlugin.php:124, Swift_IoException(code: 0): Connection to tcp://email.server.com:587 Timed Out at /var/www/html/example.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:166)”} {“hostname”:“example”,“pid”:randomid}
And at the same time if i try sending test email from UI (or even used swaks cli client) it works fine. I did tried changing –limit 1000 to 500 just to check if email server is having issues but results are same.
I am using custom smtp Haraka server for emails.
At the time of issue i have checked resources of my email server and mautic server both are fine.
Tried updating php from 7.3 to 8.0 as well but same results.
Any help here would be appreciated.
Thanks in advance.