Problem connection to mail server

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

psi29a
Posts: 12
Joined: Mon Nov 29, 2004 4:52 pm
Location: Fredericksburg, VA
Contact:

Problem connection to mail server

Postby psi29a » Wed Dec 15, 2004 10:42 am

I've been butting my head against scalix for over a week and I'm officially stuck. I want to thank the people who have asked questions before me, and I hope this helps Scalix the company flesh out the install documentation.

I can currently log into sac, create groups and users. I can hit the webmail login page, but when I try to login to a user account... I get a nice little javascript popup message with the following. "Problem connection to mail server" This also happens when i try to goto the Fules Wizard (rw) as well.

Code: Select all

cat scalix-swa_log.2004-12-15.txt
2004-12-15 12:12:09 StandardContext[/webmail]ip: 63.170.112.227; username: dennisw; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:CLIENT.ProblemConnectingToImap</faultcode><faultstring>Problem connection to mail server</faultstring><detail><e:ProblemConnectingToImap xmlns:e="http://scalix.com/errors"><message>Problem connection to mail server</message><debug>user: dennisw
request method(s): login
XML:
&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;&lt;SOAP-ENV:Header&gt;&lt;credentials xmlns="http://scalix.com/schemas/gofish" SOAP-ENV:mustUnderstand="1"&gt;&lt;username&gt;dennisw&lt;/username&gt;&lt;emailDomain&gt;groupware1&lt;/emailDomain&gt;&lt;fugu&gt;Ox61627c7964752e2a222a34252626242322253206&lt;/fugu&gt;&lt;ts&gt;0&lt;/ts&gt;&lt;/credentials&gt;&lt;/SOAP-ENV:Header&gt;&lt;SOAP-ENV:Body&gt;&lt;m:login xmlns:m="http://scalix.com/methods"/&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;</debug></e:ProblemConnectingToImap></detail></SOAP-ENV:Fault>


All the Scalix processes are running, and a look at netstate gives me the following:

Code: Select all

groupware1:/var/log/tomcat/base # netstat -ln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:5729            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:631             0.0.0.0:*               LISTEN
tcp        0      0 63.170.112.83:25        0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:8005          :::*                    LISTEN
tcp        0      0 :::8009                 :::*                    LISTEN
tcp        0      0 :::80                   :::*                    LISTEN
tcp        0      0 :::8080                 :::*                    LISTEN
tcp        0      0 :::22                   :::*                    LISTEN
udp        0      0 63.170.112.83:5766      0.0.0.0:*
udp        0      0 127.0.0.1:5766          0.0.0.0:*
udp        0      0 0.0.0.0:111             0.0.0.0:*
udp        0      0 0.0.0.0:631             0.0.0.0:*
udp        0      0 0.0.0.0:5757            0.0.0.0:*
udp        0      0 :::3450                 :::*


If anyone can spot waldo, please hit me up with a clue. Thanks much -- Bret

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

Postby ScalixSupport » Wed Dec 15, 2004 11:24 am

SWA uses IMAP at the backend. The IMAP server needs to connect to the Scalix mailbox via the Scalix UAL (User Access Layer) using the address returned by the name "localhost".

Check that /etc/hosts does not have a line similar to the following:

Code: Select all

127.0.0.1 hostname localhost localhost.localdomain

This should be changed to be:

Code: Select all

127.0.0.1 localhost localhost.localdomain
xx.xx.xx.xx hostname


Also, check that you have:

Code: Select all

scalixual       5729/tcp        #Scalix UAL port.


in /etc/services

Check to see if you can log into IMAP via telnet:

telnet hostname 143
a1 login "User Name" "password"
a2 logout

The other place to look is /etc/opt/scalix/webmail/partner.xml to see if the correct IMAP and SMTP hosts have been configured. Did you use the configurator ?

Cheers

Dave,

psi29a
Posts: 12
Joined: Mon Nov 29, 2004 4:52 pm
Location: Fredericksburg, VA
Contact:

Postby psi29a » Wed Dec 15, 2004 12:10 pm

Code: Select all

groupware1:~ # telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK Scalix IMAP server 9.1.0.81 ready on groupware1.xxx.xxx
a1 login "xxx" "xxx"
* BYE Scalix IMAP Server not available
a1 NO LOGIN failure, service unavailable
Connection closed by foreign host.


The IMAP Server is not available... I assumed this from the javascript error message, but it still doesn't help the fact that the service is running, is it a IMAP back end-issue? I've already check with an invalid username/login, which gives me a different error so I'm thinking that I can rule out authentication issues.

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

Postby ScalixSupport » Wed Dec 15, 2004 12:14 pm

Can you post the contents of /var/opt/scalix/fatal ?

This error is usually indicative of a missing /etc/services entry.

Cheers

Dave.

psi29a
Posts: 12
Joined: Mon Nov 29, 2004 4:52 pm
Location: Fredericksburg, VA
Contact:

Postby psi29a » Wed Dec 15, 2004 12:14 pm

Darn the lack of edit post button... I also wanted to add that yes, everything you have mentioned has checked out. FQDN in hosts is set, and in services, I have OpenMail UAL set for tcp/udp port 5729.

Code: Select all

groupware1:~ # cat /etc/services | grep 5729
openmail        5729/tcp   # Openmail User Agent Layer
openmail        5729/udp   # Openmail User Agent Layer


with this:

Code: Select all

groupware1:~ # cat /etc/hosts
127.0.0.1       localhost
::1             localhost ipv6-localhost ipv6-loopback
xxx.xxx.xxx.xxx   groupware1.xxx.xxx groupware1

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

Postby ScalixSupport » Wed Dec 15, 2004 12:16 pm

What you didn't mention is that you were upgrading from OpenMail.

The /etc/services lines needs to be changed from openmail to scalixual.

Cheers

Dave.

psi29a
Posts: 12
Joined: Mon Nov 29, 2004 4:52 pm
Location: Fredericksburg, VA
Contact:

Postby psi29a » Wed Dec 15, 2004 12:18 pm

Code: Select all

groupware1:/var/opt/scalix/logs # cat fatal |more

ERROR                          Remote Client (U/I Access    ) 12.15.04 10:11:29
[OM.SMEM 130] Could not get access to the shared memory daemon main segment.
File Name: /var/opt/scalix/sys/config
Pid of logging process: 4140
Current errno value: 13

... repeats ...


Permission issue?

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

Postby ScalixSupport » Wed Dec 15, 2004 12:20 pm

What would help me is if you could explain how you have installed this server. Scalix does not support any upgrade from OpenMail or Samsung Contact to Scalix.

Cheers

Dave.

psi29a
Posts: 12
Joined: Mon Nov 29, 2004 4:52 pm
Location: Fredericksburg, VA
Contact:

Postby psi29a » Wed Dec 15, 2004 12:46 pm

Sure:

Fresh install on a SuSE 9 machine. The /etc/services w/ the openmail entry was default, I've since updated to scalixual.

Same errors.

In fatal i get this:

Code: Select all

ERROR                          Remote Client (U/I Access    ) 12.15.04 14:43:19
[SYS 13]
File Name: /var/opt/scalix/sys/config
Pid of logging process: 4163
Current errno value: 13


ERROR                          Remote Client (U/I Access    ) 12.15.04 14:43:19
[OM.SMEM 130] Could not get access to the shared memory daemon main segment.
File Name: /var/opt/scalix/sys/config
Pid of logging process: 4163
Current errno value: 13


I was thinking earlier that it was Rules Wizard related, as in I need to setup access for clients... but I can't even get to Rules Wizard as well.

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

Postby ScalixSupport » Wed Dec 15, 2004 12:57 pm

This isn't rules related.

This looks like the install failed at some point.

Did you install straight from RPMs or did you use the wizard for the install ?

Cheers

Dave.

psi29a
Posts: 12
Joined: Mon Nov 29, 2004 4:52 pm
Location: Fredericksburg, VA
Contact:

Postby psi29a » Wed Dec 15, 2004 1:07 pm

I did the X install, and later installed the rest of the rpm (swa, sac) files. Used -configurator --install --swa then --sac.

I had trouble with SAC earlier on, i couldn't create users or groups untill a post recommended running it as root. I personally find this distasteful, but it was the only way for me to create users at this point. I would like to get more information on linux user/group policies for scalix as whole, there are so many moving parts (services).

This has been frustrating, but I'm determined to get at least one user to login via webmail. (We are just testing at this point.)

Also: note, we are not upgrading from OpenMail or anythig of the sort, it just a fresh install on and new SuSE install.

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

Postby ScalixSupport » Wed Dec 15, 2004 1:23 pm

It appears that the /etc/services which is shipped with SuSE comes straight from IANA which includes the HP-registered port numbers (5729)

If this is a permissions problem, /var/opt/scalix/sys/config should have the following permissions:

Code: Select all

-rw-rw----  1 scalix scalix 104448 Dec 13 13:37 /var/opt/scalix/sys/config


You need to run the command:

omcheck -s > /tmp/scalix-permissions.sh

This will check for known files to determine if their permissions are correct. It dumps out a script that you can run to change the permissions on the incorrect files.

Cheers

Dave

psi29a
Posts: 12
Joined: Mon Nov 29, 2004 4:52 pm
Location: Fredericksburg, VA
Contact:

Postby psi29a » Wed Dec 15, 2004 1:52 pm

looks like we are moving somewhere, after checking permissions on /var/opt/scalix/sys/config to be -rw-rw---- I also ran omcheck -s output as a shell script to fix permission issues. There were a few. Now, I've hit another roadblock.

I can't create users or groups anymore in SAC, and the webclient error message I recieve is like the following:

Code: Select all

for some reason, I can not create user directory /tmp/groupware1.xxx.xxx/dennisw


so.. i create the user directory, and I can now login... great news! I haven't tested beyond this yet, as I need to head out for lunch.

notes: I can no longer create users/groups in sac, and i have to manually create the directories in /tmp/groupware1.xxx.xxx/ to allow for login.

I appreciate all your time and effort on this, thanks very much -- Bret

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

Postby ScalixSupport » Wed Dec 15, 2004 2:01 pm

The /tmp directory needs to have the following permissions

Code: Select all

drwxrwxrwt  18 root root 8192 Dec 15 17:51 /tmp



Can you post any errors from $TOMCAT_HOME/logs/caa.log for when you have problems adding users through SAC ?

Cheers

Dave

psi29a
Posts: 12
Joined: Mon Nov 29, 2004 4:52 pm
Location: Fredericksburg, VA
Contact:

Postby psi29a » Wed Dec 15, 2004 3:40 pm

/tmp looks good...

Code: Select all

drwxrwxrwt   39 root root   1848 Dec 15 17:30 tmp


as for SAC:

Code: Select all

2004-12-15 17:41:10,003 DEBUG [LocalServiceHandler.service:83] Local server configured, calling RES command 'omshowrt' locally
2004-12-15 17:41:10,669 DEBUG [RESXMLHelperUtils.dumpDocument:206] ---> RES XML Document (RES response) <-----
2004-12-15 17:41:10,671 DEBUG [RESXMLHelperUtils.dumpDocument:217] <?xml version="1.0" encoding="UTF-8"?>
<ResResponse>
   <Command name="omshowrt">
      <Status>FAILED:1</Status>
      <Output>
         <Line value="omshowrt : [OM 8020] Invoker is not superuser or an Scalix administrator"/>
         <Line value=""/>
      </Output>
   </Command>
</ResResponse>

2004-12-15 17:41:10,691 DEBUG [SAAJServlet.doPost:130] ************ Request End Success ***************
2004-12-15 17:41:29,503 DEBUG [RESMonitor.run:64] There are no remote servers and 1 local server registered
2004-12-15 17:41:29,504 DEBUG [RESMonitor.run:84] Skipping local server groupware1.aba2net.com
groupware1:/usr/share/tomcat/logs #


yet more permission issues... superuser would have been root, when i set the tomcat to be uid 0, it worked, but now it is uid101 without root access (which is a good thing), but tomcat isn't able to initiate scalix binaries. Is there a proper solution for this?


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 1 guest