|
187 | 187 | # A Boolean to define whether to configure Postfix as a mail transfer agent.
|
188 | 188 | # This option is mutually exclusive with the satellite Boolean.
|
189 | 189 | #
|
| 190 | +# @param mta_virtual_content |
| 191 | +# A free form string that defines the contents of the virtual file. Only used if mta is true. |
| 192 | +# This parameter is mutually exclusive with mta_virtual_source. |
| 193 | +# |
| 194 | +# @param mta_virtual_source |
| 195 | +# A String whose value is a location for the source file to be used for the virtual file. |
| 196 | +# Only used if mta is true. This parameter is mutually exclusive with mta_virtual_content. |
| 197 | +# |
| 198 | +# @param mta_transport_content |
| 199 | +# A free form string that defines the contents of the transport file. Only used if mta is true. |
| 200 | +# This parameter is mutually exclusive with mta_transport_source. |
| 201 | +# |
| 202 | +# @param mta_transport_source |
| 203 | +# A String whose value is a location for the source file to be used for the transport file. |
| 204 | +# Only used if mta is true. This parameter is mutually exclusive with mta_transport_content. |
| 205 | +# |
190 | 206 | # @param mydestination
|
191 | 207 | # A string to define the mydestination parameter in main.cf (postconf(5)).
|
192 | 208 | # Example: `example.com, foo.example.com`.
|
|
286 | 302 | Optional[Array[String[1]]] $masquerade_domains = undef,
|
287 | 303 | Optional[Array[String[1]]] $masquerade_exceptions = undef,
|
288 | 304 | Boolean $mta = false,
|
| 305 | + Optional[String] $mta_virtual_content = undef, |
| 306 | + Optional[String] $mta_virtual_source = undef, |
| 307 | + Optional[String] $mta_transport_content = undef, |
| 308 | + Optional[String] $mta_transport_source = undef, |
289 | 309 | String $mydestination = '$myhostname, localhost.$mydomain, localhost', # postfix_mydestination
|
290 | 310 | String $mynetworks = '127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128', # postfix_mynetworks
|
291 | 311 | String $myorigin = $facts['networking']['fqdn'],
|
|
371 | 391 | include postfix::ldap
|
372 | 392 | }
|
373 | 393 |
|
| 394 | + if $mta_virtual_content and $mta_virtual_source { |
| 395 | + fail('You must provide either \'mta_virtual_content\' or \'mta_virtual_source\', not both.') |
| 396 | + } |
| 397 | + |
| 398 | + if $mta_transport_content and $mta_transport_source { |
| 399 | + fail('You must provide either \'mta_transport_content\' or \'mta_transport_source\', not both.') |
| 400 | + } |
| 401 | + |
374 | 402 | if $mta {
|
375 | 403 | if $satellite {
|
376 | 404 | fail('enabling both the $mta and $satellite parameters is not supported. Please disable one.')
|
|
0 commit comments