↑日記で日々積み重ねた情報をトップの「わんこのページ」にまとめています。

おのたく日記 [RDF] YouTubeも始めました→


2011-03-18(Fri) [長年日記]

[Debian] clamav-daemonのUNIXソケット名が変わっいた

ログを見ていたら

Mar 19 12:00:05 localhost sm-mta[23583]: p2J305Q4023583: Milter (clamav): local

socket name /var/run/clamav/clamav-milter.ctl unsafe

というのが連打されてしまっていた。

clamav-milter installs an m4 macro in /etc/mail/m4/clamav-milter.m4

The installation documentation says to include this macro in your sendmail.mc file.

Doing so will result in clamav-milter not working, with errors for each incoming email, as follows:

Milter (clamav): local socket name /var/run/clamav/clamav-milter.ctl unsafe

Milter (clamav): to error state

This happens because the clamav-milter.m4 macro has the following line:

INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clamav-milter.ctl, F=, T=S:4m;R:4m')dnl

That line points to a non-existent socket. The actual socket name is, instead, 'milter.ctl'.

The bug is fixed by changing the clamav-milter.m4 line to read instead:

INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/milter.ctl, F=, T=S:4m;R:4m')dnl

Sorry, I've been meaning to report this for a long time - just getting tired of always having to correct it... ;)

Mark

[Debian Bug report logs - #543309 local socket clamav-milter.ctl unsafe - milter set to error stateより引用]

というのが有ったので、おうちのパッケージのバージョン0.97+dfsg-2では少し違うようなので、とりあえず

/etc/clamav# diff -u clamd.conf.old clamd.conf

--- clamd.conf.old 2010-12-08 04:51:09.216486363 +0900

+++ clamd.conf 2011-03-19 14:15:32.960843551 +0900

@@ -1,7 +1,7 @@

#Automatically Generated by clamav-base postinst

#To reconfigure clamd run #dpkg-reconfigure clamav-base

#Please read /usr/share/doc/clamav-base/README.Debian.gz for details

-LocalSocket /var/run/clamav/clamd.ctl

+LocalSocket /var/run/clamav/clamav-milter.ctl

FixStaleSocket true

LocalSocketGroup clamav

LocalSocketMode 666

としてエラーをでなくした。(正しい修正か不明)

本日のツッコミ(全1件) [ツッコミを入れる]
_ わんこ (2011-03-20(Sun) 17:28)

このclamd.confって、clamav-daemonの設定ファイルだからmilterには関係なし。間違い

本日のPingbacks(全0件)

Google Web検索 on-o.com内を検索