Skip to content

geerlingguy/ansible-role-postfix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fb42d81 · Jan 31, 2025

History

50 Commits
Dec 13, 2024
Oct 1, 2018
Jan 4, 2018
Jun 23, 2023
Jan 30, 2025
Aug 21, 2020
Feb 22, 2021
Feb 22, 2021
Jul 10, 2023
Mar 31, 2017
Jan 31, 2025

Repository files navigation

Ansible Role: Postfix

CI

Installs postfix on RedHat/CentOS or Debian/Ubuntu.

Requirements

If you're using this as an SMTP relay server, you will need to do that on your own, and open TCP port 25 in your server firewall.

Role Variables

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

postfix_config_file: /etc/postfix/main.cf

The path to the Postfix main.cf configuration file.

postfix_service_state: started
postfix_service_enabled: true

The state in which the Postfix service should be after this role runs, and whether to enable the service on startup.

postfix_inet_interfaces: localhost
postfix_inet_protocols: all

Options for values inet_interfaces and inet_protocols in the main.cf file.

Dependencies

None.

Example Playbook

- hosts: all
  roles:
    - geerlingguy.postfix

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.