## Sample smb.conf configuration file for svf-clamav ## ## You can use this file in your smb.conf as the following: ## [global] ## include = /etc/samba/smb.svf-clamav.conf vfs objects = svf-clamav ## Scan files while opening ## default: yes svf-clamav:scan on open = yes ## Scan files while closing ## default: no svf-clamav:scan on close = no ## Do not scan files larger than X bytes ## default: 100000000 (100MB) svf-clamav:max file size = 100000000 ## Do not scan files smaller than X bytes ## default: 0 svf-clamav:min file size = 10 ## What to do with an infected file ## nothing: Do nothing (default) ## quarantine: Try to move to quantine directory ## delete: Delete infected file svf-clamav:infected file action = nothing ## Where to move infected files svf-clamav:quarantine directory = /var/cache/samba/svf/quarantine ## Prefix for files in quarantine directory svf-clamav:quarantine prefix = svf. ## External command to run on an infected file is found ## default: none ;svf-clamav:infected file command = /usr/share/samba/scripts/svf-notify --mail-to virusmaster@example.com --cc "%U@example.com" --from samba@example.com --subject-prefix "Samba: Infected File: " ## External command to run on scan error ## default: none ;svf-clamav:scan error command = /usr/share/samba/scripts/svf-notify --mail-to virusmaster@example.com --from samba@example.com --subject-prefix "Samba: Scan Error: "