|
| 1 | +# See /usr/share/postfix/main.cf.dist for a commented, more complete version |
| 2 | + |
| 3 | + |
| 4 | +# Debian specific: Specifying a file name will cause the first |
| 5 | +# line of that file to be used as the name. The Debian default |
| 6 | +# is /etc/mailname. |
| 7 | +#myorigin = /etc/mailname |
| 8 | + |
| 9 | +smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) |
| 10 | +biff = no |
| 11 | + |
| 12 | +# appending .domain is the MUA's job. |
| 13 | +append_dot_mydomain = no |
| 14 | +append_dot_mydomain = no |
| 15 | + |
| 16 | +# Uncomment the next line to generate "delayed mail" warnings |
| 17 | +#delay_warning_time = 4h |
| 18 | + |
| 19 | +readme_directory = no |
| 20 | + |
| 21 | +# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 3.6 on |
| 22 | +# fresh installs. |
| 23 | +compatibility_level = 3.6 |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +# TLS parameters |
| 28 | +smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem |
| 29 | +smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key |
| 30 | +smtpd_tls_security_level=may |
| 31 | + |
| 32 | +smtp_tls_CApath=/etc/ssl/certs |
| 33 | +smtp_tls_security_level=may |
| 34 | +smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache |
| 35 | + |
| 36 | + |
| 37 | +smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination |
| 38 | +myhostname = {{ inventory_hostname }} |
| 39 | +alias_maps = hash:/etc/aliases |
| 40 | +alias_database = hash:/etc/aliases |
| 41 | +myorigin = /etc/mailname |
| 42 | +mydestination = $myhostname, localhost |
| 43 | +relayhost = {{ mailman3_relayhost }} |
| 44 | +mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 |
| 45 | +mailbox_size_limit = 0 |
| 46 | +recipient_delimiter = + |
| 47 | +inet_interfaces = all |
| 48 | +inet_protocols = all |
| 49 | + |
| 50 | +smtp_sasl_auth_enable = yes |
| 51 | +smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd |
| 52 | +smtp_sasl_security_options = noanonymous |
| 53 | +#smtp_sasl_tls_security_options = noanonymous |
| 54 | +smtp_sasl_mechanism_filter = AUTH LOGIN |
| 55 | +permit_sasl_authenticated = defer_unauth_destinations |
| 56 | + |
| 57 | +transport_maps = hash:/var/lib/mailman3/data/postfix_lmtp |
| 58 | +local_recipient_maps = hash:/var/lib/mailman3/data/postfix_lmtp |
| 59 | +relay_domains = hash:/var/lib/mailman3/data/postfix_domains |
0 commit comments