https://github.com/indix/ansible-postfix
Ansible role for setting up postfix
https://github.com/indix/ansible-postfix
Last synced: 4 months ago
JSON representation
Ansible role for setting up postfix
- Host: GitHub
- URL: https://github.com/indix/ansible-postfix
- Owner: indix
- Created: 2017-01-13T07:32:47.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-18T06:39:47.000Z (almost 9 years ago)
- Last Synced: 2025-06-29T04:39:28.647Z (7 months ago)
- Size: 8.79 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/indix/ansible-postfix)
For postfix role having gather_facts is mandatory since there are few configs which rely on ansible_fqdn.
#### Examples
A simple example that doesn't use SASL relaying:
```yaml
---
- hosts: all
roles:
- postfix
vars:
postfix_aliases:
- { user: root, alias: you@yourdomain.org }
```
Provide the relay host name if you want to enable relaying:
```yaml
---
- hosts: all
roles:
- postfix
vars:
postfix_aliases:
- { user: root, alias: you@yourdomain.org }
postfix_relayhost: mail.yourdomain.org
```
For AWS SES support:
```yaml
---
- hosts: all
roles:
- postfix
vars:
postfix_aliases:
- { user: root, alias: sesverified@yourdomain.org }
postfix_relayhost: email-smtp.us-east-1.amazonaws.com
postfix_relaytls: true
# AWS IAM SES credentials (not access key):
postfix_sasl_user: AKIXXXXXXXXXXXXXXXXX
postfix_sasl_password: ASDFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
```