Comprehensive set of default variables covering all Postfix settings: hostname, domains, TLS, SASL, virtual mailboxes, access restrictions, relay controls, and milters. Provides a documented configuration schema.
# Source: https://github.com/robertdebock/ansible-role-postfix | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
---
# defaults file for postfix
# These settings are required in postfix.
postfix_myhostname: "{{ ansible_facts['fqdn'] }}"
postfix_mydomain: "{{ ansible_facts['domain'] | default('localdomain', true) }}"
postfix_myorigin: "{{ ansible_facts['domain'] | default('localdomain', true) }}"
# To "listen" on public interfaces, set inet_interfaces to something like
# "all" or the name of the interface, such as "eth0".
postfix_inet_interfaces: "loopback-only"
# Enable IPv4, and IPv6 if supported - if IPV4 only set to ipv4
postfix_inet_protocols: all
# Set an address type prefer
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key