1# Please don't modify this file as your changes might be overwritten with 2# the next update. 3# 4# You can modify 'local.d/external_services.conf' to add and merge 5# parameters defined inside this section 6# 7# You can modify 'override.d/external_services.conf' to strictly override all 8# parameters defined inside this section 9# 10# See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories 11# for details 12# 13# Module documentation can be found at https://rspamd.com/doc/modules/external_services.html 14 15external_services { 16 oletools { 17 # If set force this action if any virus is found (default unset: no action is forced) 18 # action = "reject"; 19 # If set, then rejection message is set to this value (mention single quotes) 20 # If `max_size` is set, messages > n bytes in size are not scanned 21 # max_size = 20000000; 22 # log_clean = true; 23 # servers = "127.0.0.1:10050"; 24 # cache_expire = 86400; 25 # scan_mime_parts = true; 26 # extended = false; 27 # if `patterns` is specified virus name will be matched against provided regexes and the related 28 # symbol will be yielded if a match is found. If no match is found, default symbol is yielded. 29 patterns { 30 # symbol_name = "pattern"; 31 } 32 # mime-part regex matching in content-type or filename 33 mime_parts_filter_regex { 34 #GEN1 = "application\/octet-stream"; 35 DOC2 = "application\/msword"; 36 DOC3 = "application\/vnd\.ms-word.*"; 37 XLS = "application\/vnd\.ms-excel.*"; 38 PPT = "application\/vnd\.ms-powerpoint.*"; 39 GEN2 = "application\/vnd\.openxmlformats-officedocument.*"; 40 } 41 # Mime-Part filename extension matching (no regex) 42 mime_parts_filter_ext { 43 doc = "doc"; 44 dot = "dot"; 45 docx = "docx"; 46 dotx = "dotx"; 47 docm = "docm"; 48 dotm = "dotm"; 49 xls = "xls"; 50 xlt = "xlt"; 51 xla = "xla"; 52 xlsx = "xlsx"; 53 xltx = "xltx"; 54 xlsm = "xlsm"; 55 xltm = "xltm"; 56 xlam = "xlam"; 57 xlsb = "xlsb"; 58 ppt = "ppt"; 59 pot = "pot"; 60 pps = "pps"; 61 ppa = "ppa"; 62 pptx = "pptx"; 63 potx = "potx"; 64 ppsx = "ppsx"; 65 ppam = "ppam"; 66 pptm = "pptm"; 67 potm = "potm"; 68 ppsm = "ppsm"; 69 } 70 # `whitelist` points to a map of IP addresses. Mail from these addresses is not scanned. 71 whitelist = "/etc/rspamd/antivirus.wl"; 72 } 73 dcc { 74 # If set force this action if any virus is found (default unset: no action is forced) 75 # action = "reject"; 76 # If set, then rejection message is set to this value (mention single quotes) 77 # If `max_size` is set, messages > n bytes in size are not scanned 78 max_size = 20000000; 79 #servers = "127.0.0.1:10045"; 80 # if `patterns` is specified virus name will be matched against provided regexes and the related 81 # symbol will be yielded if a match is found. If no match is found, default symbol is yielded. 82 patterns { 83 # symbol_name = "pattern"; 84 } 85 # `whitelist` points to a map of IP addresses. Mail from these addresses is not scanned. 86 whitelist = "/etc/rspamd/antivirus.wl"; 87 } 88 89 .include(try=true,priority=5) "${DBDIR}/dynamic/external_services.conf" 90 .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/external_services.conf" 91 .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/external_services.conf" 92} 93