devgateway / ansible-smarthost

Configure Postfix to use smarthost for mail relaying

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smarthost

Set up mail relaying to a smarthost.

Role Variables

smhs_relay_host

FQDN of the smarthost. Also used to skip running this role on smarthost itself.

smhs_main_cf

Path to Postfix main.cf file. Defaults to /etc/postfix/main.cf.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - role: smarthost
       smhs_relay_host: mx.example.org

License

GPLv3+

Author Information

Development Gateway

About

Configure Postfix to use smarthost for mail relaying