Go to file
phil 8c79f8b687 Use Ansible defaults to insert comments
Enable vscodium code highlighting for some files
2024-03-27 17:39:16 +01:00
defaults Add missing variables 2023-11-08 09:03:26 +01:00
files Configure restart behaviour 2023-11-19 19:26:40 +01:00
handlers Restart postfix service via systemd 2023-11-03 21:37:22 +01:00
meta Initial commit 2023-03-20 20:01:04 +01:00
tasks Use Ansible defaults to insert comments 2024-03-27 17:39:16 +01:00
templates Use Ansible defaults to insert comments 2024-03-27 17:39:16 +01:00
.gitignore Add gitignore file 2023-06-11 09:38:41 +02:00
README.md Make Mail-TLS-Helper optional 2024-01-14 10:42:47 +01:00


Use this role to setup a Postfix mail server. It comes with the following additions:

General type of mail server configuration

You can select via the variable postfix_type a pre-defined set of configuraion options that best meets your needs.

  • internet: Mail is send received directly using SMTP. TLS is enabled.
  • internal: Mail is sent to another machine on the same network for delivery. TLS is disabled. Only listens on port 25.



Variable Value Default Note
postfix_type str internet Determines how to setup Postfix. Choose internet or internal

Scope: misc

Variable Value Default Note
unbound_install bool True if you whish to install unbound
postfix_onionmx bool True to setup OnionMX delivery
postfix_tls_herlp bool True to setup Mail-TLS-Helper
postfix_mydestination List List with hostnames
postfix_mynetworks List List with network addresses

Scope: submission

Variable Value Default Note
postfix_submission bool Set True to configure submission port settings
postfix_submission_smtpd_tls_cert_file string Path to TLS cert file
postfix_submission_smtpd_tls_key_file string Path to TLS key file
postfix_submission_non_tls_port int Port number for an additional (internal) submission port without TLS

Scope: SASL Auth

Variable Value Default Note
postfix_smtpd_sasl_type string
postfix_smtpd_sasl_path string
postfix_smtp_sasl_auth_enabled bool no
postfix_smtp_sasl_auth_relay string Relay server which provides SASL-Auth
postfix_smtp_sasl_auth_user string Username for SASL authentication
postfix_smtp_sasl_auth_password string Password for SASL authenticatio