Admin may not have started up when this loads

main
Florent Daigniere 2 years ago
parent 95a3a3d342
commit 0f17299b4e

@ -1,11 +1,15 @@
IS_LOCAL_DOMAIN_H { IS_LOCAL_DOMAIN_H {
type = "selector" type = "selector"
selector = "from('mime'):domain"; selector = "from('mime'):domain";
map = "http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains"; map = [
"http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains",
"fallback+file:///dev/null"];
} }
IS_LOCAL_DOMAIN_E { IS_LOCAL_DOMAIN_E {
type = "selector" type = "selector"
selector = "from('smtp'):domain"; selector = "from('smtp'):domain";
map = "http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains"; map = [
"http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains",
"fallback+file:///dev/null"];
} }

@ -2,7 +2,7 @@ rules {
BLACKLIST_ANTISPOOF = { BLACKLIST_ANTISPOOF = {
valid_dmarc = true; valid_dmarc = true;
blacklist = true; blacklist = true;
domains = "http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains"; domains = ["http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains", "fallback+file:///dev/null"];
score = 0.0; score = 0.0;
} }
} }

Loading…
Cancel
Save