Submitter: Doug Hunley

We're going to build and install Sendmail so that it processes all inbound, outbound, and relayed mail looking for viruses and SPAM. We use a *very* similar setup on the linux-sxs.org site.

  1. install perl
  2. Use Perl's builtin CPAN module to add some additional Perl modules:
  3. install ClamAV (or some other anti-virus program)
  4. install Vipul's Razor
  5. install MIME-Tools
  6. install SpamAssassin
  7. install db
  8. install Sendmail per these instruction. Follow steps 1-8, but stop right before doing the sh Build config.cf
  9. add to the end of the config.mc file:
    • INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:60s;R:60s;E:5m')dnl
  10. continue installing sendmail per the instruction here starting with sh Build config.cf
  11. create the spool dir for MIMEDefang
  12. correct the ownership of the spool dir
  13. correct the permissions on the spool dir
  14. install MIMEDefang

That should be it. You should now have sendmail processing all email through MIMEDefang which will check for SPAM and viruses. Enjoy!
searchSearch Index
searchSearch Index