Page 1 of 1

SMTP Relay Pr errors all the time.

Posted: Fri Sep 26, 2008 10:54 am
by m15t1k0
Hello all,

I have several weeks with this problem and its driving me nuts.
At random time of the day SMTP fails to start sendmail process, and no one can send emails until do the following steps:

-service sendmail stop
-omoff -d 0 smtpd
-omon smtpd
-service sendmail start

This process restores normality to the server, but I cannot estimate when it will happen again or why it happens... This repeats average 8 times a day, random! The only way to detect it right now is when someone tries to send an email through Thundermail, which gives the user a popup windows with a message saying that "Failed start sendmail process".

Looking at ~scalix/logs/fatal we have a lot of this:

Code: Select all

ERROR                   SMTP Relay    (SMTPD Relay Pr) Fri Sep 26 10:33:56 2008
[OM.DMON 2161] Failed to connect to remote SMTP service.
Error: 'Connection refused'
Pid of logging process: 6817


ERROR                   SMTP Relay    (SMTPD Relay Pr) Fri Sep 26 10:33:56 2008
[OM 0]
Pid of logging process: 6817


ERROR                   SMTP Relay    (SMTPD Relay Pr) Fri Sep 26 10:34:23 2008
[OM.DMON 2161] Failed to connect to remote SMTP service.
Error: 'Connection refused'
Pid of logging process: 6885


ERROR                   SMTP Relay    (SMTPD Relay Pr) Fri Sep 26 10:34:23 2008
[OM 0]
Pid of logging process: 6885


ERROR                   SMTP Relay    (SMTPD Relay Pr) Fri Sep 26 10:43:16 2008
[OM.DMON 2161] Failed to connect to remote SMTP service.
Error: 'Connection refused'
Pid of logging process: 6885


ERROR                   SMTP Relay    (SMTPD Relay Pr) Fri Sep 26 10:43:16 2008
[OM 0]
Pid of logging process: 6885


ERROR                   SMTP Relay    (SMTPD Relay Pr) Fri Sep 26 10:43:17 2008
[OM.DMON 2161] Failed to connect to remote SMTP service.
Error: 'Connection refused'
Pid of logging process: 6885


ERROR                   SMTP Relay    (SMTPD Relay Pr) Fri Sep 26 10:43:17 2008
[OM 0]
Pid of logging process: 6885


I appreciate any help. Thanks in advance.

Posted: Fri Sep 26, 2008 11:01 am
by schmoe90
Set up smtpd debugging, and you can see what it's doing when it stalls.

Posted: Fri Sep 26, 2008 12:00 pm
by m15t1k0
schmoe90 wrote:Set up smtpd debugging, and you can see what it's doing when it stalls.


How... please xplain... :)

Posted: Fri Sep 26, 2008 3:56 pm
by schmoe90
Put:

Code: Select all

DEBUG_LOG=TRUE


in the /var/opt/scalix/<xx>/s/sys/smtpd.cfg file and restart the SMTP relay:

Code: Select all

# omoff -d 0 -w smtpd; omon -a smtpd