|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# vim: ft=yaml |
| 3 | +--- |
| 4 | +postfix: |
| 5 | + manage_master_config: true |
| 6 | + enable_service: true |
| 7 | + reload_service: true |
| 8 | + |
| 9 | + config: |
| 10 | + smtpd_banner: $myhostname ESMTP $mail_name |
| 11 | + smtp_tls_CApath: /etc/ssl/certs |
| 12 | + biff: 'no' |
| 13 | + append_dot_mydomain: 'no' |
| 14 | + readme_directory: 'no' |
| 15 | + myhostname: localhost |
| 16 | + mydestination: localhost, localhost.localdomain |
| 17 | + relayhost: '' |
| 18 | + mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 |
| 19 | + mailbox_size_limit: 0 |
| 20 | + recipient_delimiter: + |
| 21 | + inet_interfaces: 127.0.0.1 |
| 22 | + inet_protocols: all |
| 23 | + |
| 24 | + alias_maps: hash:/etc/aliases |
| 25 | + alias_database: hash:/etc/aliases |
| 26 | + |
| 27 | + smtpd_tls_session_cache_database: btree:${data_directory}/smtpd_scache |
| 28 | + smtpd_use_tls: 'yes' |
| 29 | + smtpd_sasl_auth_enable: 'yes' |
| 30 | + smtpd_sasl_type: dovecot |
| 31 | + smtpd_sasl_path: /var/run/dovecot/auth-client |
| 32 | + smtpd_recipient_restrictions: >- |
| 33 | + permit_mynetworks, |
| 34 | + permit_sasl_authenticated, |
| 35 | + reject_unauth_destination |
| 36 | + smtpd_relay_restrictions: >- |
| 37 | + permit_mynetworks, |
| 38 | + permit_sasl_authenticated, |
| 39 | + reject_unauth_destination |
| 40 | + smtpd_sasl_security_options: noanonymous |
| 41 | + smtpd_sasl_tls_security_options: $smtpd_sasl_security_options |
| 42 | + smtpd_tls_auth_only: 'yes' |
| 43 | + smtpd_sasl_local_domain: $mydomain |
| 44 | + smtpd_tls_loglevel: 1 |
| 45 | + smtpd_tls_session_cache_timeout: 3600s |
| 46 | + |
| 47 | + relay_domains: '$mydestination' |
| 48 | + |
| 49 | + # Use chain_files instead of cert/key — formula should suppress cert/key |
| 50 | + smtpd_tls_chain_files: |
| 51 | + - /etc/ssl/private/ssl-cert-snakeoil.key |
| 52 | + - /etc/ssl/certs/ssl-cert-snakeoil.pem |
| 53 | + |
| 54 | + smtp_tls_session_cache_database: btree:${data_directory}/smtp_scache |
| 55 | + |
| 56 | + aliases: |
| 57 | + use_file: false |
| 58 | + present: |
| 59 | + root: info@example.com |
| 60 | + absent: |
| 61 | + - root |
0 commit comments