On Fri, 21 Mar 2003, Damjan wrote:

> How about a small tutorial about combining MIMEDefang and clamd?

o Install clamav

o Create a /usr/local/etc/clamav.conf for use with MIMEDefang:

cat << PENGUINSRCOOL > /usr/local/etc/clamav.conf
PidFile /var/spool/MIMEDefang/clamd.pid
LocalSocket /var/spool/MIMEDefang/clamd.sock
MaxDirectoryRecursion 15
User defang
ScanArchive
ArchiveMaxFileSize 10M
ArchiveMaxRecursion 5
ArchiveMaxFiles 1000
PENGUINSRCOOL

  If you put your MIMEDefang spool dir on a ramdisk like I do, make sure
  you set PidFile and LocalSocket to that path instead (mine is
  /ram/MIMEDefang).

o Add the defang user and group:

groupadd defang
useradd -g defang defang

o Start clamd:

/usr/local/sbin/clamd

o Read the MIMEDefang docs and Install MIMEDefang

o Check out the MIMEDefang filter (/etc/mail/mimedefang-filter), modify it
  as/if needed.  Note the message_contains_virus and entity_contains_virus
  subroutines.  By default, they're set to use the first available scanner.
  If you want to use multiple scanners (I use 3 myself), ask for
  suggestions on the MD list, or better yet - read through the list archive.

o Start MIMEDefang

If you already had MIMEDefang installed, then installed clamav, go into
the MD source and run 'make distclean' before you rebuild it.

I'm the one that added clamd support to MIMEDefang.  If this isn't
enough information, you're welcome to write me off list for more.

I haven't tried MailScanner, so no comment there, but everything that's
been suggested about it is available through MD and then some.

  Jason

-- 
Jason Englander <[EMAIL PROTECTED]>
394F 7E02 C105 7268 777A  3F5A 0AC0 C618 0675 80CA


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to