Adding ClamAV Anti-Virus to an Anti-SPAM Gateway

Originally by Kris Nosack

Scott Vintinner offered me Wiki space for this document and I decided it would be a good idea to move to a community-managed document that is able to adapt to the ever changing challenge of stopping e-mail viruses. Basically this site contains the directions for adding the same e-mail anti-virus filter component ClamAV to Scott's anti-spam gateway, but in a format that anyone can edit. Please feel free to correct any mistakes that you find here. All I ask is that you read the Before You Start Editing page so that we can keep everything fairly consistent. You'll also find help formatting and creating pages, via the Wiki Help page.

[Buy Dissertation]

Before you start, think if you need it at all. A much simpler approach is just to configure amavis to ban executable extensions entirely by setting $banned_filename_re appropriately. But don't forget that documents may also contain malicious code.

For discussion and asking questions, please read and post comments on the [FlakShack forum] (note that you don't need to create an account to post).

[Thesis Writing]

The original HTML document will no longer be maintained, but is available for reference here: http://www.xmission.com/~kn/AddClamAV

Index

Installation Steps

  1. Install Needed OpenBSD Ports
  2. Install ClamAV
  3. Configure ClamAV
  4. Update the virus database
  5. Start the ClamAV daemon
  6. Test ClamAV
  7. Configure amavisd to use ClamAV
  8. Restart and make sure virus scanning is working
  9. Periodically check for new viruses
  10. Configure OpenBSD to start clamd after a reboot
  11. Daily delete old files
  12. Add a virus report script

Appendix

print_icon.gif Anti-Spam Printable view
Anti-Virus Printable view

[writing jobs]

[proofreading jobs]

[watch alice in wonderland online]

[make money from freelance writing]

[how to become a freelance writer]

[freelance writer rates]