Bug 161953

Summary: clamav-milter could use some extra files to ease setup
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: clamavAssignee: Enrico Scholz <rh-bugzilla>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 3Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-06-28 19:32:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Orion Poplawski 2005-06-28 18:29:59 UTC
Description of problem:
clamav-milter requires a fair amount of setup to get the associated clamd
working (namely learning about clamd-wrapper).  But, it seems like default files
could be easily provided (in addition to /etc/clamd.d/milter.conf).  Or perhaps
in a clamav-server-milter package. E.g.:

/etc/rc.d/init.d/clamd.milter:
#!/bin/bash
#
# chkconfig: - 75 25
# description: The clamd server running for milter

CLAMD_SERVICE=milter
. /usr/share/clamav/clamd-wrapper

(this could be enabled with chkconfig --add clamd.milter)

/etc/sysconfig/clamd.milter:
CLAMD_CONFIGFILE=/etc/clamd.d/milter.conf
CLAMD_SOCKET=/var/run/clamd.milter/clamd.sock
CLAMD_OPTIONS=

/etc/logrotate.d/clamd.milter:
/var/log/clamd.milter {
        monthly
        notifempty
        missingok

        postrotate
                killall -HUP clamd.milter 2>/dev/null || :
        endscript
}

And the /var/run/clamd.milter directory:
 
drwxr-xr-x  2 clamilt clamilt 4096 Jun 28 12:04 /var/run/clamd.milter

Version-Release number of selected component (if applicable):
clamav-milter-0.86.1-2.fc3

Comment 1 Enrico Scholz 2005-06-28 19:32:56 UTC
clamav-milter does not need a separate 'clamd' daemon; since version 0.81 the
internal mode is the default one.

'clamav-milter' itself should work out-of-the-box (after commenting out the
'Example' line in /etc/clamd.d/milter.conf); for testing the '-blo' option might
be added in /etc/sysconfig/clamav-milter, but upstream does not seem to like
these options by default.