4 # Make sure settings in /etc/postfix/main.cf are the same than for debconf!
6 - name: set other destinations to accept mail for (main.cf)
11 dest=/etc/postfix/main.cf
12 line="mydestination = {{ postfix_destinations }}"
13 regexp="^mydestination"
17 - name: set local networks (main.cf)
22 dest=/etc/postfix/main.cf
23 line="mynetworks = {{ postfix_local_networks }}"
28 - name: set internet protocols to use (main.cf)
33 dest=/etc/postfix/main.cf
34 line="inet_protocols = {{ postfix_protocols }}"
35 regexp="^inet_protocols"
41 - name: 'debconf(1): configure Postfix as "Satellite system"'
48 question=postfix/main_mailer_type
49 value="Satellite system"
52 - update "postfix" configuration
54 - name: 'debconf(1): set system mail name'
61 question=postfix/mailname
62 value="{{ postfix_mailname }}"
65 - update "postfix" configuration
67 - name: 'debconf(1): set SMTP relay host'
74 question=postfix/relayhost
75 value="{{ smtp_relay_host }}"
78 - update "postfix" configuration
80 - name: 'debconf(1): set root and postmaster recipient'
87 question=postfix/root_address
88 value="{{ postfix_root_address }}"
91 - update "postfix" configuration
93 - name: 'debconf(1): set other destinations to accept mail for'
100 question=postfix/destinations
101 value="{{ postfix_destinations }}"
104 - update "postfix" configuration
106 - name: 'debconf(1): set local networks'
113 question=postfix/mynetworks
114 value="{{ postfix_local_networks }}"
117 - update "postfix" configuration
119 - name: 'debconf(1): set mailbox size limit'
126 question=postfix/mailbox_limit
127 value="{{ postfix_mailbox_limit }}"
130 - update "postfix" configuration
132 - name: 'debconf(1): set local address extension character'
139 question=postfix/recipient_delim
140 value="{{ postfix_recipient_delim }}"
143 - update "postfix" configuration
145 - name: 'debconf(1): set internet protocols to use'
152 question=postfix/protocols
153 value="{{ postfix_protocols }}"
156 - update "postfix" configuration
158 - name: 'debconf(1): configure synchronous updates on mail queue'
165 question=postfix/chattr
166 value="{{ postfix_sync_updates }}"
169 - update "postfix" configuration
171 - name: install "postfix" package
180 - name: setup "/etc/mailname"
193 - name: set Posfix "myorigin"
198 dest=/etc/postfix/main.cf
200 line="myorigin = /etc/mailname"
207 - name: set Posfix "inet_interfaces"
212 dest=/etc/postfix/main.cf
213 line="inet_interfaces = {{ postfix_interfaces }}"
214 regexp="^inet_interfaces"
218 - name: ensure service "postfix" is enabled and started