diff options
Diffstat (limited to 'net-mail/clamav/files/clamav-milter.README.gentoo')
-rw-r--r-- | net-mail/clamav/files/clamav-milter.README.gentoo | 60 |
1 files changed, 60 insertions, 0 deletions
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 |