# symbol will be yielded if a match is found. If no match is found, default symbol is yielded.
patterns {
# symbol_name = "pattern";
- JUST_EICAR = "^Eicar-Test-Signature$";
+ JUST_EICAR = '^Eicar-Test-Signature$';
}
# `whitelist` points to a map of IP addresses. Mail from these addresses is not scanned.
whitelist = "/etc/rspamd/antivirus.wl";
sender_from_regexp {
type = "header";
header = "from";
- filter = "regexp:/.*@/";
+ filter = 'regexp:/.*@/';
map = "file:///tmp/from_re.map";
symbol = "SENDER_FROM_REGEXP";
}
}
url_tld_re {
type = "url";
- filter = "tld:regexp:/\.[^.]+$/"; # Extracts the last component of URL
+ filter = 'tld:regexp:/\.[^.]+$/'; # Extracts the last component of URL
map = "file:///tmp/url.map";
symbol = "URL_MAP_RE";
}