Changeset - bf96a77e88ab
[Not reviewed]
0 2 0
Branko Majic (branko) - 7 years ago 2017-04-08 17:16:20
branko@majic.rs
MAR-100: Configure mail server name for mails coming from the local server via /etc/mailname. Make sure the configured name is equivalent to the full hostname specified in ansible inventory.
2 files changed with 12 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/mail_forwarder/tasks/main.yml
Show inline comments
 
@@ -10,6 +10,12 @@
 
  copy: content="{{ smtp_relay_truststore }}" dest="/etc/ssl/certs/smtp_relay_truststore.pem"
 
        owner=root group=root mode=644
 

	
 
- name: Configure visible mail name of the system
 
  copy: content="{{ inventory_hostname }}\n" dest="/etc/mailname"
 
        owner=root group=root mode=0644
 
  notify:
 
    - Restart Postfix
 

	
 
- name: Deploy Postfix main configuration
 
  template: src="main.cf.j2" dest="/etc/postfix/main.cf"
 
  notify:
roles/mail_server/tasks/main.yml
Show inline comments
 
@@ -81,6 +81,12 @@
 
  copy: content="{{ mail_ldap_tls_truststore }}" dest="/var/spool/postfix/etc/ssl/certs/mail_ldap_tls_truststore.pem"
 
        owner=root group=root mode=644
 

	
 
- name: Configure visible mail name of the system
 
  copy: content="{{ inventory_hostname }}\n" dest="/etc/mailname"
 
        owner=root group=root mode=0644
 
  notify:
 
    - Restart Postfix
 

	
 
- name: Deploy Postfix configurations files for LDAP look-ups
 
  template: src="{{ item }}.cf.j2" dest="/etc/postfix/{{ item }}.cf" owner=root group=postfix mode=640
 
  with_items:
0 comments (0 inline, 0 general)