更新 clamav-milter 后,ClamAV Milter 服务将无法启动

更新 clamav-milter 后,ClamAV Milter 服务将无法启动

我最近更新了 ClamAV。以下是已更新的软件包:

  • clamav-db-0.99-3.el6.x86_64
  • clamav-0.99-3.el6.x86_64
  • clamd-0.99-3.el6.x86_64
  • clamav-milter-0.99-3.el6.x86_64
  • libpng-1.2.49-2.el6_7.x86_64

现在我每三分钟就会收到一次/var/log/maillog

mail postfix/smtpd[5581]: warning: connect to Milter service unix:/var/run/clamav/clamav-milter.sock: Permission denied

如果我尝试启动 clamav-milter 服务,我会得到以下信息:

[root@mail log]# service clamav-milter start
Starting Clamav Milter Daemon: ERROR: Failed to change socket ownership to user clam
                                                       [FAILED]

我在 Red Hat Hat Enterprise Linux 6.3 上运行 Postfix

答案1

我找到了解决办法。我需要编辑我的/etc/clamav-milter.conf文件并注释掉以下内容:

# Run as another user (clamav-milter must be started by root for this option to work)                                                                          
#                                                                               
# Default: unset (don't drop privileges)                                        
#User clam 

现在 clamav-milter 服务已正常启动。

相关内容