On 14-01-21 11:17 AM, Alessio Fattorini wrote:
Hi all,
after the shell change for user sogo, from /bin/bash to /sbin/nologin my
expire-autoreply vacation script stop working.
that would be strange. On which platform to you have this problem? It works fine here on ubuntu 12.04.

0 0 * * *      sogo    /usr/sbin/sogo-tool expire-autoreply sogo:wi***

I wrote this month ago, as suggested in documentation and sogo package

I try with this (like an email suggest me)
sudo -u sogo /usr/sbin/sogo-tool expire-autoreply -p /var/lib/sogo/credentials

but i obtain this error:

2014-01-23 00:05:42.282 sogo-tool[9279] Could not login 'alessio' on Sieve
server: <0x0x8fb34d4[NGSieveClient]: socket=<NGActiveSocket[0x0x8fb7e04]:
mode=rw address=<0x0x8fb92d4[NGInternetSocketAddress]: host=localhost
port=57430> connectedTo=<0x0x8fb57ec[NGInternetSocketAddress]: host=localhost
port=4190>>>: (null)
2014-01-23 00:05:42.287 sogo-tool[9279] An error occured while removing
auto-reply of user alessio

My guess is that the password you provided to sogo-tool is wrong or the user is not a master user.

alessio is the user with vacation activated
Can you explain how change script please? If i should change
I should use sudo, how can i use sudo into cron?
Don't use sudo, cronjobs for users with no shell work fine:

$ grep sogo /etc/password

sogo:x:1000:1000:sogo,,,:/home/sogo:/usr/sbin/nologin


/etc/cron.d/sogo:
* * * * * sogo echo I have no shell | logger

/var/log/syslog:

Jan 22 15:27:01 sogo cron[1015]: (*system*sogo) RELOAD (/etc/cron.d/sogo)
Jan 22 15:27:01 sogo CRON[2874]: (sogo) CMD (echo I have no shell | logger)
Jan 22 15:27:01 sogo logger: I have no shell

--
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to