I have a script using phpmailer that I've modified to use SMTP instead of php mail.
The script uses isSMTP with the $mail->Host = "IP address"
this works fine using any of the 4 IPs. I've tested using a small list.
This morning I got a message from a user stating their schools mailing list failed to send all the emails in the list.
The error is
The emails are sending from my server connecting to my server using the IP and login credentials. Since this particular list contains 2183 emails and 1183 failed so 1000 emails sent and I see this in my logs.
I use SMTPKeepAlive=true; then SmtpClose after the emails are sent.
I cannot find anything useful to show a limit for the number of messages in this connection. I see smtp_accept_max =100 in the exim.conf but this appears to control the number of smtp connections and not the number of messages.
In this case I am the ISP so I want to allow more messages per connection if possible.
Does anyone know if adding smtp_accept_max_per_connection to the exim.conf will correct this problem and if so, how to make it stick?
Thanks
The script uses isSMTP with the $mail->Host = "IP address"
this works fine using any of the 4 IPs. I've tested using a small list.
This morning I got a message from a user stating their schools mailing list failed to send all the emails in the list.
The error is
Code:
Failed to send to [[email protected][/EMAIL] The following From address failed: [EMAIL='[email protected][/EMAIL] : MAIL FROM command failed,too many messages in this connection ,421,SMTP server error: MAIL FROM command failed Detail: too many messages in this connection SMTP code: 421SMTP server error: MAIL FROM command failed Detail: too many messages in this connection SMTP code: 421
I use SMTPKeepAlive=true; then SmtpClose after the emails are sent.
I cannot find anything useful to show a limit for the number of messages in this connection. I see smtp_accept_max =100 in the exim.conf but this appears to control the number of smtp connections and not the number of messages.
In this case I am the ISP so I want to allow more messages per connection if possible.
Does anyone know if adding smtp_accept_max_per_connection to the exim.conf will correct this problem and if so, how to make it stick?
Thanks
Last edited by a moderator: