summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2016-04-27 16:20:47 +0100
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2016-04-27 16:20:47 +0100
commit5a10111c049228302e37d495c1a32588a7cc41f6 (patch)
treeecbc8ab4bfddcb322e4bb6d69e2fc4c974caa880
parentaff6f4e49dc532866b38d2b4a7dd6d3093bbbbd7 (diff)
downloadinfrastructure-5a10111c049228302e37d495c1a32588a7cc41f6.tar.gz
exim: Use external dns name instead of public IP address
Some servers will not let you send email using the IP Change-Id: I05eb0076921d144ad2fb72a3495ccc3fe3da7683
-rw-r--r--baserock_mail/instance-config.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/baserock_mail/instance-config.yml b/baserock_mail/instance-config.yml
index cd276df7..b3cd3999 100644
--- a/baserock_mail/instance-config.yml
+++ b/baserock_mail/instance-config.yml
@@ -7,7 +7,7 @@
sudo: yes
vars:
LOCAL_IP: 192.168.222.145
- PUBLIC_IP: 185.43.218.171
+ PUBLIC_DOMAIN_NAME: mail.baserock.org
tasks:
# Fedora provides a default /etc/exim/exim.conf. Rather than copy it and
# overwrite it, since we only need to make a few changes, I've used the
@@ -65,7 +65,7 @@
- name: set primary hostname to public IP
lineinfile:
regexp: '^#?\s+primary_hostname =.*$'
- line: 'primary_hostname = {{ PUBLIC_IP }}'
+ line: 'primary_hostname = {{ PUBLIC_DOMAIN_NAME }}'
dest: /etc/exim/exim.conf
- name: exim4 service