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:
clamav-milter/clamfi.c:
if(!(opt = optget(opts, "LogInfected"))->enabled ||
!strcasecmp(opt->strarg, "Off"))
loginfected = LOGINF_NONE;
else if(!strcasecmp(opt->strarg, "Basic"))
loginfected = LOGINF_BASIC;
else if(!strcasecmp(opt->strarg, "Full"))
loginfected = LOGINF_FULL;
else {
logg("!Invalid setting %s for option LogInfected\n", opt->strarg);
return 1;
}
if((opt = optget(opts, "LogClean"))->enabled) {
if(!strcasecmp(opt->strarg, "Basic"))
loginfected |= LOGCLN_BASIC;
else if(!strcasecmp(opt->strarg, "Full"))
loginfected |= LOGCLN_FULL;
else if(strcasecmp(opt->strarg, "Off")) {
logg("!Invalid setting %s for option LogInfected\n", opt->strarg);
<== should be "LogClean"
return 1;
}
}
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.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: clamav 0.97.1+dfsg-1ubuntu1
ProcVersionSignature: Ubuntu 3.0-3.4-generic 3.0.0-rc5
Uname: Linux 3.0-3-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sun Jul 10 12:41:09 2011
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/usr/bin/tcsh
SourcePackage: clamav
UpgradeStatus: Upgraded to oneiric on 2009-07-28 (712 days ago)
** Affects: clamav (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug oneiric unity-2d
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in Ubuntu.
https://bugs.launchpad.net/bugs/808311
Title:
ERROR: Invalid setting true for option LogInfected
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/808311/+subscriptions
--
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs