Page 1 of 1

Sendmail can't connect to ldap server...

Posted: Fri Jan 05, 2007 12:31 am
by rsal
Hi All,

I've just recently started using Scalix 11, so be gentle ;) A user was using SWA caused an error which locked up his account, he was no longer able to login to SWA. Whatever he did caused Scalix to run out of control and shutting it down wouldn't stop all the scalix services. Some of them like ldap needed their process killed. Other users were still able to use SWA or IMAP at this time.

I fixed the user's mail account by running the omscan command and he was once again able to log into this account and everything looked ok. I also ran omcheck which fixed some imap cache files owned by the wrong user. All this happened later in the work day.

Next morning I noticed that no new mail was coming in, even mail send from the command line via the sendmail command to a local user. After a restart of sendmail, I found the following error in /var/log/maillog:

Code: Select all

sendmail[30003]: l053mcrM028941: SYSERR(root): ldap_init/lda                                                                             p_bind failed to localhost in map ldapsx: Unknown error 325


and I found this in omshowlog:

Code: Select all

WARNING                        IMAP Server Da(IMAP Server Pr) 01.03.07 14:25:53
[OM 3419] A container cannot be closed until all its children have been closed.
User Name: Jane Doe / gs2/CN=Jane Doe
Current errno value: 1
  Last Folder: Junk E-mail
        -> GetBBPath
        -> GetBBPath
        <- /build/scalix-MAIN/src/lib/ct/ct_bbchlg.c:200[100,23953]
        <- GetBBPath
        <- GetBBPath
        <- ct_GetBBPath2
        <- bb_RecordChangeWithRouteTrace
        -> bb_FlushChangeBuffer
        <- bb_FlushChangeBuffer
        -> ual_AdjustListCount
        <- ual_AdjustListCount
        <- ual_MoveItem
        -> ct_CloseCtner 3003
        <- /build/scalix-MAIN/src/lib/ct/ct_inclose.c:240[3,3419]
        <- /build/scalix-MAIN/src/lib/ct/ct_inclose.c:492[3,3419]
        <- /build/scalix-MAIN/src/lib/ual/ual_cpyitm.c:2036[3,3419]


ERROR                          Administration(Scalix Admin C) 01.03.07 14:28:16
[SYS 2] No such file or directory
Current errno value: 2
        <- /build/scalix-MAIN/src/lib/ombase/os/os_stat.c:58[1,2]


I haven't been able to find this error via the search. Where do I go next? The system is still usable, but no mail goes out or comes in. I see Sendmail receiving mail and spamassassin scanning it, but that's were it stops. The omslapd service is running. Should I back up the user mail stores and then reinstall?

Thanks in advance for any help!

Posted: Fri Jan 05, 2007 5:00 am
by ScalixSupport
Hi!

If you feel your users have important mails in their mailboxes, go ahead and keep a
backup. Make sure you follow the right steps so that you do not end up having trouble
while restore.

In the mean time, can you send us the result of the commands:
omstat -a
omstat -s

Do you remember what error caused the users account to lock up?

Please determine the user's (Jane Doe) system login id, with:

omshowu -n "user name"

In the output you will see something like:

System Login : 60540

Issue:

ps -ef |grep 60540

If any processes are returned please kill those processes and try again.

Thanks,
Subir

Posted: Fri Jan 05, 2007 9:33 am
by rsal
Thanks for the reply Subir! To answer your questions:

omstat -a:

Code: Select all

# omstat -a
PC Monitor                    Started        NON-STOP       0
Directory Relay Server        Started        01.04.07
Notification Server           Started        01.04.07       0
Shared memory daemon          Started        NON-STOP
Notification Monitor          Started        NON-STOP
Session Monitor               Started        NON-STOP
Indexer                       Started        NON-STOP
Stats Daemon                  Started        NON-STOP
Container Access Monitor      Started        NON-STOP
Item Structure Server         Stopped
Database Monitor              Started        01.04.07
Licence Monitor Daemon        Started        NON-STOP
LDAP Daemon                   Started        01.04.07
Queue Manager                 Started        NON-STOP
Item Delete Daemon            Started        NON-STOP
IMAP Server Daemon            Started        01.04.07
SMTP Relay                    Started        01.04.07
Mime Browser Controller       Started        01.04.07
Event Server                  Started        01.04.07


omstat -s:

Code: Select all

Service Router                Started        01.04.07       0
Local Delivery                Started        01.04.07       0
Internet Mail Gateway         Started        01.04.07       0
Local Client Interface        Enabled        01.04.07       0
Remote Client Interface       Enabled        01.04.07       2
Test Server                   Started        01.04.07       0
Request Server                Started        01.04.07       0
Print Server                  Started        01.04.07       0
Bulletin Board Server         Started        01.04.07       0
Background Search Service     Started        01.04.07       0
CDA Server                    Started        01.04.07       0
POP3 interface                Started        01.04.07       0
Omscan Server                 Started        01.04.07       0
Archiver                      Started        01.04.07       0


Are sxmboxexp/sxmboximp the right commands in v11 to backup and restore? I'd run sxmboxexp first, reinstall, then configure the users, then sxmboximp?

I did find what the what user did. We have a Junk E-mail folder where anything tagged with [SPAM] in the subject line goes. The user was viewing their junk email folder and tried to delete an email but instead deleted the folder. When he tried to move it back, this must have happened:

Code: Select all

Jan 3, 2007 10:25:54 PM org.apache.catalina.core.ApplicationContext log
INFO: ip: xxx.xxx.xxx.xxx; username: jane.doe; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:SERVER.SoapFault</faultcode><faultstring>Error renaming folder [I
NBOX/Junk E-mail] to [Junk E-mail]
</faultstring><detail><e:SoapFault xmlns:e="http://scalix.com/errors"><message>Error renaming folder [INBOX/Junk E-mail] to [Junk E-mail]</message>
<debug>com.oddpost.soap.SoapFault: faultCode: SOAP-ENV:SERVER.Rename; faultString: Error renaming folder [INBOX/Junk E-mail] to [Junk E-mail]; deta
ilName: Rename; detailMessage: Error renaming folder [INBOX/Junk E-mail] to [Junk E-mail]; detailDebugInfo: ; isHeaderFault: false; faultActor: null
        at com.oddpost.server.module.SoapMail.rename(SoapMail.java:385)
        at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.oddpost.soap.SoapModule.invokeMethod(SoapModule.java:238)
        at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:139)
        at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:224)
        at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:49)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:174)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        ... skipping the last 14 lines as irrelevant...
</debug></e:SoapFault></detail></SOAP-ENV:Fault>


and then the bad username errors started happening:

Code: Select all

Jan 3, 2007 10:26:12 PM org.apache.catalina.core.ApplicationContext log
INFO: ip: xxx.xxx.xxx.xxx; username: jane.doe; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:CLIENT.BadUserName</faultcode><faultstring>The username or passwo
rd is incorrect. Note that passwords are case sensitive. Try again.</faultstring><detail><e:BadUserName xmlns:e="http://scalix.com/errors"><message>The usern
ame or password is incorrect. Note that passwords are case sensitive. Try again.</message><debug>user: jane.doe
request method(s): login
XML:




Thanks again! The product is great. I'm loving it and so are the users.

going to reinstall

Posted: Fri Jan 05, 2007 1:11 pm
by rsal
I think I need to the ldap portion and have a few questions I'm hoping someone can answer:

1. Do I need to reinstall the Management Services only to fix ldap?
2. I ran sxmboxexp and noticed that the calendar folder is included, does this mean calendar appointments are saved as well and can be restored?

Everything else is working fine, so I'm hoping I don't have to do a whole reinstall but just reconfiguring a component will fix my issue.

Thanks!

Posted: Mon Jan 08, 2007 9:18 am
by ScalixSupport
Hi!

1. Do I need to reinstall the Management Services only to fix ldap?

Can you check if "ldapmapper" process is running on your Scalix Server.

2. I ran sxmboxexp and noticed that the calendar folder is included, does this mean calendar appointments are saved as well and can be restored?

Yes, the calender appointments would also be saved and would be restored. I tried for my test users and it works.

Warm Regards,
Subir

Posted: Fri Jan 12, 2007 2:49 pm
by kanderson

Posted: Fri Jan 12, 2007 3:24 pm
by dkelly
Please take a look at the FAQs that I posted earlier this week. The link is in the announcement at the top of each forum.

Cheers

Dave