diff options
author | Nick Hadaway <raker@gentoo.org> | 2003-10-27 10:32:25 +0000 |
---|---|---|
committer | Nick Hadaway <raker@gentoo.org> | 2003-10-27 10:32:25 +0000 |
commit | 98ba5002619a43af42be20bc45477c22122d1e74 (patch) | |
tree | 75633019d10427175e63de35bb1a1fa7e298f114 /net-mail | |
parent | Switch to mirror:// in SRC_URI (diff) | |
download | gentoo-2-98ba5002619a43af42be20bc45477c22122d1e74.tar.gz gentoo-2-98ba5002619a43af42be20bc45477c22122d1e74.tar.bz2 gentoo-2-98ba5002619a43af42be20bc45477c22122d1e74.zip |
a README for setting up the clamav-milter :)
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/clamav/Manifest | 3 | ||||
-rw-r--r-- | net-mail/clamav/clamav-0.60-r1.ebuild | 11 | ||||
-rw-r--r-- | net-mail/clamav/files/clamav-milter.README.gentoo | 60 |
3 files changed, 72 insertions, 2 deletions
diff --git a/net-mail/clamav/Manifest b/net-mail/clamav/Manifest index 326d498ded1d..b86f1880eac1 100644 --- a/net-mail/clamav/Manifest +++ b/net-mail/clamav/Manifest @@ -1,10 +1,11 @@ MD5 c0fff7f09e0e9444db5d145571c53660 clamav-0.54-r1.ebuild 995 -MD5 f2e757fe2ef206be756fa1f117ab73bc clamav-0.60-r1.ebuild 1076 +MD5 efa60f97b252a005c1bfaa8d6a4252a7 clamav-0.60-r1.ebuild 1320 MD5 9d58cb19f500010cac9db5a6ca7fa698 ChangeLog 1686 MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161 MD5 04210ff3a23bc710530b32254633ea7f clamav-0.60.ebuild 991 MD5 ce9876fced63b00a9145a572acd5718d files/digest-clamav-0.54-r1 63 MD5 42da0f76189d74f547ac513d7ee66be5 files/digest-clamav-0.60-r1 64 +MD5 ad7d45b1be51c06986cb42c53e733d19 files/clamav-milter.README.gentoo 1311 MD5 42da0f76189d74f547ac513d7ee66be5 files/digest-clamav-0.60 64 MD5 e8dcbdecd955708ddc7c79399ffa6276 files/clamd.conf 166 MD5 2914cd886cce48e88ae3476775353a59 files/clamd.rc 1251 diff --git a/net-mail/clamav/clamav-0.60-r1.ebuild b/net-mail/clamav/clamav-0.60-r1.ebuild index 8977f50d42a4..75ed13ab4e34 100644 --- a/net-mail/clamav/clamav-0.60-r1.ebuild +++ b/net-mail/clamav/clamav-0.60-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/clamav/clamav-0.60-r1.ebuild,v 1.1 2003/10/27 10:07:06 raker Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/clamav/clamav-0.60-r1.ebuild,v 1.2 2003/10/27 10:32:19 raker Exp $ IUSE="milter" @@ -39,4 +39,13 @@ src_install() { dodoc AUTHORS BUGS NEWS README ChangeLog TODO FAQ INSTALL exeinto /etc/init.d ; newexe ${FILESDIR}/clamd.rc clamd insinto /etc/conf.d ; newins ${FILESDIR}/clamd.conf clamd + dodoc ${FILESDIR}/clamav-milter.README.gentoo +} + +pkg_postinst() { + if [ `use milter` ]; then + einfo "For simple instructions howto setup the clamav-milter..." + einfo "" + einfo "less /usr/share/doc/${PVR}/clamav-milter.README.gentoo.gz" + fi } diff --git a/net-mail/clamav/files/clamav-milter.README.gentoo b/net-mail/clamav/files/clamav-milter.README.gentoo new file mode 100644 index 000000000000..42b397b4d91f --- /dev/null +++ b/net-mail/clamav/files/clamav-milter.README.gentoo @@ -0,0 +1,60 @@ +Nick Hadaway +raker@gentoo.org +10/27/2003 +Setting up clamav-milter on Gentoo Linux + + +Step 1 - Configure clamd + + mv /etc/clamav.conf /etc/clamav.conf.dist + nano -w /etc/clamav.conf + + # This is my /etc/clamav.conf + LogFile /tmp/clamd.log + LogFileMaxSize 16M + LogTime + LogSyslog + PidFile /var/run/clamd.pid + DataDirectory /usr/share/clamav + LocalSocket /var/run/clamd.sock + StreamSaveToDisk + MaxDirectoryRecursion 15 + ScanMail + ScanArchive + ArchiveMaxFileSize 10M + ArchiveMaxRecursion 5 + ArchiveMaxFiles 1000 + +Step 2 - Tell the init script to start clamd as well as freshclam + + nano -w /etc/conf.d/clamd + + START_CLAMD=yes + +Step 3 - Start clamd + + /etc/init.d/clamd start + +Step 4 - Edit sendmail.mc + + Add these lines to sendmail.mc before any any other + INPUT_MAIL_FILTER lines and before MAILER(local) + NOTE: ANY INPUT_MAIL_FILTER definitions put before these lines + will be discarded due to the use of confINPUT_MAIL_FILTERS + Make this your first mail filter. :) + + INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clmilter.sock, F=, T=S:4m;R:4m')dnl + define(`confINPUT_MAIL_FILTERS', `clmilter')dnl + +Step 5 - Rebuild sendmail.cf + + cd /etc/mail + m4 sendmail.mc > sendmail.cf + +Step 6 - Start clamav-milter + + /usr/sbin/clamav-milter -blo /var/run/clmilter.sock + +Step 7 - Restart sendmail + + /etc/init.d/sendmail restart |