#1 (permalink)  
Old 02-15-2006, 08:14 AM
Registered User
 
Join Date: May 2004
Location: UK
Posts: 25
snet
Exim keeps failing?

Hello,

On one of my cPanel servers exim keeps failing. I keep on getting the following emails about one every 50 minutes:

exim failed @ Wed Feb 15 14:03:35 2006. A restart was attempted automagicly.

How can I find out what is causing exim to fail and how can I fix this?


Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-15-2006, 10:30 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
You need to look in the exim log files. The exim_mainlog contains all the transaction details. Normally, the exim_paniclog will have a filtered list of major events. Also, if you have something like PRM installed, make sure it isn't that killing it off.
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2006, 06:54 AM
Registered User
 
Join Date: May 2004
Location: UK
Posts: 25
snet
Hello Chirpy,

I have looked in both exim_mainlog and exim_paniclog but there is so much stuff in them that it is hard to find anything. What sort of stuff should I be looking for in these files?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-17-2006, 03:27 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
Your exim_paniclog should be almost empty since only the most serious errors go into it. You're simply going to have to match up the time of the restart of exim less ~0-10 minutes and look through errors. As I also mentioned, you should check if you have any processing killing apps installed too.
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-17-2006, 04:17 AM
Registered User
 
Join Date: May 2004
Location: UK
Posts: 25
snet
I am not running anything like PRM on this server. Exim has just failed again and I looked at the exim_mainlog file and around the time it failed there is a bunch of lines like the following:

Quote:
2006-02-17 09:55:57 SMTP connection from (mx.p*t*o*e*m*r*u*.ru) [62.*3*.6.*0] closed after SIGTERM
(Hostname and IP address edited out for privacy)

And then after all of these lines is says:

Quote:
2006-02-17 09:55:58 exim 4.52 daemon started: pid=24767, -q1h, listening for SMTP on port 25 (IPv4)
I guess this bit is when cPanel restarts exim. Before the "SIGTERM" lines there is nothing unordinary, just loads of lines like this:

Quote:
2006-02-17 09:55:56 Connection from [195.**.**.17] refused: too many connections
And a few others that are repeated throughout the log file.

Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-17-2006, 04:23 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
It's probably this:
Quote:
2006-02-17 09:55:56 Connection from [195.**.**.17] refused: too many connections
Which looks like someone running a DOS against exim, unless you recognise the IP address. If not, block it in iptables. Do you have any custom ACL's in the exim configuration? If so, make sure that none of them use delay
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-17-2006, 04:29 AM
Registered User
 
Join Date: May 2004
Location: UK
Posts: 25
snet
Quote:
Originally Posted by chirpy
Which looks like someone running a DOS against exim, unless you recognise the IP address. If not, block it in iptables.
I don't recognise the IP addresses, each one is completely random, the same IP address isn't repeated once.


Quote:
Originally Posted by chirpy
Do you have any custom ACL's in the exim configuration? If so, make sure that none of them use delay
I don't think so, I believe exim is running with the stock config at the moment.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-17-2006, 04:32 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
Have you:

1. Made sure any instances of :blackhole: are replace with :fail: in /etc/valiases/*

2. Installed a dictionary attack ACL:
http://www.configserver.com/free/eximdeny.html

That will usually free up a lot of such connections.

Ultimately, if you genuinly have a very busy email server (it would have to be very busy) you could increase the smtp connections available, but what you're seeing is usually indicative of mis-use of the SMTP server in some manner.
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-18-2006, 04:47 AM
Registered User
 
Join Date: May 2004
Location: UK
Posts: 25
snet
Hi Chirpy,

Thanks for your help so far. I have done these 2 things, following the instructions exactly, and exim still fails every 40-50 minutes. Is there anything else I can do to fix this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 03-23-2006, 02:03 PM
Registered User
 
Join Date: May 2003
Posts: 599
goodmove is on a distinguished road
Quote:
Originally Posted by chirpy

Ultimately, if you genuinly have a very busy email server (it would have to be very busy) you could increase the smtp connections available, but what you're seeing is usually indicative of mis-use of the SMTP server in some manner.
How do you increase the number of SMTP connections available??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 03-24-2006, 10:28 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
The default is 100, you can up that by setting the following in the first textbox of the exim configuration editor:

smtp_accept_max = 150
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:48 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc