1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-16 02:46:44 +02:00

Admin may not have started up when this loads

This commit is contained in:
Florent Daigniere 2022-10-25 14:43:47 +02:00
parent 95a3a3d342
commit 0f17299b4e
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -2,7 +2,7 @@ rules {
BLACKLIST_ANTISPOOF = {
valid_dmarc = 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;
}
}