[Postfix] Configuration for master smtp.
							parent
							
								
									a81cf43364
								
							
						
					
					
						commit
						9f15e2115c
					
				| 
						 | 
					@ -0,0 +1,7 @@
 | 
				
			||||||
 | 
					postfix:
 | 
				
			||||||
 | 
					  primary: true
 | 
				
			||||||
 | 
					  secondary: false
 | 
				
			||||||
 | 
					  public: true
 | 
				
			||||||
 | 
					  dkim: true
 | 
				
			||||||
 | 
					  mailman: true
 | 
				
			||||||
 | 
					  titanic: false
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
#!/usr/bin/env ansible-playbook
 | 
					#!/usr/bin/env ansible-playbook
 | 
				
			||||||
# Postfix playbook
 | 
					# Postfix playbook
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
- hosts: sputnik.adm.crans.org, boeing.adm.crans.org
 | 
					- hosts: sputnik.adm.crans.org, boeing.adm.crans.org, redisdead.adm.crans.org
 | 
				
			||||||
  roles:
 | 
					  roles:
 | 
				
			||||||
    - postfix
 | 
					    - postfix
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -24,15 +24,12 @@ mydestination = {{ ansible_hostname }}, $myhostname, localhost, localhost.$mydom
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
# Domaine relaye par ce MX
 | 
					# Domaine relaye par ce MX
 | 
				
			||||||
relay_domains = $mydestination
 | 
					relay_domains = $mydestination
 | 
				
			||||||
{% if postfix.mailman %}
 | 
					{% if postfix.mailman or postfix.public %}
 | 
				
			||||||
                lists.$mydomain
 | 
					                lists.$mydomain
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% if postfix.secondary %}
 | 
					{% if postfix.secondary %}
 | 
				
			||||||
                $mydomain, crans.ens-cachan.fr, clubs.ens-cachan.fr, install-party.ens-cachan.fr, crans.fr, crans.eu
 | 
					                $mydomain, crans.ens-cachan.fr, clubs.ens-cachan.fr, install-party.ens-cachan.fr, crans.fr, crans.eu
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% if postfix.public %}
 | 
					 | 
				
			||||||
                lists.$mydomain
 | 
					 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
{% if postfix.mailman %}
 | 
					{% if postfix.mailman %}
 | 
				
			||||||
relay_recipient_maps =
 | 
					relay_recipient_maps =
 | 
				
			||||||
    hash:/var/local/re2o-services/mail-server/generated/virtual
 | 
					    hash:/var/local/re2o-services/mail-server/generated/virtual
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue