Virus Protection - Unix Specific Instructions.
For unix we recommend
CLAMAV as the primary scanner, it's easy to install on most unix
systems and gives a good broad protection.
The settings below are an example, the auto configure button in
the web admin virus page should configure surgemail correctly but
you must manually install CLAMAV yourself first (See below)
CLAMAV Settings.
These will be set in surgemail.ini by the auto config button: (path
to clamdscan may vary)
g_virus_cmd "/usr/local/bin/clamdscan --stdout
--no-summary --remove $FILE$"
g_virus_cmd_codes "1"
g_virus_strangers "true"
CLAMAV Installation
On most modern systems you can install clamav by typing:
sudo apt-get -install clamav clamav-daemon
clamdscan
That should be all you need to do, then use the auto configure
inside surgemail's virus page to set surgemails settings and test
it.
If that doesn't work check this page for Operating System Specific
packages for most versions of linux, or if all else fails you can
follow the build from source instructions:
https://www.clamav.net/documents/installing-clamav
Optional setting
You may also wish to use
our cloud based scanner to enhance clamav scanning.
g_virus_cloud "true"
Note that this setting sends samples of attachments from your
server to our cloud server for analysis, the samples are never
stored/kept after scanning. Only a subset of suspect high
risk messages are scanned this way. This setting should not
be used on large servers with more than 1000 users. For
large high volume servers you may consider it worthwhile to use a
third party scanner instead, see below.
Third party scanners for linux
You may wish to use the scanning avast linux scanner, there is an
additional license fee for this, use these settings:
g_virus_cmd "\bin\scan $FILE$"
g_virus_cmd_codes "1"
Download link: https://www.avast.com/linux-server-antivirus