diff --git a/templates/main.cf.j2 b/templates/main.cf.j2 deleted file mode 100644 index f77b0a07aea1365c3b0b222dbce435d0510f3a81..0000000000000000000000000000000000000000 --- a/templates/main.cf.j2 +++ /dev/null @@ -1,62 +0,0 @@ -# {{ ansible_managed }} - -# See /usr/share/postfix/main.cf.dist for a commented, more complete version - -{% if 'debian' == ansible_os_family | lower %} -# Debian specific: Specifying a file name will cause the first -# line of that file to be used as the name. The Debian default -# is /etc/mailname. -myorigin = {{ postfix__myorigin | default('/etc/mailname', true) }} -{% else %} -myorigin = {{ postfix__myorigin | default('$myhostname', true) }} -{% endif %} - -smtpd_banner = {{ postfix__smtpd_banner }} -biff = {{ 'yes' if postfix__biff else 'no' }} - -# appending .domain is the MUA's job. -append_dot_mydomain = {{ 'yes' if postfix__append_dot_mydomain else 'no' }} - -# Uncomment the next line to generate "delayed mail" warnings -{% if postfix__generate_delayed_mail_warnings %} -delay_warning_time = {{ postfix__delay_warning_time }} -{% else %} -#delay_warning_time = {{ postfix__delay_warning_time }} -{% endif %} - -readme_directory = {{ 'yes' if postfix__readme_directory else 'no' }} - -# TLS parameters -smtpd_tls_cert_file = {{ postfix__smtpd_tls_cert_file }} -smtpd_tls_key_file = {{ postfix__smtpd_tls_key_file }} -smtpd_use_tls = {{ 'yes' if postfix__smtpd_use_tls else 'no' }} -smtpd_tls_session_cache_database = {{ postfix__smtpd_tls_session_cache_database }} -smtp_tls_session_cache_database = {{ postfix__smtp_tls_session_cache_database }} - -{% if postfix__transport_map %} -# Transport map(s) -transport_maps = hash:/etc/postfix/transport -{% endif %} - -{% if postfix__smtp_sasl_password_map %} -# SASL authentication -smtp_sasl_auth_enable = {{ 'yes' if postfix__smtp_sasl_auth_enable else 'no' }} -smtp_sasl_security_options = {{ postfix__smtp_sasl_security_options }} -smtp_sasl_tls_security_options = {{ postfix__smtp_sasl_tls_security_options }} -smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd -{% endif %} - -# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for -# information on enabling SSL in the smtp client. - -smtpd_relay_restrictions = {{ postfix__smtpd_relay_restrictions }} -myhostname = {{ postfix__myhostname }} -alias_maps = {{ postfix__alias_maps }} -alias_database = {{ postfix__alias_database }} -mydestination = {{ postfix__mydestination }} -relayhost = {{ postfix__relayhost }} -mynetworks = {{ postfix__mynetworks }} -mailbox_size_limit = {{ postfix__mailbox_size_limit }} -recipient_delimiter = {{ postfix__recipient_delimiter }} -inet_interfaces = {{ postfix__inet_interfaces }} -inet_protocols = {{ postfix__inet_protocols }}