Anacron run-parts: /etc/cron.daily/amavisd-new exited with return code 1

I’ve been getting messages like the ones below from cron my debian box for some time now. I finally got sick of seeing them and I tracked down the error.
/etc/cron.daily/amavisd-new:
Please run this cronjob as user amavis
run-parts: /etc/cron.daily/amavisd-new exited with return code 1

At some point the debian package moved the cron config file from /etc/cron.daily/amavisd-new to /etc/cron.d/amavisd-new but for some reason when upgrading, it does not remove the old config file, leaving you with an erroneous file.
All you need to do is delete /etc/cron.daily/amavisd-new and the messages should go away.

3 comments

Leave a comment

Your email address will not be published. Required fields are marked *