Koozali.org: home of the SME Server

SOGo Mail every minute ?

Offline fpausp

  • *
  • 728
  • +0/-0
SOGo Mail every minute ?
« on: November 29, 2014, 10:18:11 PM »
Every minute I get this:

Code: [Select]
Hi. This is the qmail-send program at mydomain.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<sogo@sme9.mydomain.com>:
Unable to chdir to maildir. (#4.2.1)
I'm not going to try again; this message has been in the queue too long.

--- Below this line is a copy of the message.

Return-Path: <root@mydomain.com>
Received: (qmail 9436 invoked by alias); 22 Nov 2014 17:37:01 -0000
Delivered-To: alias-localdelivery-sogo@mydomain.com
Received: (qmail 9418 invoked by uid 395); 22 Nov 2014 17:37:01 -0000
Date: 22 Nov 2014 17:37:01 -0000
Message-ID: <20141122173701.9417.qmail@mydomain.com>
From: root@mydomain.com (Cron Daemon)
To: sogo@mydomain.com
Subject: Cron <sogo@sme9>    /usr/sbin/sogo-ealarms-notify
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <LANG=de_DE.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/lib/sogo>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=sogo>
X-Cron-Env: <USER=sogo>

/usr/sbin/sogo-ealarms-notify: error while loading shared libraries: libSOGo.so.2: cannot open shared object file: No such file or directory


How can I stop this ?

Viribus unitis

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SOGo Mail every minute ?
« Reply #1 on: November 30, 2014, 10:44:13 AM »
please report
# config show sogod
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline fpausp

  • *
  • 728
  • +0/-0
Re: SOGo Mail every minute ?
« Reply #2 on: November 30, 2014, 11:01:15 AM »
Code: [Select]
sogod=service
    ACLsSendEMailNotifications=no
    ActiveSync=disabled
    AdminUsers=admin
    DbPassword=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    DraftsFolder=Drafts
    EnableEMailAlarms=no
    LdapTCPPort=389
    MailAuxiliaryUserAccountsEnabled=no
    PublicAccess=no
    SentFolder=Sent
    SessionDuration=1440
    TCPPort=20000
    TrashFolder=Trash
    WOWorkersCount=3
    status=enabled
Viribus unitis

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SOGo Mail every minute ?
« Reply #3 on: November 30, 2014, 11:24:42 AM »
The problem seems to come from sogo and not smeserver-sogo
# rpm -qa sogo

which version of sogo you have


what about
# locate libSOGo.so.2

here this is the output
/usr/lib/GNUstep/Frameworks/SOGo.framework/Versions/2/sogo/libSOGo.so.2
/usr/lib/GNUstep/Frameworks/SOGo.framework/Versions/2/sogo/libSOGo.so.2.2.10
/usr/lib/sogo/libSOGo.so.2
/usr/lib/sogo/libSOGo.so.2.2.10

what about permissions

Code: [Select]
# ll {/usr/lib/GNUstep/Frameworks/SOGo.framework/Versions/2/sogo/libSOGo.so.2,/usr/lib/GNUstep/Frameworks/SOGo.framework/Versions/2/sogo/libSOGo.so.2.2.10,/usr/lib/sogo/libSOGo.so.2,/usr/lib/sogo/libSOGo.so.2.2.10}
lrwxrwxrwx 1 root root     17 30 nov.  11:13 /usr/lib/GNUstep/Frameworks/SOGo.framework/Versions/2/sogo/libSOGo.so.2 -> libSOGo.so.2.2.10
-rwxr-xr-x 1 root root 885780 21 nov.  15:45 /usr/lib/GNUstep/Frameworks/SOGo.framework/Versions/2/sogo/libSOGo.so.2.2.10
lrwxrwxrwx 1 root root     71 30 nov.  11:13 /usr/lib/sogo/libSOGo.so.2 -> ../GNUstep/Frameworks/SOGo.framework/Versions/Current/sogo/libSOGo.so.2
lrwxrwxrwx 1 root root     76 30 nov.  11:13 /usr/lib/sogo/libSOGo.so.2.2.10 -> ../GNUstep/Frameworks/SOGo.framework/Versions/Current/sogo/libSOGo.so.2.2.10
« Last Edit: November 30, 2014, 11:35:52 AM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline fpausp

  • *
  • 728
  • +0/-0
Re: SOGo Mail every minute ?
« Reply #4 on: November 30, 2014, 12:00:45 PM »
Code: [Select]
sogo-2.2.10-1.centos6.x86_64


Code: [Select]
/usr/lib64/GNUstep/Frameworks/SOGo.framework/Versions/2/sogo/libSOGo.so.2
/usr/lib64/GNUstep/Frameworks/SOGo.framework/Versions/2/sogo/libSOGo.so.2.2.10
/usr/lib64/sogo/libSOGo.so.2
/usr/lib64/sogo/libSOGo.so.2.2.10



Code: [Select]
ll {/usr/lib64/GNUstep/Frameworks/SOGo.framework/Versions/2/sogo/libSOGo.so.2,/usr/lib64/GNUstep/Frameworks/SOGo.framework/Versions/2/sogo/libSOGo.so.2.2.10,/usr/lib64/sogo/libSOGo.so.2,/usr/lib64/sogo/libSOGo.so.2.2.10}
lrwxrwxrwx 1 root root      17 22. Nov 06:59 /usr/lib64/GNUstep/Frameworks/SOGo.framework/Versions/2/sogo/libSOGo.so.2 -> libSOGo.so.2.2.10
-rwxr-xr-x 1 root root 1262248 21. Nov 15:54 /usr/lib64/GNUstep/Frameworks/SOGo.framework/Versions/2/sogo/libSOGo.so.2.2.10
lrwxrwxrwx 1 root root      71 22. Nov 06:59 /usr/lib64/sogo/libSOGo.so.2 -> ../GNUstep/Frameworks/SOGo.framework/Versions/Current/sogo/libSOGo.so.2
lrwxrwxrwx 1 root root      76 22. Nov 06:59 /usr/lib64/sogo/libSOGo.so.2.2.10 -> ../GNUstep/Frameworks/SOGo.framework/Versions/Current/sogo/libSOGo.so.2.2.10

Viribus unitis

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SOGo Mail every minute ?
« Reply #5 on: November 30, 2014, 05:27:44 PM »
It seems that I see two problems

a) the sogo user doesn't exist

what about

Code: [Select]
[root@sme9 ~]# id sogo
uid=391(sogo) gid=391(sogo) groupes=391(sogo)
[root@sme9 ~]# groups sogo
sogo : sogo
[root@sme9 ~]# cat /etc/group|grep sogo
sogo:x:391:

Here I have no errors message if I drop an email to sogo@mydomain.org

b)/usr/sbin/sogo-ealarms-notify

every minute a cron job run, you can temporarily comment this cron job in /etc/e-smith/templates/etc/cron.d/sogo/10base

what I can see it is that we have not the same size of binary libSOGo.so.2.2.10, I don't know if it is interesting.
« Last Edit: November 30, 2014, 05:29:31 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline fpausp

  • *
  • 728
  • +0/-0
Re: SOGo Mail every minute ?
« Reply #6 on: November 30, 2014, 07:02:22 PM »
Code: [Select]
[root@sme9 ~]# id sogo
uid=395(sogo) gid=395(sogo) Gruppen=395(sogo)

[root@sme9 ~]# groups sogo
sogo : sogo

[root@sme9 ~]# cat /etc/group|grep sogo
sogo:x:395:



Code: [Select]
cat /etc/e-smith/templates/etc/cron.d/sogo/10base
# Sogod cronjobs

# Vacation messages expiration
# Make sure to set authname and authpassword with the credentials of a sieve admin
{
  my $pwd = esmith::util::LdapPassword ();
  $OUT.="0 0 * * *      sogo    /usr/sbin/sogo-tool expire-autoreply sogo:$pwd";
}

# Session cleanup - runs every minute
#   - Ajust the nbMinutes parameter to suit your needs
# Example: Sessions without activity since 60 minutes will be dropped:
#* * * * *      sogo    /usr/sbin/sogo-tool expire-sessions 60

# Email alarms - runs every minutes
* * * * *      sogo    /usr/sbin/sogo-ealarms-notify

# Daily backups
#   - writes to /home/sogo/backups/ by default
#   - will keep 31 days worth of backups by default
#   - runs once a day by default, but can run more frequently
#   - make sure to set the path to sogo-backup.sh correctly
#30 0 * * *     sogo   /usr/share/doc/sogo/sogo-backup.sh



Code: [Select]
/usr/sbin/sogo-ealarms-notify
/usr/sbin/sogo-ealarms-notify: error while loading shared libraries: libSOGo.so.2: cannot open shared object file: No such file or directory
Viribus unitis

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SOGo Mail every minute ?
« Reply #7 on: November 30, 2014, 08:12:54 PM »
Then you have a user sogo, but can you send it an email, it seems that qmail can't do that. I don't know if this is interesting , but here i can drop an email to the user sogo.

For you problem  of  /usr/sbin/sogo-ealarms-notify, maybe you should try to reinstall sogo-ealarms-notify, or reinstall all packages of sogo

For the record, smeserver-sogo doesn't provide binary, just an integration of sogo.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline fpausp

  • *
  • 728
  • +0/-0
Re: SOGo Mail every minute ?
« Reply #8 on: November 30, 2014, 08:15:00 PM »
OK Stephdl, thank you for your work, Its not a production Server, I think I will reinstall SOGo...
Viribus unitis