Revert "Admin may not have started up when this loads"

This reverts commit 0f17299b4e.
main
Florent Daigniere 2 years ago
parent 0f17299b4e
commit d8cf0c3848

@ -1,15 +1,11 @@
IS_LOCAL_DOMAIN_H { IS_LOCAL_DOMAIN_H {
type = "selector" type = "selector"
selector = "from('mime'):domain"; selector = "from('mime'):domain";
map = [ map = "http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains";
"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 = [ map = "http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains";
"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", "fallback+file:///dev/null"]; domains = "http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains";
score = 0.0; score = 0.0;
} }
} }

Loading…
Cancel
Save