Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: SchulzStefan on May 24, 2011, 02:49:40 PM

Title: e-mail problem SME 7.5.1. - Zarafa 6.40.5-24860
Post by: SchulzStefan on May 24, 2011, 02:49:40 PM
Hello all,

following the contrib I installed zarafa. To open attachments in zarafa-mail, I also installed php5-cgi 5.2 with SUSE 10.2 mapi. To keep a copy of all emails, I also tried to install the smeserver-mailsorting and the dungog-email contrib. Those two contribs I was not able to install means, I couldn't access the webpanels. Therefore I removed (yum remove) both of them.

I renamed /home/e-smith/files/users/XXX the files .mailfilter and .procmailrc. Did a signal-event post upgrade and a signal-event reboot. The files have not been created again.

For one user I enabled Zarafa email,

[root@saturn ~]# db accounts show XXX zarafa
XXX=user
    City=D-99999 XXX
    Company=XXX
    Dept=Buero XXX
    EmailForward=local
    FirstName=XXX
    ForwardAddress=
    LastName=XXX
    PasswordSet=yes
    Phone=+49.(0)1234.5678
    Shell=/usr/bin/rssh
    Street=XXX
    Uid=5002
    VPNClientAccess=yes
    zarafa=enabled

I didn't enable global forward.

[root@saturn ~]# config show zarafa-server GlobalForward
zarafa-server=service
    DbPassword=XXX
    GlobalForward=disabled
    Plugin=db
    TCPPort=236
    access=public
    status=enabled

For the zarafa-enabled user, zarafa is working fine - so far no problems at all. Even z-push is working perfect with my Nokia E7-00. User receive and can send emails.

Now to the problem:

Since the installation no user can connect with an email-client to the *INBOX* of the mailserver. Webmail works except for the user maillog, who does not receive anymore copies of all incoming/outgoing emails. Users are able to send email with their email clients.

Checking all logs brings up

delivery 28: success: Access_denied_or_Connection_failed,_using_socket:_'file:///var/run/zarafa',_error_code:_0x80040111/Current_uid:101_username:XXX/did_0+0+2/

The mentioned file zarafa has 0666 rights.

The Zarafa-Forum says a various things to this error - but in the end I'm afraid, that I may break down my server. And as far as I can see they usually think, that all users should use the zarafa-installation which in this case is not wanted.

Any help would be great. Thank's in advance.
stefan
Title: Re: e-mail problem SME 7.5.1. - Zarafa 6.40.5-24860
Post by: SchulzStefan on May 25, 2011, 01:25:30 AM
Trying a re-install:

- yum remove smeserver-zarafa libvmime libical zarafa zarafa-webaccess.
- db configuration setprop mysqld InnoDB disabled.
- expand-template /etc/my.cnf
- signal-event post-upgrade; signal-event reboot

Server is up again. Still get the socket error of the email-clients. Socket error 10061.

Tried with different clients from local network. POP and IMAP. IMAP worked. Checked the email-settings in the server-manager. POP for local network was disabled. Enabled POP for local network. What should I say - it works again! I have absolutely no idea, what could have caused the change of this setting??

Will now re-install zarafa.

Enabled for one user zarafa-mail:

- db accounts setprop $USERNAME zarafa enabled

Seems to work right now. For the user maillog (keep a copy of all incoming/outgoing emails) there's still the error:

delivery 28: success: Access_denied_or_Connection_failed,_using_socket:_'file:///var/run/zarafa',_error_code:_0x80040111/Current_uid:101_username:maillog/did_0+0+2/

I would still like to know, what this is about...

stefan
Title: Re: e-mail problem SME 7.5.1. - Zarafa 6.40.5-24860
Post by: SchulzStefan on May 26, 2011, 11:07:38 AM
delivery 28: success: Access_denied_or_Connection_failed,_using_socket:_'file:///var/run/zarafa',_error_code:_0x80040111/Current_uid:101_username:maillog/did_0+0+2/

It seems that this error disappears, when *every* (yes, also admin and maillog) user is created as a zarafa-user. To create the users I used the zarafa-panel in the server-manager. Non-zarafa-users (admin and maillog) have to be deleted afterwards. They will receive their email without any error as before installing zarafa. I don't know why but for the moment I can live with that.

Maybe it helps someone.

stefan
Title: Re: e-mail problem SME 7.5.1. - Zarafa 6.40.5-24860
Post by: paulsnz on July 09, 2011, 12:04:29 AM
As far as I can work out the community Zarafa REHL 4 has flaws after release 6.40.3  (ie email attachments can't be downloaded (needs rewrite of php4 script to handle etc)  . :sad:
Title: Re: e-mail problem SME 7.5.1. - Zarafa 6.40.5-24860
Post by: jester on July 10, 2011, 03:10:49 PM
As far as I can work out the community Zarafa REHL 4 has flaws after release 6.40.3  (ie email attachments can't be downloaded (needs rewrite of php4 script to handle etc)  . :sad:
That is why Stephan installed php5-cgi.

I'm not familiar with the smeserver-mailsorting and the dungog-email contribs, but i've got the feeling that the combination of those two with Zarafa is the cause of the trouble... although i must say i've always used the global forward... it would be worth testing on a clean system.
Title: Re: e-mail problem SME 7.5.1. - Zarafa 6.40.5-24860
Post by: paulsnz on July 10, 2011, 09:48:27 PM
Yes I have seen that, BUT I don't understand how to use it Duh, My Bad. :???:
Title: Re: e-mail problem SME 7.5.1. - Zarafa 6.40.5-24860
Post by: jester on July 11, 2011, 12:29:28 AM
Yes I have seen that, BUT I don't understand how to use it Duh, My Bad. :???:

I've not used it either, but i'm guessing something like:
* Installing the php5-cgi contrib
* Create custom template fragment:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/86ZarafaAlias
* Editing /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/86ZarafaAlias
   And adding the folowing lines (taken from PHP5 wiki-page (http://wiki.contribs.org/PHP5)) to the <Directory /usr/share/zarafa-webaccess/> section (and maybe the other two sections as wel):
Code: [Select]
AddHandler php5-cgi .php
Action php5-cgi /php5-cgi/php-cgi
* Expand the template:
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf* Check if we made any errors:
Code: [Select]
httpd -t* If no errors, restart Apache:
Code: [Select]
sv t httpd-e-smith
I've not tested this (you're warned) !!

Edit: added link to wiki page
Title: Re: e-mail problem SME 7.5.1. - Zarafa 6.40.5-24860
Post by: paulsnz on July 11, 2011, 12:45:33 AM
Ok Thanks,  yes I see the ibay and /opt directory usage  But I was hesitant (lacked knowledge) to apply anywhere else cheers  :-? :-)