1

Topic: Cron <root@mail> test -x /usr/sbin/anacron

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

I can not find the reason.
Daily mail:

Cron <root@mail> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
/etc/cron.daily/logrotate:
logrotate_script: 2: logrotate_script: reload: not found

----

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

2

Re: Cron <root@mail> test -x /usr/sbin/anacron

Did you check /etc/cron.daily/logrotate?

3

Re: Cron <root@mail> test -x /usr/sbin/anacron

Yes, it's from box.

root@mail:~# cat /etc/cron.daily/logrotate
#!/bin/sh

# Clean non existent log file entries from status file
cd /var/lib/logrotate
test -e status || touch status
head -1 status > status.clean
sed 's/"//g' status | while read logfile date
do
    [ -e "$logfile" ] && echo "\"$logfile\" $date"
done >> status.clean
mv status.clean status

test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf
root@mail:~# cd /var/lib/logrotate

root@mail:/var/lib/logrotate# ls
status


root@mail:/var/lib/logrotate# cat status
logrotate state -- version 2
"/var/log/mail.log" 2016-11-13-6:25:16
"/var/log/aptitude" 2016-11-14-16:0:0
"/var/log/daemon.log" 2016-11-14-16:0:0
"/var/log/auth.log" 2016-11-13-6:25:16
"/var/log/dovecot-lmtp.log" 2016-11-13-6:25:16
"/var/log/unattended-upgrades/unattended-upgrades-dpkg.log" 2016-11-1-6:25:11
"/var/log/fail2ban.log" 2016-11-13-6:25:16
"/var/log/cron.log" 2016-11-14-16:0:0
"/var/log/dovecot.log" 2016-11-13-6:25:16
"/var/log/ufw.log" 2016-9-25-6:25:19
"/var/log/clamav/clamav.log" 2016-11-13-6:25:16
"/var/log/mail.err" 2016-11-14-16:0:0
"/var/log/iptraf/*.log" 2016-11-14-16:0:0
"/var/log/mail.info" 2016-11-14-16:0:0
"/var/log/nginx/access.log" 2016-11-14-6:25:9
"/var/log/mysql.log" 2016-11-14-16:0:0
"/var/log/wtmp" 2016-11-1-6:25:11
"/var/log/mail.warn" 2016-11-14-16:0:0
"/var/log/messages" 2016-11-14-16:0:0
"/var/log/lpr.log" 2016-11-14-16:0:0
"/var/log/alternatives.log" 2016-11-1-6:25:11
"/var/log/php7.0-fpm.log" 2016-11-13-6:25:16
"/var/log/sogo/sogo.log" 2016-11-14-15:59:4
"/var/log/unattended-upgrades/unattended-upgrades.log" 2016-11-1-6:25:11
"/var/log/clamav/freshclam.log" 2016-11-13-6:25:16
"/var/log/unattended-upgrades/unattended-upgrades-shutdown.log" 2016-8-16-6:0:0
"/var/log/apport.log" 2016-9-2-6:25:10
"/var/log/apt/term.log" 2016-11-1-6:25:11
"/var/log/dovecot-sieve.log" 2016-11-13-6:25:16
"/var/log/apt/history.log" 2016-11-1-6:25:11
"/var/log/nginx/error.log" 2016-11-14-6:25:9
"/var/log/kern.log" 2016-11-14-15:59:4
"/var/log/openldap.log" 2016-11-13-6:25:16
"/var/log/btmp" 2016-11-1-6:25:11
"/var/log/syslog" 2016-11-14-6:25:9
"/var/log/debug" 2016-11-14-16:0:0
"/var/log/mysql/error.log" 2016-11-14-6:25:9
"/var/log/dpkg.log" 2016-11-1-6:25:11
"/var/log/user.log" 2016-11-14-16:0:0
"/var/log/uwsgi/app/iredadmin.log" 2016-11-14-15:59:4
"/var/log/uwsgi/*.log" 2016-11-14-16:0:0

4

Re: Cron <root@mail> test -x /usr/sbin/anacron

No idea. better ask in Ubuntu support forum or mailing list, more like a bug.