https://github.com/acromedia/ansible-role-postfix
Install postfix so websites (and the server itself) can send out email
https://github.com/acromedia/ansible-role-postfix
Last synced: 5 months ago
JSON representation
Install postfix so websites (and the server itself) can send out email
- Host: GitHub
- URL: https://github.com/acromedia/ansible-role-postfix
- Owner: AcroMedia
- License: gpl-3.0
- Created: 2018-11-08T16:59:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T06:21:12.000Z (over 3 years ago)
- Last Synced: 2024-04-14T12:47:51.849Z (about 2 years ago)
- Language: Jinja
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible role: Postfix

Install and configure postfix on an Ubuntu or Redhat server.
Primarily for use in hosting environments so a website can deliver mail via 127.0.0.1.
## Requirements
* Redhat or Ubuntu
* Your playbook must gather_facts
## Role Variables
* default_mail_recipient: The email address of the person who should receive mail for root (stuff that was generated by the server; ie cron failure notifications)
For servers that accept incoming mail:
* postfix_tls_cert: Absolute path to the TLS public certificate
* postfix_tls_key: Absolute path to the TLS private key
For systems behind a load balancer:
* postfix_myhostname: In some cases, ansible won't be able to figure out what to use for this, so you'll need to specify it manually
Tweaks: These only get applied if your playbook specifies them. Otherwise, the defaults for these are left up to your OS.
* postfix_inet_interfaces: Defaults to "all" on debian, and "localhost" on red hat.
* postfix_mynetworks: Default for both OS's is only to trust localhost.
* Set 'enable_resolv_conf_watcher' to 'true' if postfix is having issues with resolving DNS.
## Dependencies
None
## Example Playbook
---
- hosts: servers
roles:
- name: Install postfix
role: acromedia.postfix
default_mail_recipient: webmaster@example.com
## License
GPLv3
## Author Information
Acro Media Inc.
https://www.acromedia.com/