Postfix main.cf Jinja2 Template

ansible-role-postfix · email, jinja2-template, tls-config, sasl-auth, virtual-domains

Comprehensive Jinja2 template generating /etc/postfix/main.cf with full Postfix configuration including TLS, SASL, virtual domains, access controls, relay settings, and milter integration. Can be adapted for any Postfix deployment.

{{ ansible_managed | comment }}
# Global Postfix configuration file. This file lists only a subset
# of all parameters. For the syntax, and for a complete parameter
# list, see the postconf(5) manual page (command: "man 5 postconf").
#
# For common configuration examples, see BASIC_CONFIGURATION_README
# and STANDARD_CONFIGURATION_README. To find these documents, use
# the command "postconf html_directory readme_directory", or go to
# http://www.postfix.org/.
#
# For best results, change no more than 2-3 parameters at a time,
# and test if Postfix still works after every change.

# COMPATIBILITY
#
# The compatibility_level determines what default settings Postfix
# will use for main.cf and master.cf settings. These defaults will
# change over time.
#
# To avoid breaking things, Postfix wil

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key