1

Topic: Sogo cron job Warning message

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro? YES
- Related log if you're reporting an issue:
====

i have enabled the sogo vacation function, after i received some warning message as below:

sogo-tool[4177:4177] Failed to load credentials file: /etc/sogo/sieve.creds
update-autoreply -p credentialFile

  -p credentialFile    Specify the file containing the sieve admin credentials
                       The file should contain a single line:
                         username:password

The update-autoreply action should be configured as a daily cronjob.

Warning ... someone broke our lock (/var/lib/sogo/GNUstep/Defaults/.lck/.GNUstepDefaults.lck) ... and may have interfered with updating defaults data in file.

how to fix this issues thanks

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Sogo cron job Warning message

Do you have valid Dovecot Master User account stored in /etc/sogo/sieve.creds?

3

Re: Sogo cron job Warning message

ZhangHuangbin wrote:

Do you have valid Dovecot Master User account stored in /etc/sogo/sieve.creds?

i have a default account in this file
sogo_sieve_master@not-exist.com:XXXXXXXXXXXXXXX

4

Re: Sogo cron job Warning message

Please show us output of commands below:

ls -l /etc/sogo/sieve.cred
sogo-tool -v update-autoreply -p /etc/sogo/sieve.cred

5

Re: Sogo cron job Warning message

ZhangHuangbin wrote:

Please show us output of commands below:

ls -l /etc/sogo/sieve.cred
sogo-tool -v update-autoreply -p /etc/sogo/sieve.cred

[root@]# ls -l /etc/sogo/sieve.cred
-r-------- 1 sogo sogo 63 Jul 23 14:57 /etc/sogo/sieve.cred
[root@]# sogo-tool -v update-autoreply -p /etc/sogo/sieve.cred
2016-12-05 23:34:32.682 sogo-tool[6183:6183] Checking user  xxx@abc.com
2016-12-05 23:34:32.683 sogo-tool[6183:6183] Checking user  xxxx@xxx.com

6

Re: Sogo cron job Warning message

File permission is correct, no error in output. Weird.

Do you run 'sogo-tool' in root's cron job or sogo's? Check it with commands:

crontab -l -u root
crontab -l -u sogo

7

Re: Sogo cron job Warning message

ZhangHuangbin wrote:

File permission is correct, no error in output. Weird.

Do you run 'sogo-tool' in root's cron job or sogo's? Check it with commands:

crontab -l -u root
crontab -l -u sogo

[root@]# crontab -l -u root
# iRedMail: Backup MySQL databases on 03:30 AM
30 5 * * * /bin/bash /var/vmail/backup/backup_mysql.sh

# iRedAPD: Clean up expired tracking records hourly.
1   *   *   *   *   python /opt/iredapd/tools/cleanup_db.py >/dev/null

# iRedAPD: Convert SPF DNS record of specified domain names to IP
#          addresses/networks every 30 minutes.
*/30   *   *   *   *   python /opt/iredapd/tools/spf_to_greylist_whitelists.py >                             /dev/null
# iRedMail: Cleanup Amavisd database
1   2   *   *   *   python /var/www/iredadmin/tools/cleanup_amavisd_db.py >/dev/                             null

# iRedMail: Cleanup Roundcube SQL database
2   2   *   *   *   /usr/bin/php /var/www/roundcubemail/bin/cleandb.sh >/dev/nul                             l

# iRedMail: update Awstats statistics for web
1   */1   *   *   *   /usr/bin/perl /usr/share/awstats/wwwroot/cgi-bin/awstats.p                             l -config=web -update >/dev/null

# iRedMail: update Awstats statistics for smtp
1   */1   *   *   *   /usr/bin/perl /usr/share/awstats/wwwroot/cgi-bin/awstats.p                             l -config=smtp -update >/dev/null

# iRedAdmin: Clean up sql database.
1   *   *   *   *   /usr/bin/python /var/www/iredadmin/tools/cleanup_db.py &>/de                             v/null


[root@]# crontab -l -u sogo
# SOGo session cleanup and email reminder, should be run every minute.
*   *   *   *   *   /usr/sbin/sogo-tool expire-sessions 30; /usr/sbin/sogo-ealarms-notify

# SOGo vacation messages expiration
# The credentials file should contain the sieve admin credentials (username:passwd)
0   0   *   *   *   /usr/sbin/sogo-tool update-autoreply -p /etc/sogo/sieve.cred

8

Re: Sogo cron job Warning message

Seems fine, i have no idea. It's better post to SOGo mailing list to get support from SOGo developers directly.
https://sogo.nu/support/index_new.html#/community