Ansible role to install and configure postfix on various linux systems.
I am in the process of transferring this role to a collection and will therefore no longer process any issues or merge requests here.
However, I will include them in the collection!
Please be patient until I have completed the work!
upstream documentation
postfix deprecations
Ansible Collections
ansible-galaxy collection install bodsch.core
or
ansible-galaxy collection install --requirements-file collections.yml
Tested on
- Arch Linux
- ArtixLinux
- Debian based
- Debian 10 / 11 / 12
- Ubuntu 20.04 / 22.04
postfix_hostname: "{{ ansible_fqdn }}"
postfix_mailname: "{{ ansible_fqdn }}"
postfix_myorigin: "{{ postfix_mailname_file }}"
postfix_delay_warning_time: ''
postfix_compatibility_level: 'auto'
postfix_aliases: []
postfix_mydestinations:
- $myhostname
- "{{ postfix_hostname }}"
- localdomain
- localhost
- localhost.localdomain
postfix_mynetworks:
- 127.0.0.0/8
# /etc/postfix/main.cf
postfix_disable_vrfy_command: true
- alias
- default
- header
- inet
- mailbox
- maillog
- message
- postscreen
- proxy
- queue
- recipient
- reject
- relay
- sender
- smtp
- smtpd
- tls
- transport
- virtual_backends
- virtual
To manage the master.cf
via the role, this feature must be explicitly enabled:
postfix_handle_mastercf: true
To learn more about the configuration of master.cf
, please read the extended documentation.
Please read Contribution
The master
Branch is my Working Horse includes the "latest, hot shit" and can be complete broken!
If you want to use something stable, please use a Tagged Version!
- Bodo Schulz
FREE SOFTWARE, HELL YEAH!