mail: make mail_trusted an array

This commit is contained in:
Markus 2020-05-18 19:10:32 +02:00
parent 9d6ed20d9f
commit fb215fdd82
6 changed files with 15 additions and 12 deletions

View File

@ -46,7 +46,10 @@ mail_domains:
- makerspace-regensburg.de - makerspace-regensburg.de
mail_server: mail.binary-kitchen.de mail_server: mail.binary-kitchen.de
mailman_domain: lists.binary-kitchen.de mailman_domain: lists.binary-kitchen.de
mail_trusted: 213.166.246.0/28 213.166.246.250/32 [2a02:958:0:f6::]/124 mail_trusted:
- 213.166.246.0/28
- 213.166.246.250/32
- 2a02:958:0:f6::/124
mail_aliases: mail_aliases:
- "epvpn@binary-kitchen.de noby@binary-kitchen.de" - "epvpn@binary-kitchen.de noby@binary-kitchen.de"
- "info@binary-kitchen.de vorstand@binary-kitchen.de" - "info@binary-kitchen.de vorstand@binary-kitchen.de"

View File

@ -73,7 +73,7 @@ add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
#------------------------------------------------------------- #-------------------------------------------------------------
# The default language for this server. # The default language for this server.
DEFAULT_SERVER_LANGUAGE = 'de' DEFAULT_SERVER_LANGUAGE = 'en'
#------------------------------------------------------------- #-------------------------------------------------------------
# Iirc this was used in pre 2.1, leave it for now # Iirc this was used in pre 2.1, leave it for now

View File

@ -31,8 +31,8 @@ mynetworks =
127.0.0.0/8 127.0.0.0/8
[::ffff:127.0.0.0]/104 [::ffff:127.0.0.0]/104
[::1]/128 [::1]/128
{% for cidr in mail_trusted.split(' ') %} {% for cidr in mail_trusted %}
{{ cidr }} {{ cidr | ipwrap }}
{% endfor %} {% endfor %}
# Alias configuration # Alias configuration

View File

@ -1,5 +1,5 @@
allow_username_mismatch = true; allow_username_mismatch = true;
sign_networks = [127.0.0.1, ::1, {{ mail_trusted }}]; sign_networks = [127.0.0.1, ::1, {{ mail_trusted | join(", ") }}];
check_pubkey = true; check_pubkey = true;
try_fallback = false; try_fallback = false;
path = "/var/lib/rspamd/dkim/$domain.$selector.key"; path = "/var/lib/rspamd/dkim/$domain.$selector.key";

View File

@ -1,5 +1,5 @@
allow_username_mismatch = true; allow_username_mismatch = true;
sign_networks = [127.0.0.1, ::1, {{ mail_trusted }}]; sign_networks = [127.0.0.1, ::1, {{ mail_trusted | join(", ") }}];
check_pubkey = true; check_pubkey = true;
try_fallback = false; try_fallback = false;
path = "/var/lib/rspamd/dkim/$domain.$selector.key"; path = "/var/lib/rspamd/dkim/$domain.$selector.key";

View File

@ -1 +1 @@
local_addrs = [127.0.0.1, ::1, {{ mail_trusted }}]; local_addrs = [127.0.0.1, ::1, {{ mail_trusted | join(", ") }}];