6 - name: 'debconf(1): configure Postfix as "Satellite system"'
13 question=postfix/main_mailer_type
14 value="Satellite system"
17 - update "postfix" configuration
19 - name: 'debconf(1): set system mail name'
26 question=postfix/mailname
27 value="{{ postfix_mailname }}"
30 - update "postfix" configuration
32 - name: 'debconf(1): set SMTP relay host'
39 question=postfix/relayhost
40 value="{{ smtp_relay_host }}"
43 - update "postfix" configuration
45 - name: 'debconf(1): set root and postmaster recipient'
52 question=postfix/root_address
53 value="{{ postfix_root_address }}"
56 - update "postfix" configuration
58 - name: 'debconf(1): set other destinations to accept mail for'
65 question=postfix/destinations
66 value="{{ postfix_destinations }}"
69 - update "postfix" configuration
71 - name: 'debconf(1): set local networks'
78 question=postfix/mynetworks
79 value="{{ postfix_local_networks }}"
82 - update "postfix" configuration
84 - name: 'debconf(1): set mailbox size limit'
91 question=postfix/mailbox_limit
92 value="{{ postfix_mailbox_limit }}"
95 - update "postfix" configuration
97 - name: 'debconf(1): set local address extension character'
104 question=postfix/recipient_delim
105 value="{{ postfix_recipient_delim }}"
108 - update "postfix" configuration
110 - name: 'debconf(1): set internet protocols to use'
117 question=postfix/protocols
118 value="{{ postfix_protocols }}"
121 - update "postfix" configuration
123 - name: 'debconf(1): configure synchronous updates on mail queue'
130 question=postfix/chattr
131 value="{{ postfix_sync_updates }}"
134 - update "postfix" configuration
136 # Install Debian package ...
138 - name: install "postfix" package
147 # Update configuration files
149 - name: setup "/etc/mailname"
162 # Make sure settings in /etc/postfix/main.cf are the same than for debconf!
164 - name: set other destinations to accept mail for (main.cf)
169 dest=/etc/postfix/main.cf
170 line="mydestination = {{ postfix_destinations }}"
171 regexp="^mydestination"
175 - name: set local networks (main.cf)
180 dest=/etc/postfix/main.cf
181 line="mynetworks = {{ postfix_local_networks }}"
186 - name: set internet protocols to use (main.cf)
191 dest=/etc/postfix/main.cf
192 line="inet_protocols = {{ postfix_protocols }}"
193 regexp="^inet_protocols"
197 - name: set Posfix "myorigin"
202 dest=/etc/postfix/main.cf
204 line="myorigin = /etc/mailname"
211 - name: set Posfix "inet_interfaces"
216 dest=/etc/postfix/main.cf
217 line="inet_interfaces = {{ postfix_interfaces }}"
218 regexp="^inet_interfaces"
224 - name: ensure service "postfix" is enabled and started