You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, right now you can use "clamd" in Virus Scanners directive to use ClamAV antivirus, aditionally you can set "Clamd Socket" and "Clamd Port" directives, but this only work if clamav is installed in the same server as MailScanner.
This Feature request improves this system adding the possibility to use a REMOTE CLAMAV INSTALLATION, this can be useful if your MailScanner installation is in a low spec server and you cannot use clamav unofficial signatures to catch spam and virus because of system resources.
¿Why? SweepViruses.pm file where the AV logic is writen uses direct socket connection with clamd exec, but passes the file or directory(target) parameter assuming files are in local system, if you configure a remote ClamAV installation server and set the ip address in SOCKET and PORT directives, you will always get an error because remote server cannot access the target parameter(files or directory).
This feature can be added in two ways:
1. Upgrade the SweepViruses.pm logic to use INSTREAM clamd command instead of CONTSCAN or MULTISCAN
this way you can use local/remote server because MailScanner will always STREAM target data to clamd.
CONS of this method is you cant use MULTISTREAM (Clamd Use Threads directive).
2. Add a new AV wrapper called clamdscan with his respective SweepViruses.pm logic
clamdscan is installed by default with clamav and uses the clamd exec to scan, you can pass a custom settings(clamd.conf) file every time you call it, in this custom clamd.conf you can set the remote IP and Port.
clamdscan supports scan using Threads on remote and local AV server with --multiscan parameter.
clamdscan can scan both folders or files using remote or local AV server.
clamdscan output verbose is the same as other clamAV tools like clamscan or clamd
Example of clamdscan command that scans with remote AV server specified in clamd_remote.conf:
I'm not a bash programmer but i think this is a simple addition with a lot of benefits for MailScanner users, if some MailScanner dev wants to do the changes i can help with testing and all needings, i already have a configured AV Server.
¡Hope we implement this! and sorry english is not my first language.
Regards!
The text was updated successfully, but these errors were encountered:
Hello, right now you can use "clamd" in Virus Scanners directive to use ClamAV antivirus, aditionally you can set "Clamd Socket" and "Clamd Port" directives, but this only work if clamav is installed in the same server as MailScanner.
This Feature request improves this system adding the possibility to use a REMOTE CLAMAV INSTALLATION, this can be useful if your MailScanner installation is in a low spec server and you cannot use clamav unofficial signatures to catch spam and virus because of system resources.
¿Why? SweepViruses.pm file where the AV logic is writen uses direct socket connection with clamd exec, but passes the file or directory(target) parameter assuming files are in local system, if you configure a remote ClamAV installation server and set the ip address in SOCKET and PORT directives, you will always get an error because remote server cannot access the target parameter(files or directory).
This feature can be added in two ways:
1. Upgrade the SweepViruses.pm logic to use INSTREAM clamd command instead of CONTSCAN or MULTISCAN
this way you can use local/remote server because MailScanner will always STREAM target data to clamd.
CONS of this method is you cant use MULTISTREAM (Clamd Use Threads directive).
More info about INSTREAM clamd command: https://linux.die.net/man/8/clamd
2. Add a new AV wrapper called clamdscan with his respective SweepViruses.pm logic
clamdscan is installed by default with clamav and uses the clamd exec to scan, you can pass a custom settings(clamd.conf) file every time you call it, in this custom clamd.conf you can set the remote IP and Port.
Example of clamdscan command that scans with remote AV server specified in clamd_remote.conf:
clamdscan --multiscan --config-file=/etc/clamav/clamd_remote.conf folder/
More info about clamdscan parameters: https://linux.die.net/man/1/clamdscan
I'm not a bash programmer but i think this is a simple addition with a lot of benefits for MailScanner users, if some MailScanner dev wants to do the changes i can help with testing and all needings, i already have a configured AV Server.
¡Hope we implement this! and sorry english is not my first language.
Regards!
The text was updated successfully, but these errors were encountered: