2020-07-18 18:37:57 +02:00
|
|
|
Role Name
|
|
|
|
=========
|
|
|
|
|
2020-07-18 18:46:58 +02:00
|
|
|
A role that installs and configures an instance of postfix that listens on localhost and routes messages to a relay server.
|
2020-07-18 18:37:57 +02:00
|
|
|
|
|
|
|
Role Variables
|
|
|
|
--------------
|
|
|
|
|
2020-07-18 18:46:58 +02:00
|
|
|
The most important variables are listed below:
|
|
|
|
|
|
|
|
``` yaml
|
|
|
|
postfix_relay_client: False
|
|
|
|
postfix_relay_client_do_not_stop_submission: False
|
|
|
|
postfix_biff: "no"
|
|
|
|
postfix_append_dot_mydomain: "no"
|
|
|
|
postfix_use_relay_host: True
|
|
|
|
|
|
|
|
postfix_use_letsencrypt: False
|
|
|
|
# Accepted values: none, may, encrypt
|
|
|
|
postfix_smtpd_tls_security_level: encrypt
|
|
|
|
# Accepted values: none, may, encrypt, fingerprint, verify, secure. And from 2.11: dane, dane-only
|
|
|
|
postfix_smtp_tls_security_level: encrypt
|
|
|
|
postfix_use_sasl_auth: True
|
|
|
|
postfix_smtp_sasl_auth_enable: "yes"
|
|
|
|
postfix_smtp_create_relay_user: True
|
|
|
|
# Options: noanonymous, noplaintext
|
|
|
|
postfix_smtp_sasl_security_options: noanonymous
|
|
|
|
postfix_smtp_sasl_tls_security_options: '{{ postfix_smtp_sasl_security_options }}'
|
|
|
|
postfix_smtp_sasl_mechanism_filter: plain, login
|
|
|
|
|
|
|
|
# Set it in the local rules
|
|
|
|
#postfix_relay_host: smtp-relay.example.com
|
|
|
|
postfix_relay_port: 587
|
|
|
|
postfix_default_destination_concurrency_limit: 20
|
|
|
|
#postfix_smtp_relay_user: smtp-user
|
|
|
|
postfix_smtp_relay_user: '{{ ansible_fqdn }}'
|
|
|
|
# This one has to be set inside a vault file
|
|
|
|
#postfix_smtp_relay_pwd: set_you_password_here_in_a_vault_encrypted_file
|
|
|
|
|
|
|
|
# The following options are used only whe postfix_relay_server is set to True
|
|
|
|
postfix_relay_server: False
|
|
|
|
postfix_mynetworks: hash:/etc/postfix/network_table
|
|
|
|
postfix_interfaces: all
|
|
|
|
postfix_inet_protocols: all
|
|
|
|
postfix_message_size_limit: 10240000
|
|
|
|
```
|
2020-07-18 18:37:57 +02:00
|
|
|
|
|
|
|
Dependencies
|
|
|
|
------------
|
|
|
|
|
2020-07-18 18:46:58 +02:00
|
|
|
None
|
2020-07-18 18:37:57 +02:00
|
|
|
|
|
|
|
License
|
|
|
|
-------
|
|
|
|
|
|
|
|
EUPL-1.2
|
|
|
|
|
|
|
|
Author Information
|
|
|
|
------------------
|
|
|
|
|
2020-07-18 18:46:58 +02:00
|
|
|
Andrea Dell'Amico, <andrea.dellamico@isti.cnr.it>
|