[Postfix] Configuration for master smtp.

certbot_on_virtu
_pollion 2020-05-17 13:26:50 +02:00
parent a81cf43364
commit 9f15e2115c
3 changed files with 9 additions and 5 deletions

View File

@ -0,0 +1,7 @@
postfix:
primary: true
secondary: false
public: true
dkim: true
mailman: true
titanic: false

View File

@ -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

View File

@ -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