如题,amavisd 不能正常启动并且 zimbra.log日志报错:
Not able to start Amavis services, error :
Dec 21 10:02:29 server amavis[7787]: initializing Mail::SpamAssassin (0)
Dec 21 10:02:29 server amavis[7787]: (!!)TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?
Dec 21 10:02:29 server amavis[7787]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?
解决办法:
服务器接入外网,然后运行 sa-update 即可解决此问题:
su – zimbra
/opt/zimbra/zimbramon/bin/sa-update -D
zmamavisdctl restart
如果 ZCS 服务器没有外网:
- 检查 "/opt/zimbra/data/spamassassin/" 目录的 "state"目录
- 如果 "state" 目录存在,将它移到别的地方并重启 Amavisd 服务:
mv /opt/zimbra/data/spamassassin/state /tmp/state
zmamavisdctl restart