Postfix

ClamAV Milter 服務在更新 clamav-milter 後不會啟動

  • December 21, 2015

我最近更新了 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 Enterprise Linux 6.3 執行 Postfix

我找到了解決辦法。我需要編輯我的/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 服務正常啟動。

引用自:https://serverfault.com/questions/744533