clamav-milter.README.gentoo 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Nick Hadaway <raker@gentoo.org>
  2. Updated by Andrea Barisani <lcars@gentoo.org>
  3. 18/05/2004
  4. Setting up clamav-milter on Gentoo Linux
  5. Step 1 - Configure clamd
  6. Check /etc/clamd.conf, default values should work out of the box but
  7. read and understand all the options especially if you are going to
  8. use it on production boxes.
  9. Step 2 - Tell the init script to start clamd as well as freshclam and the
  10. milter itself.
  11. nano -w /etc/conf.d/clamd
  12. START_CLAMD=yes
  13. START_FRESHCLAM=yes
  14. START_MILTER=yes
  15. Step 3 - Edit sendmail.mc
  16. Add these lines to sendmail.mc before any any other
  17. INPUT_MAIL_FILTER lines and before MAILER(local)
  18. NOTE: ANY INPUT_MAIL_FILTER definitions put before these lines
  19. will be discarded due to the use of confINPUT_MAIL_FILTERS
  20. Make this your first mail filter. :)
  21. INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m')dnl
  22. define(`confINPUT_MAIL_FILTERS', `clmilter')dnl
  23. Step 4 - Rebuild sendmail.cf
  24. cd /etc/mail
  25. m4 sendmail.mc > sendmail.cf
  26. Step 5 - Start clamad
  27. /etc/init.d/clamd start
  28. Step 6 - Restart sendmail
  29. /etc/init.d/sendmail restart