View Full Version : erro too many smtp processes
billmoore
03-17-2004, 10:01 AM
seems when ever I or my users try to send, we get the error that the server cannot send the email due to too many smtp processes running concurently.
is there a way to increase the max number of processes it can do ? or how can I fix this.
Bill
DirectAdmin Support
03-17-2004, 12:17 PM
Hello,
You should be able to add something like:
smtp_accept_max = 10000
to the top section of the /etc/exim.conf
John
billmoore
03-17-2004, 02:15 PM
I did that, server locked up repeatedly. took line out and now it will not allow email clients to log in to recieve email.
it is saying connection refused
Now what ?
Bill
billmoore
03-17-2004, 03:11 PM
got it working, then set smtp_accept_max = 300 and it works fine now.
thanks for the assist
billmoore
03-17-2004, 03:53 PM
is this max connections per second ? per hour ? any idea. I have it set to 600 and it still gets the error.
DirectAdmin Support
03-18-2004, 12:46 AM
Simultaneous:
http://www.exim.org/exim-html-4.20/doc/html/spec_13.html#SECT13.16
You could also set it to 0 if you don't want a limit. The default is 20 if it's not set.
John
billmoore
03-18-2004, 08:15 AM
I set the max_smtp_accept to 80 and the server continued to use all free memory and load the machine well over 250%
So as a test I used my firewall and blocked port 25. and then rebooted.
the cpu useage went to about 5% instead of the 260% it was running.
I then went in and set the default for the catchall accounts on the email servers to ignore if a user does not exist and then reenabled the port 25.
cpu is working at about 6% - 9% and all is going well. I think it was responding to the catchalls and resending like crazy, interesting now, free memory is now 870 meg instead of 3.5 meg
so exim was causing the problem.. but not like I would have expected. is there any way to set the default when a domain is created for the catchall to be set to drop unless otherwise set by the end user ?
Thanks for all the help.
Bill
DirectAdmin Support
03-18-2004, 12:16 PM
Yes, you could create:
/usr/local/directadmin/scripts/cusom/domain_create_post.sh
#!/bin/sh
perl -pi -e "s/\*: :fail:/\*: :blackhole:/" /etc/virtual/${domain}/aliases
John
billmoore
03-18-2004, 12:33 PM
Thanks, I will try it.
Bill
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.