aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2018-02-21 15:08:00 +0000
committerPascal Terjan <pterjan@mageia.org>2018-02-21 15:08:00 +0000
commit28cb8882f2ab3ef3c7c2f523fd9595f32c35827f (patch)
tree44cb45984ab79d05a61114d24ab847492b6e37c2 /modules
parentc295c27b9a4505806b649f0d242ec86abe2937f8 (diff)
downloadpuppet-28cb8882f2ab3ef3c7c2f523fd9595f32c35827f.tar
puppet-28cb8882f2ab3ef3c7c2f523fd9595f32c35827f.tar.gz
puppet-28cb8882f2ab3ef3c7c2f523fd9595f32c35827f.tar.bz2
puppet-28cb8882f2ab3ef3c7c2f523fd9595f32c35827f.tar.xz
puppet-28cb8882f2ab3ef3c7c2f523fd9595f32c35827f.zip
Deliver emails over IPv4 from neru, it doesn't have a v6 reverse :(
Diffstat (limited to 'modules')
-rw-r--r--modules/postfix/templates/main.cf5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/postfix/templates/main.cf b/modules/postfix/templates/main.cf
index 3676d5ad..2c7408c6 100644
--- a/modules/postfix/templates/main.cf
+++ b/modules/postfix/templates/main.cf
@@ -37,6 +37,11 @@ inet_interfaces = all
<% end %>
inet_protocols = all
+<% if @hostname == 'neru' then %>
+# We do not have a reverse on ipv6 :(
+smtp_address_preference = ipv4
+<%- end -%>
+
# FIXME Do not hardcode this
mynetworks = 212.85.158.144/28 [2a02:2178:2:7::]/64 127.0.0.1 163.172.148.228 [2001:bc8:4400:2800::4115]
myhostname = <%= fqdn %>