Exim restarting 2 or 3 times per hour

hilario

Well-Known Member
Jan 5, 2008
50
0
56
Sao Paulo, Brazil
My Exim is continually failing and restarting 2 or 3 times per hour.

The mail report states:
Service Check Method: [socket connect]
Reason: TCP Transaction Log: << 554 <alfa.soliton.com.br> Service denied, closing transmission channel
exim: ** [554 <alfa.soliton.com.br> Service denied, closing transmission channel != 220 ]
: Died at /usr/local/cpanel/Cpanel/TailWatch/ChkServd.pm line 894, <$socket_scc> line 1.

1) Is there any command to reproduce the very same test that cPanel is executing to check exim status?
2) What should I check to fix this issue?

Thanks in advance for any help provided
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
I will suggest you check your exim status through command line when you get this alert.

[CODEE]server exim status [/CODE]

Have you installed any Antispam plugin on your server with the exim ?
 

hilario

Well-Known Member
Jan 5, 2008
50
0
56
Sao Paulo, Brazil
I have Configserver Mailscanner (running for 7 years) and also ASSP Anti Spam SMTP Proxy (running for 5 years)

At this moment I do not believe that the problem is with either of the antispam applications as both are doing their job and none is failing at all. The only symptom I have is that exim fails (or at leat cPanel thinks it failed), is restarted and continues to work for another half an hour.

I am not sure that exim really failed. It is possible that cPanel check failed. Thus I need to learn how cPanel checks it so I can manually test and track the problem origin
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello :)

You can review /var/log/chkservd.log to get a better idea of when Exim is detected as down. Also, check /var/log/exim_mainlog and /var/log/exim_paniclog for any particular failure entries. Note that it's likely a good idea to temporarily disable MailScanner and ASSP just to rule them out as the cause of the problem.

Thank you.
 

hilario

Well-Known Member
Jan 5, 2008
50
0
56
Sao Paulo, Brazil
Yes, I intend to check both ASSP and Mailscanner, but I do not want them to be down for too much time because my server blocks many thousands of spams per day, and it takes too much time for exim to fail (and between failures it is working anyway, so if there is any problem, it is probably an interference of the cpanel script with the antispam system).

If I can manually run the same script that cPanel uses to check exim, I can easily test with each of the antispam systems disabled in just a couple of minutes while I check the origin of the problem (as opposed to many hours exposed to spam).

Are you able to tell me how I run the cpanel script that checks exim?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
The service checks are handled by Chkservd automatically every eight minutes. This is logged to:

Code:
/var/log/chkservd.log
You can see what's used for Exim in this file:

Code:
/usr/local/cpanel/src/chkservd/chkserv.d/exim
Thank you.