An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Ansible role: Postfix

![.github/workflows/molecule.yml](https://github.com/AcroMedia/ansible-role-postfix/workflows/.github/workflows/molecule.yml/badge.svg)

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/