Offlineimap doesn't get mails when running from cron

Niels Kobschaetzki niels at kobschaetzki.net
Wed Jul 23 05:52:31 BST 2014


Hi,

I googled a lot but I just cannot get offlineimap to run from a cronjob.
Looking into the logs and exits without an error which doesn't mean anything to me. And of course it doesn't get any mails.

*/5 * * * * /usr/bin/offlineimap -q -f INBOX -u TTYUI > /home/user/mycommand.log
*/20 * * * * /usr/bin/offlineimap -u quiet > /home/user/mycommand.log 

I want to write into the mycommand.log right now just for
debugging-reasons but the file stays empty

The output in syslog shows the following:

Jul 23 06:08:01 venus CRON[19935]: (nik) CMD (/usr/bin/offlineimap -q -f
INBOX -u TTYUI >/home/nik/mycommand.log)
Jul 23 06:08:02 venus CRON[19934]: (CRON) info (No MTA installed,
discarding output)

Of course I tried basic and quiet as UIs as well.
Any ideas?

Thanks,

Niels




More information about the OfflineIMAP-project mailing list