Comment 2 for bug 808311

Revision history for this message
Michael Tautschnig (mt-debian) wrote : Re: [Bug 808311] [NEW] ERROR: Invalid setting true for option LogInfected

Hi,

> Public bug reported:
>
> * Starting Sendmail milter plugin for ClamAV clamav-milter
> ERROR: Invalid setting true for option LogInfected [fail]
>
> yet:
>
> # grep LogInfected /etc/clamav/clamav-milter.conf
> LogInfected Off
>
> the reason is the log is bogus:
>

I've just reported this to upstream as #3040, see
https://wwws.clamav.net/bugzilla/show_bug.cgi?id=3040.

>
> and indeed:
>
> # grep LogClean /etc/clamav/clamav-milter.conf
> LogClean true
>
> Changing "true" to "Basic" / "Full" / "Off" make it work.
>
> So both the confusing log and the wrong default value should be fixed.
>

The wrong value "true" was likely caused by the debconf question missing in
versions before 0.97.1+dfsg-1 (whilst still internally asking debconf for a
value). If you remove this line from the config file or dpkg-reconfigure
clamav-milter you should get an appropriate value in there.

Automatically fixing this problem seems to be a bit risky as we do not want to
override a user's choice/configuration, not even an invalid one.

Hope this helps,
Michael