Zimbra's antispam and antivirus services stop at the same time every day, but do not restart. This causes email to stop flowing. How do I fix this?
This needs to be done so that the PERL5LIB variable is correctly set inside of cron so that amavis can pick it up. It's actually a bug in Zimbra. The following workaround will fix the issue.
Open a Unix shell and cd to \var\spool\cron\
You will see a file called zimbra. Use your favorite Unix editor to edit the file.
Change the following cron line from this...
45 0 * * * /opt/zimbra/libexec/zmsaupdate
to this instead:
45 0 * * * . /opt/zimbra/.bashrc; /opt/zimbra/libexec/zmsaupdate