switching from clamavmodule -> clamd... source?

Julian Field MailScanner at ecs.soton.ac.uk
Tue Jul 10 19:48:53 IST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Ugo Bellavance wrote:
> Julian Field wrote:
>>>>>>     I'd like to switch from clamavmodule to clamd.  I used to use 
>>>>>> a source-install of clamav.  I've read that the easiest way to 
>>>>>> get clamd running is using dag's RPM.  However, a dependency for 
>>>>>> clamd is clamav and clamav-db.  How will that play with my 
>>>>>> current source install of clamav?  Should I move to using 
>>>>>> exclusively rpm clamav?
>>>>> <answering myself>
>>>>>
>>>>> It looks like the source install is overwritten by the RPM.  This 
>>>>> answers my question...
>>>> The source install by default goes in /usr/local, while the RPMs 
>>>> most often go into /usr/bin, /etc and so on.
>>> You're right.  And if we remove /usr/local/freshclam, MailScanner 
>>> can't update clamav.
>> Make sure that /etc/MailScanner/virus.scanners.conf points to the 
>> right installation (i.e. /usr or /usr/local). Then it will call 
>> /usr/bin/freshclam for you.
>
> Ok.
>
>>> Anyone really documented all the process of switching from clamav or 
>>> clamavmodule to clamd?  I could do it, if I can gather all the 
>>> information.
>> I would proceed like this:
>>
>> 1. Make sure you have a sufficiently recent MailScanner installed so 
>> that you have direct support of clamd. Version 4.61.7-2 at least. I 
>> don't believe in running betas once there is a stable release of the 
>> same version.
>
> Ok
>
>> 2. Install ClamAV from the RPMs at dag.wieers.com. You need the 
>> correct builds of clamav, clamav-db and clamd. This way you get the 
>> init.d script for free.
>
> Ok
>
>> 3. Install my ClamAV+SpamAssassin package, telling it not to install 
>> ClamAV. Tell it you ClamAV installation lives at /usr/bin (or /usr, 
>> or /usr/bin/clamscan, it will work out what you meant).
>
> Why is that necessary if SA 3.2.1 is already installed on the system?
It's not in that case, no.
>
>> 4. Check your clam* entries in /etc/MailScanner/virus.scanners.conf 
>> all point to /usr.
>
> Ok.  I guess this means that MailScanner assumes a source install by 
> default.  This probably means that any user that wants to switch from 
> source to dag's rpm would have to do this right?
Correct.
>
>> 5. Set your "Virus Scanners =" entry in 
>> /etc/MailScanner/MailScanner.conf to include "clamd".
>
> Ok
>
> 5.5. Set the Incoming Work Group and Incoming Work Permission settings 
> accordingly:
>
>        Incoming Work Group = clamav
>        Incoming Work Permissions = 0640
Good point, forgot that one. Well spotted!
>
>> 6. Set up the Clamd-specific entries in 
>> /etc/MailScanner/MailScanner.conf to the same values as you use in 
>> /etc/clamd.conf. By default I *think* you can just leave them alone. 
>> But if you are running a system with more than 1 CPU (or more than 1 
>> CPU core), then switch on "Clamd Use Threads = yes" in MailScanner.conf.
>
> Ok
>
>> 7. chkconfig clamd on
>
> I think the RPM does it by default.
>
>> 8. service clamd start
>> 9. service MailScanner restart
>>
>> I'm sure others will correct any mistakes in the above guide.
>>
>> I have just updated my ClamAV+SA package so that it prints more 
>> instructions to inform your choice of whether you want it to install 
>> ClamAV or not, and tells you where to get the RPMs if you decide to 
>> take that route.
>>
>> Please can someone add this, and my previous recent HOWTO, to the 
>> Wiki for me?
>
> Will do as soon as I have all the info.
Thanks a lot for doing that.
>
> Ugo
>

Jules

- -- 
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.6.2 (Build 2014)
Charset: ISO-8859-1

wj8DBQFGk9SWEfZZRxQVtlQRAsGbAJ98ItHhiH/NIqD2DqHdTY6HDDskXgCfa65b
hXggRJYdMpd6bqhcPbO2B9s=
=JO+8
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk



More information about the MailScanner mailing list