Skip to content
Snippets Groups Projects
Verified Commit e48a440b authored by me5na7qbjqbrp's avatar me5na7qbjqbrp
Browse files

Install postfix on mailman3 vm

parent ed40b871
No related branches found
No related tags found
Loading
......@@ -6,7 +6,7 @@
# All other servers uses nullmailer to send local mail to Crans SMTP.
# Redirect local mail to mailserver
- hosts: crans_server,!redisdead.adm.crans.org,!soyouz.adm.crans.org,!titanic.adm.crans.org,!boeing.adm.crans.org,!sputnik.adm.crans.org,!zamok.adm.crans.org
- hosts: crans_server,!redisdead.adm.crans.org,!soyouz.adm.crans.org,!titanic.adm.crans.org,!boeing.adm.crans.org,!sputnik.adm.crans.org,!zamok.adm.crans.org,!mailman.adm.crans.org
vars:
mail_root: root@crans.org
mail_snmp_server: smtp.adm.crans.org
......
......@@ -35,3 +35,4 @@
web_domain: "mailman.crans.org"
roles:
- mailman3
- postfix-mailman3
---
- name: Restart postfix
service:
name: postfix
state: restarted
---
- name: Install postfix
apt:
update_cache: true
name:
- postfix
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Deploy postfix configuration
template:
src: "postfix/{{ item }}.j2"
dest: "/etc/postfix/{{ item }}"
mode: 0644
owner: root
group: root
loop: []
# - main.cf
# - master.cf
# - transport
# - mime_header_checks
# - recipient_access
# - sender_login_maps
# - postscreen_access.cidr
# - sasl/smtpd.conf
# - client_checks
notify: Restart postfix
- name: Indicate role in motd
template:
src: update-motd.d/05-postfix-mailman.j2
dest: /etc/update-motd.d/05-postfix-mailman
mode: 0755
#!/usr/bin/tail +14
{{ ansible_header | comment }}
> Postfix pour Mailman3 a été déployé sur cette machine. Voir /etc/postfix/.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment