contentfilter:scanner

Configure the content filter scanner backend settings.

warden --task=contentfilter:scanner
Option
Value Default Description
--av_scanners <string> ['ClamAV-clamd', \&ask_daemon, ["CONTSCAN {}\n", "/run/clamd.scan/clamd.sock"], qr/\bOK$/m, qr/\bFOUND$/m, qr/^.?: (?!Infected Archive)(.) FOUND$/m ] The list of primary anti-virus scanners (comma separated).
--av_scanners_add <string> Add a single entry to av_scanners.
--av_scanners_del <string> Remove a single entry from av_scanners.
--av_scanners_backup <string> ['ClamAV-clamscan', 'clamscan', "--stdout --no-summary -r --tempdir=$TEMPBASE {}", [0], qr/:.\sFOUND$/m, qr/^.?: (?!Infected Archive)(.*) FOUND$/m ] The list of backup anti-virus scanners to use if the primary scanners fail (comma separated). Note: ClamAV-clamscan is not suitable as a backup scanner on busy servers because the ClamAV signatures have to be loaded into memory for every scan therefor we recommend that admins set the anti-virus scanners backup to none to disable the backup scanner if you are sending large amounts of mail.
--av_scanners_backup_add <string> Add a single entry to av_scanners_backup.
--av_scanners_backup_del <string> Remove a single entry from av_scanners_backup.
--banned_rules <string> 'DEFAULT' => $banned_filename_re The list of banned rules (comma separated). Added rules will be accessible under the server, domain, and mailbox level policies. The 'DEFAULT' => $banned_filename_re rule rule points to the global amavisd.conf banned rules and should be included at all times.
--banned_rules_add <string> Add a single entry to banned_rules.
--banned_rules_del <string> Remove a single entry from banned_rules.
--default <yes> Reset all settings to their default values.
--default_option <option> Reset a specific setting to its default value.
--reload <yes> Reload the service after saving settings.

Examples

// set the banned_rules
| warden --task=contentfilter:scanner --banned_rules=''\''ALLOW_MS_OFFICE'\'' => new_RE([qr'\''.\.(doc | docx | xls | xlsx | ppt | pptx)$'\''i => 0]), '\''DEFAULT'\'' => $banned_filename_re' --reload=yes |

// reset the banned_rules to default
warden --task=contentfilter:scanner --default_option=banned_rules --reload=yes

// reset all settings to defaults
warden --task=contentfilter:scanner --default=yes --reload=yes