If you are REALLY SET on getting clamd running on a separate machine, you
could use an nfs mount.
Do something like this in amavisd.conf:
@av_scanners = (
['ClamAV-clamd',
\&ask_daemon, ["CONTSCAN ".$rootdir."{}\n", "baseip.loc:3310"],
qr/\bOK$/, qr/\bFOUND$/,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);
Where $rootdir is the nfs mount of amavishome/tmp dir, baseip.loc resolves
to the ip of the box. You need to put clamd into tcp mode (clamd.conf on
BOTH BOXES (I think).
No, you won't use tcp streaming, tcp:contscan sends the COMMANDS to clamd
(you can test with tcp dump).
Probally better to use amavisd-new on second box. It would send the
compressed email to amavisd-new, amavisd-new on second box would unzip any
attachments locally, clamd would act on those.
Doing it via nfs mount, you would be using clamd on the second box, working
on an nfs mount, scanning unziped files. Lots more overhead.
--
Michael Scheidell, CTO
>|SECNAP Network Security
Winner 2008 Network Products Guide Hot Companies
FreeBSD SpamAssassin Ports maintainer
_________________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(r).
For Information please see http://www.spammertrap.com
_________________________________________________________________________
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/