Page 1 of 1
max connections per second?
Posted: Thu May 25, 2006 11:06 am
by boehme
Hi,
Is there a connections per second setting for smtpd?
I'm trying to send emails with a script and it chokes after about 8/9 emails unless I put a sleep command in between them.
Thanks!
Posted: Fri May 26, 2006 10:41 pm
by ScalixSupport
There isn't a connection throttle as such but there is a limit to the number of active connections that the SMTP Relay can handle at once. This is about 96 connections by default but can be configured higher if necessary. However, if the script is failing after 8/9 messages, I'm not sure that this limit is being reached.
When you say the script chokes, what do you see ?
Cheers
Dave
Posted: Tue Jun 06, 2006 12:11 am
by boehme
With the server log turned on I see that the script has opened a connection and supplied a recipient, but the server has not acknolowedged with a '250 Ok' .
So the script just sits there waiting. Other mail can still be sent when this happens.
I have upped the number of connections but that had no impact.
SMTP version: 10.0.1.3
Thanks!
Posted: Tue Jun 06, 2006 12:16 am
by ScalixSupport
This is indicative of a slow DNS response. Sendmail is being used in the background to check whether the domain of the sender is resolvable and the recipient exists. If you have your domain name in /etc/mail/local-host-names, you would get an error returned for a non-existent user. If you have multiple nameservers defined in /etc/resolv.conf, check each one to see if there is a delay getting an answer.
Cheers
Dave