SMTP Relay stops responding

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

jryden
Posts: 73
Joined: Fri May 26, 2006 8:32 pm
Location: Los Angeles, USA

SMTP Relay stops responding

Postby jryden » Thu Jun 15, 2006 5:55 am

Hey everyone -

we've started seeing the SMTP Relay hanging from time to time. The ommaint cron runs tell us:


--Performing Port Check on localhost:25-----
Error: Timeout on port server.domain.com:25

[snip to last few log entries]

REPORT SMTP Relay (SMTPD Relay Pr) 06.15.06 05:17:12
[OM.DMON 2172] SMTP: Rejected relay attempt from kufcejd@paesi.com at 218.57.63.67 to nobody@fotel.com


REPORT SMTP Relay (SMTPD Relay Pr) 06.15.06 05:17:51
[OM.DMON 2172] SMTP: Rejected mail to nobody@domain.com


REPORT SMTP Relay (SMTPD Relay Pr) 06.15.06 05:17:51
[OM.DMON 2172] SMTP: Rejected relay attempt from tmlqylkmnjg@paesi.com at 218.57.63.67 to nobody@fotel.com

End of output from omshowlog

Attempting to stop the SMTP service with omoff -d0 -s SMTP Relay
-----------------------------------------

Disabling 1 subsystem(s).
-----------------------------------------
Attempting to start the SMTP service with omon -s SMTP Relay

omon : [OM 4828] Cannot start up subsystem SMTP Relay,
a shut down is in progress.

-----------------------------------------

Then I have to go start it up manually with omon smtpd. What can be done to troubleshoot this further?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Jun 15, 2006 10:04 am

You should enable debugging on the SMTP daemon.

Insert

DEBUG_LOG=TRUE

in /var/opt/scalix/sys/smtpd.cfg and restart SMTP using omoff -d0 smtpd followed by omon smtpd. This will create /var/opt/scalix/tmp/smtpd.log and capture the complete SMTP conversation. Additionally, change the timeout parameters in the script so they are higher. This might be just a false alarm. Can you actually connect to port 25 using telnet server 25?

Cheers,

Sascha.

jryden
Posts: 73
Joined: Fri May 26, 2006 8:32 pm
Location: Los Angeles, USA

Postby jryden » Thu Jun 15, 2006 10:34 am

No I wasn't able to connect with telnet when I get the message. I just changed what you suggested, so I guess we play the waiting game for a bit. :-)

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Jun 15, 2006 11:17 am

Hi. This is actually more of a problem with ommaint than with the SMTP Relay. What you should do is:

1) Edit ommaint and search for "alarm 10;" and change that to "alarm 30;"
2) Edit ommaint and search for "omoff -d0" and change all six instances to "omoff -w -d0"
3) Look in ~root for a file called PortCheck.pl and remove it

Now, the next time ommaint runs it will create a new PortCheck.pl file in ~root with a timeout of 30 seconds and if ommaint should require a shutdown of the SMTP Relay, it will wait for it to completely shutdown, before attempting to restart it.

The next version of ommaint will have these fixes in it.

Thanks,
Rachel


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 12 guests

cron