Clamav
Jump to navigation
Jump to search
ClamAV is the anti-virus engine used by Mail-Toaster.
- IMPORTANT: You are advised to keep ClamAV up to date. It is an integral part to enabling e-mail delivery into your Mail-Toaster. Without it functioning, your e-mail will be deferred until you correct the problem (and update).
Updating ClamAV
Notes
- Note 1: To find out the installed version of clamav, run:
pkg_info | grep clamav
- Note 2: You may have to set your portupgrade flags to
-frkR
to force dependency upgrades. Also note that you may have to manually upgrade some tertiary dependencies before attempting to upgrade ClamAV (depends on how outdated your server is). - Note 3: Some times a package won't fetch due to a mirror being down or the package doesn't exist. If this happens, do a Google search for the exact package name to locate another mirror. Fetch the file into
/usr/ports/distfiles
and re-run portupgrade. - Note 4: Some times an installed dependency package is replaced by a new one and it has to be manually removed. Use
pkg_delete -f <packagename>
to remove the old package. You may then need to runpkgdb -fu
to fix the missing dependency and thenpkgdb -F
to properly update the database. Once you've done this, you can re-run portupgrade. - Note 5:
gcc
can take forever to compile. On a VM with a 2.8Ghz single vcpu, it took 3+ hours with no disk i/o problems (ie. stick with it & don't give up).
Steps
toaster_setup.pl -s ports /usr/local/etc/rc.d/clamav-freshclam stop /usr/local/etc/rc.d/clamav-clamd stop portupgrade -frR clamav-0.XX <-- replace XX with your installed version toaster_setup.pl -s clamav
External Links
- ClamAV Home
- Updating ClamAV - tnpi.net docs
- ClamAV pre-0.95 End of Life Notice