1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-11-24 08:32:50 +02:00

[Rspamd] Split global wl from to mime-from and smtp-from

This commit is contained in:
andryyy 2019-01-29 12:11:10 +01:00
parent 2fedc80dfc
commit 8da54e5194
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
5 changed files with 24 additions and 4 deletions

View File

@ -0,0 +1 @@
# /.+example\.com/i

View File

@ -0,0 +1 @@
# /.+example\.com/i

View File

@ -34,17 +34,35 @@ LOCAL_BL_ASN {
symbols_set = ["LOCAL_BL_ASN"];
}
GLOBAL_FROM_WL {
GLOBAL_SMTP_FROM_WL {
type = "from";
map = "$LOCAL_CONFDIR/custom/global_from_whitelist.map";
map = "$LOCAL_CONFDIR/custom/global_smtp_from_whitelist.map";
regexp = true;
prefilter = true;
action = "accept";
}
GLOBAL_FROM_BL {
GLOBAL_SMTP_FROM_BL {
type = "from";
map = "$LOCAL_CONFDIR/custom/global_from_blacklist.map";
map = "$LOCAL_CONFDIR/custom/global_smtp_from_blacklist.map";
regexp = true;
prefilter = true;
action = "reject";
}
GLOBAL_MIME_FROM_WL {
type = "header";
header = "from";
map = "$LOCAL_CONFDIR/custom/global_mime_from_whitelist.map";
regexp = true;
prefilter = true;
action = "accept";
}
GLOBAL_MIME_FROM_BL {
type = "header";
header = "from";
map = "$LOCAL_CONFDIR/custom/global_mime_from_blacklist.map";
regexp = true;
prefilter = true;
action = "reject";