mrleerkotte.postfix-relay

Ansible Role: postfix-relay

This role installs postfix and configures it to relay mail to a host.

Requirements

Set the postfix_relay_host variable to point to your smarthost.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

postfix_relay_host: ""

Specify the host to relay mail on to.

postfix_relay_tls: false

Specify whether to use SMTP over TLS or not.

postfix_rewrite_from: false

Specify whether to enable from address rewriting, defaults to false.

postfix_rewrite_from_map: "/etc/postfix/generic"

Specify the location of the from address rewrite map.

postfix_rewrite_from_address: "[email protected]"

Specify the email address to use for from address rewriting.

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
     - { role: mrleerkotte.postfix-relay, postfix_relay_host: "<your smarthost>" }

License

BSD-3

Author Information

This role was created in 2017 by Marlon Leerkotte.

About

Configure Postfix to relay mail

Install
ansible-galaxy install mrleerkotte.postfix-relay
GitHub repository
License
bsd-3-clause
Downloads
132