mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
Support specifyin multiple hostnames
This commit is contained in:
parent
7e9c04cd65
commit
a57096e613
@ -23,9 +23,7 @@ BIND_ADDRESS=127.0.0.1
|
|||||||
# Main mail domain
|
# Main mail domain
|
||||||
DOMAIN=mailu.io
|
DOMAIN=mailu.io
|
||||||
|
|
||||||
# Main hostname for announces, and list of all available hostnames, separated
|
# Hostnames for this server, separated with comas
|
||||||
# by comas
|
|
||||||
HOSTNAME=mail.mailu.io
|
|
||||||
HOSTNAMES=mail.mailu.io,alternative.mailu.io,yetanother.mailu.io
|
HOSTNAMES=mail.mailu.io,alternative.mailu.io,yetanother.mailu.io
|
||||||
|
|
||||||
# Postmaster local part (will append the main mail domain)
|
# Postmaster local part (will append the main mail domain)
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block box %}
|
{% block box %}
|
||||||
|
{% let hostname = config["HOSTNAMES"].split(",")[0] %}
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
@ -28,8 +29,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>{% trans %}DNS SPF entries{% endtrans %}</th>
|
<th>{% trans %}DNS SPF entries{% endtrans %}</th>
|
||||||
<td><pre>
|
<td><pre>
|
||||||
{{ domain.name }}. 600 IN TXT "v=spf1 mx a:{{ config["HOSTNAME"] }} -all"
|
{{ domain.name }}. 600 IN TXT "v=spf1 mx a:{{ hostname }} -all"
|
||||||
{{ domain.name }}. 600 IN SPF "v=spf1 mx a:{{ config["HOSTNAME"] }} -all"</pre></td>
|
{{ domain.name }}. 600 IN SPF "v=spf1 mx a:{{ hostname }} -all"</pre></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% if domain.dkim_publickey %}
|
{% if domain.dkim_publickey %}
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
log_path = /dev/stderr
|
log_path = /dev/stderr
|
||||||
protocols = imap pop3 lmtp sieve
|
protocols = imap pop3 lmtp sieve
|
||||||
postmaster_address = {{ POSTMASTER }}@{{ DOMAIN }}
|
postmaster_address = {{ POSTMASTER }}@{{ DOMAIN }}
|
||||||
hostname = {{ HOSTNAME }}
|
hostname = {{ HOSTNAMES.split(",")[0] }}
|
||||||
mail_plugins = $mail_plugins quota
|
mail_plugins = $mail_plugins quota
|
||||||
submission_host = smtp
|
submission_host = smtp
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# Main domain and hostname
|
# Main domain and hostname
|
||||||
mydomain = {{ DOMAIN }}
|
mydomain = {{ DOMAIN }}
|
||||||
myhostname = {{ HOSTNAME }}
|
myhostname = {{ HOSTNAMES.split(",")[0] }}
|
||||||
myorigin = $mydomain
|
myorigin = $mydomain
|
||||||
|
|
||||||
# Queue location
|
# Queue location
|
||||||
|
Loading…
Reference in New Issue
Block a user