Public bug reported:

When using clamscan virus scanner plugin with qpsmtpd, it dies with the
following error message:

Fri Aug 19 20:08:45 2011 utest-oos32[5453]: clamscan results: 
/usr/bin/clamscan: unrecognized option `--config-file=/etc/clamd.conf'
ERROR: Unknown option passed
ERROR: Can't parse command line options
Fri Aug 19 20:08:45 2011 utest-oos32[5453]: ClamAV error: /usr/bin/clamscan 
--stdout  --config-file=/etc/clamd.conf --no-summary 
/var/spool/qpsmtpd/1313773725:5453:0 2>&1: 2
Fri Aug 19 20:08:45 2011 utest-oos32[5453]: 452 Message denied temporarily

The plugin is configured like this:

root@utest-oos32:/etc/qpsmtpd# cat /etc/qpsmtpd/plugins |grep clamav |grep -v 
"^#"
virus/clamav clamscan_path=/usr/bin/clamscan action=reject max_size=209715 
tmp_dir=/tmp/qpsmtpd.clam

clamscan's command line options changed a lot and qpsmtpd's clamav
plugin needs to be updated to not pass unknow parameters to clamscan
(--config-file was removed, but I didn't find this in clamav's changelog
anywhere).

Note: clamdscan plugin works just fine
Note2: as clamav 0.97.2 gets backported all the way to Hardy, this needs to be 
fixed in every release (Hardy, Lucid, Maverick, Natty) otherwise clamscan will 
not work
Note3: clamdscan (which works) should be the preferred plugin to use (because 
it's way faster) but this still need fixing, maybe not everybody is running 
clamav-daemon

** Affects: qpsmtpd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/829649

Title:
  qpsmtp + clamscan plugin combo broken

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qpsmtpd/+bug/829649/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to