I’m mostly documenting this here so that when/if I have to move to another server again, I have this documented somewhere. This will setup server-side e-mail scanning on cPanel servers using Exiscan and ClamAV.
- First, follow these wonderful directions to get version .75 of ClamAV installed onto your system. That page also gives you the information on how to setup your Exim configuration in WHM properly to filter things.
- Next, make sure you run an “ln -s /etc/clamav.conf /etc/clamd.conf” command as a root user (thanks to the tip here). The reason you do this is that upgrades to ClamAV that have been posted in the cPanel forums use a differently named config file, but the information in those files is the same so this makes it so that you can call it by either name and be good to go.
- You very well may need to update your zlib, otherwise the update to .83 won’t work. Follow the commands in this post to make sure you have zlib 1.2.2 or higher on your server.
- You can then update to .83 by following the directions in this post (it refers to .82, but that will bring you up to .83, as the file it refers to has since been updated). After it’s all said and done, run “clamscan -V” from the command line, and you should be good to go.