mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
78b7f0cbea
* add sanity check for Clam size & adjusted MaxScanSize The second part is of special importance! See <https://askubuntu.com/a/1448525>, which explains that the maximum scan size is important as well. We previously just set the maximum file size, which actually is pretty insecure as we silently not scan mile bigger than `MaxScanSize`. This is corrected now. * add SlamAV size configuration to Rspamd
15 lines
334 B
Plaintext
15 lines
334 B
Plaintext
# documentation: https://rspamd.com/doc/modules/antivirus.html
|
|
|
|
enabled = false;
|
|
|
|
ClamAV {
|
|
type = "clamav";
|
|
servers = "/var/run/clamav/clamd.ctl";
|
|
action = "reject";
|
|
message = '${SCANNER} FOUND VIRUS "${VIRUS}"';
|
|
scan_mime_parts = false;
|
|
symbol = "CLAM_VIRUS";
|
|
log_clean = true;
|
|
max_size = 25000000;
|
|
}
|