Page 1 of 1

SMTP Relay Stopped

Posted: Fri Jun 06, 2008 6:28 am
by Oscar
Hi

I'm using Scalix 11.3.0 with Fedora Core 7.
When restart the Scalix, the SMTP Relay service doesn't start (appears as Stopped). And need start smtpd manually

Code: Select all

omon smtpd

How view the logs of the SMTP Relay to take more information?

SMTP Relay Stopped

Posted: Tue Jun 10, 2008 5:55 am
by Shubhangi
Check fatal log for the error
/var/opt/scalix/??/s/logs/fatal

Posted: Tue Jun 10, 2008 6:43 am
by Oscar
Thanks Shubhangi.
I view the log and when I restart scalix, the service SMTP Relay don' start. I need restart the service:

Code: Select all

root@scalix:~# omoff -d0 smtpd && omon smtpd


In the log of /var/opt/scalix/sx/s/logs/fatal show:



Code: Select all

        SERIOUS ERROR           Administration(Scalix Admin C) Tue Jun 10 13:29:33 2008
        [OM 10270] Process about to terminate due to error.
        Signal (Segmentation Violation) trapped by process 24091
        Procedure trace follows:
          -> dr_ACIModContextFlags
          <- dr_ACIModContextFlags
          <- ul_getBySXUID
          <- sis_create
          -> sis_create
          -> ul_getBySXUID
          <- ul_getBySXUID
          <- sis_create
          -> sis_connect
          <- sis_connect
          -> sis_reflist
          -> sis_disconnect
          <- sis_disconnect
          <- sis_reflist
          -> sis_free
          -> sis_free
        Pid of logging process: 24091

        SERIOUS ERROR           Administration(Scalix Admin C) Tue Jun 10 13:29:33 2008
        [OM 10272] BACKTRACE:
        /opt/scalix/lib/libom_er.so(er_add_backtrace+0xb3)[0xb7ed2b03]
        /opt/scalix/lib/libom_er.so[0xb7ed2df3]
        /opt/scalix/lib/libom_er.so(er_DumpProcAndExit+0x1f)[0xb7ed2f7f]
        [0xb7f3c420]
        /lib/i686/nosegneg/libc.so.6[0x48024428]
        /lib/i686/nosegneg/libc.so.6[0x480243d3]
        /lib/i686/nosegneg/libc.so.6[0x480243d3]
        /lib/i686/nosegneg/libc.so.6[0x480243d3]
        /lib/i686/nosegneg/libc.so.6[0x480243b8]
        /lib/i686/nosegneg/libc.so.6[0x480243b8]
        /lib/i686/nosegneg/libc.so.6[0x480243b8]
        /lib/i686/nosegneg/libc.so.6[0x480243d3]
        /lib/i686/nosegneg/libc.so.6[0x480243b8]
        /lib/i686/nosegneg/libc.so.6[0x480243b8]
        /lib/i686/nosegneg/libc.so.6[0x480243d3]
        /lib/i686/nosegneg/libc.so.6[0x480243b8]
        /lib/i686/nosegneg/libc.so.6[0x480243d3]
        /lib/i686/nosegneg/libc.so.6[0x480243d3]
        /lib/i686/nosegneg/libc.so.6(qsort+0x92)[0x480245b2]
        /opt/scalix/bin/sxmkindex[0x804958c]
        /opt/scalix/bin/sxmkindex[0x804a261]
        /opt/scalix/bin/sxmkindex[0x804a306]
        /opt/scalix/bin/sxmkindex[0x804aa7b]
        /lib/i686/nosegneg/libc.so.6(__libc_start_main+0xe0)[0x4800ef70]
        Pid of logging process: 24091



What is the problem ?

Posted: Tue Jun 10, 2008 10:45 am
by schmoe90
Check that it's configured to start:
# omsetsvc -r smtpd
...
Required state - Enabled
...

Posted: Tue Jun 10, 2008 11:04 am
by Oscar
The service is enabled to "Required state"

Code: Select all

root@scalix:~# omsetsvc -r smtpd | grep "Required state"
Required state                          - Enabled


I solved the problem temporally add in the script of start scalix what start the SMTP Relay, but is a solution very dirty.

Code: Select all

root@scalix:~# vi /etc/init.d/scalix
       ....
       action "Starting Scalix services ($OMCURRENT):" omrc --quiet $SCALIX_OMRC_ARGS
                fi
            done
            touch /var/lock/subsys/scalix
        fi
        sleep 4 && /opt/scalix/bin/omon smtp   <---------- dirty line
        ;;

     stop)
        sourceConfig
        ....

Posted: Tue Jun 10, 2008 2:00 pm
by schmoe90
At the end of the day, omrc is just a script, so you could always shut down Scalix:
# omshut

then start it manually:
# sh -x omrc

and see if there are any errors reported.

Posted: Wed Jun 11, 2008 12:30 am
by Shubhangi
SMTP Relay can't operate properly if it can't listen on port 25.
Make sure that sendmail is running on 25 port of "localhost" (127.0.0.1) and not listening on the external interface.
Check it using below command
lsof -i:25