Welcome Guest, Not a member yet? Register   Sign In
Intermittent Email Send Failure
#1

I have a strange one where sending emails fails intermittently.
The application uses CI4 email class connecting via SMTP (SSL on 465). I have written a mail queuing system that gets executed every 5 min (via cron job) to send the emails in the que. If successful the entry is deleted from the que else the retry counter gets incremented and the email stays in the que.
The problem is that a number of emails are processed and sent and then the next number of emails fails to send. Then when the cron is triggered again the emails that failed are sent and the cycle continues.  The latest batch 6 emails were sent and 8 failed, 5 minutes later 4 were sent and 4 failed and then 5min later the last 4 in the batch were sent.
When the emails fail the server responds with "Failed to send AUTH LOGIN command. Error: 221 server1.abatrans-rsahub.co.za closing connection". When I examined the Exim log, it shows that the connection was opened, waits for about 5 seconds and then close the connection.
I have had a ding-dong with the hosting provider but they blame the app.
If anybody have any ideas please help.
To give an idea of how frustrating this is, last week the client set a notice to some of their client, 762 emails were qued, it took 19000 attempts to send the all the email.
Environment Server:
Centos 7 using Exim 4.95 SMTP mail server.
Application:
CodeIgniter 4.1.9
PHP 7.4
Dirk B.
Abatrans Software
No SEO spam - see forum guidelines
Reply


Messages In This Thread
Intermittent Email Send Failure - by abatrans - 04-25-2022, 06:03 AM
RE: Intermittent Email Send Failure - by InsiteFX - 04-26-2022, 12:12 AM
RE: Intermittent Email Send Failure - by abatrans - 04-26-2022, 02:06 AM
RE: Intermittent Email Send Failure - by InsiteFX - 04-27-2022, 12:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB