diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-04-27 16:20:47 +0100 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-04-27 16:20:47 +0100 |
commit | 5a10111c049228302e37d495c1a32588a7cc41f6 (patch) | |
tree | ecbc8ab4bfddcb322e4bb6d69e2fc4c974caa880 /baserock_mail | |
parent | aff6f4e49dc532866b38d2b4a7dd6d3093bbbbd7 (diff) | |
download | infrastructure-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
Diffstat (limited to 'baserock_mail')
-rw-r--r-- | baserock_mail/instance-config.yml | 4 |
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 |