summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/mtaserver/templates/main.cf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/mtaserver/templates/main.cf.j2 b/roles/mtaserver/templates/main.cf.j2
index 51d86a9..fbea52d 100644
--- a/roles/mtaserver/templates/main.cf.j2
+++ b/roles/mtaserver/templates/main.cf.j2
@@ -96,7 +96,7 @@ mail_owner = postfix
{% if is_mtamaster is defined %}
myhostname = mail.casperlefantom.net
{% else %}
-{% if ansible_default_ipv4.network == "192.168.0.0" %}
+{% if ansible_default_ipv4.network == "192.168.0.0" or ansible_default_ipv4.network == "10.42.0.0" %}
myhostname = {{ ansible_hostname }}.home.casperlefantom.net
{% else %}
myhostname = {{ ansible_hostname }}.casperlefantom.net