|
Olav Reinert |
d91308 |
{% if salt['grains.get']('include_secrets', True) %}
|
|
Olav Reinert |
d91308 |
include:
|
|
Olav Reinert |
d91308 |
- secrets.role.mailserver
|
|
Olav Reinert |
d91308 |
{% endif %}
|
|
Olav Reinert |
d91308 |
|
|
Olav Reinert |
d91308 |
|
|
Olav Reinert |
9c01e4 |
profile:
|
|
Olav Reinert |
d91308 |
mailserver:
|
|
Olav Reinert |
d91308 |
members:
|
|
Olav Reinert |
d91308 |
user: 'mbr_postfix'
|
|
Olav Reinert |
9c01e4 |
postfix:
|
|
Olav Reinert |
9c01e4 |
aliases:
|
|
Olav Reinert |
9c01e4 |
root: admin-auto@opensuse.org
|
|
Olav Reinert |
9c01e4 |
maincf:
|
|
Olav Reinert |
9c01e4 |
relayhost: ''
|
|
Olav Reinert |
9c01e4 |
recipient_delimiter: '+'
|
|
Olav Reinert |
9c01e4 |
smtpd_banner: '$myhostname ESMTP $mail_name ($mail_version)'
|
|
Olav Reinert |
9c01e4 |
delay_warning_time: '0h'
|
|
Olav Reinert |
9c01e4 |
inet_interfaces: 'all'
|
|
Olav Reinert |
9c01e4 |
mydestination: '$myhostname, localhost.$mydomain'
|
|
Olav Reinert |
9c01e4 |
myhostname: '{{grains.host}}.opensuse.org'
|
|
Olav Reinert |
4abf44 |
mynetworks_style: 'subnet'
|
|
Olav Reinert |
9c01e4 |
alias_maps: ''
|
|
Olav Reinert |
9c01e4 |
canonical_maps: ''
|
|
Olav Reinert |
9c01e4 |
relocated_maps: ''
|
|
Olav Reinert |
9c01e4 |
transport_maps: 'lmdb:/etc/postfix/transport,lmdb:/etc/postfix/ratelimit'
|
|
Olav Reinert |
9c01e4 |
message_size_limit: 10000000
|
|
Olav Reinert |
9c01e4 |
strict_rfc821_envelopes: 'no'
|
|
Olav Reinert |
9c01e4 |
smtpd_client_restrictions: ''
|
|
Olav Reinert |
9c01e4 |
smtpd_helo_restrictions: ''
|
|
Olav Reinert |
e13367 |
smtpd_sender_restrictions: 'check_sender_access lmdb:/etc/postfix/manually-blocked-users,permit'
|
|
Olav Reinert |
9c01e4 |
smtpd_recipient_restrictions: >
|
|
Olav Reinert |
9c01e4 |
reject_unauth_destination,
|
|
Olav Reinert |
9c01e4 |
reject_non_fqdn_sender,
|
|
Olav Reinert |
9c01e4 |
reject_non_fqdn_recipient,
|
|
Olav Reinert |
9c01e4 |
reject_unknown_sender_domain,
|
|
Olav Reinert |
9c01e4 |
reject_invalid_hostname,
|
|
Olav Reinert |
9c01e4 |
check_recipient_access pcre:/etc/postfix/bounce-old-mlmmj.pcre,
|
|
Olav Reinert |
9c01e4 |
check_helo_access pcre:/etc/postfix/greylist_helos.pcre,
|
|
Olav Reinert |
9c01e4 |
check_client_access pcre:/etc/postfix/suspicious_client.pcre,
|
|
Olav Reinert |
9c01e4 |
check_recipient_access lmdb:/etc/postfix/handling_special_recipients,
|
|
Olav Reinert |
9c01e4 |
reject_unlisted_recipient,
|
|
Olav Reinert |
9c01e4 |
permit
|
|
Olav Reinert |
9c01e4 |
smtp_sasl_auth_enable: 'no'
|
|
Olav Reinert |
9c01e4 |
smtp_use_tls: 'yes'
|
|
Olav Reinert |
9c01e4 |
smtp_tls_security_level: 'may'
|
|
Olav Reinert |
87d5bb |
smtpd_tls_auth_only: 'yes'
|
|
Olav Reinert |
9c01e4 |
smtp_tls_loglevel: 1
|
|
Olav Reinert |
9c01e4 |
smtp_tls_CApath: '/etc/ssl/certs'
|
|
Olav Reinert |
9c01e4 |
smtpd_use_tls: 'yes'
|
|
Olav Reinert |
9c01e4 |
smtpd_tls_security_level: 'may'
|
|
Olav Reinert |
9c01e4 |
smtpd_tls_loglevel: 1
|
|
Olav Reinert |
9c01e4 |
smtpd_tls_CAfile: '/etc/postfix/LetsEncryptCA_chain.crt'
|
|
Olav Reinert |
9c01e4 |
smtpd_tls_CApath: '/etc/ssl/certs'
|
|
Olav Reinert |
9c01e4 |
smtpd_tls_cert_file: '/etc/postfix/star_opensuse_org_rsa_letsencrypt.crt'
|
|
Olav Reinert |
9c01e4 |
smtpd_tls_key_file: ' /etc/postfix/star_opensuse_org_rsa_letsencrypt_key.pem'
|
|
Olav Reinert |
9c01e4 |
smtpd_tls_eccert_file: '/etc/postfix/star_opensuse_org_ecdsa_letsencrypt.crt'
|
|
Olav Reinert |
9c01e4 |
smtpd_tls_eckey_file: ' /etc/postfix/star_opensuse_org_ecdsa_letsencrypt_key.pem'
|
|
Olav Reinert |
9c01e4 |
# 20200709 I have some names in /etc/hosts that are needed
|
|
Olav Reinert |
9c01e4 |
smtp_host_lookup: 'native'
|
|
Olav Reinert |
9c01e4 |
# 20200708 see http://www.postfix.org/SMTPUTF8_README.html
|
|
Olav Reinert |
9c01e4 |
smtputf8_enable: 'no'
|
|
Olav Reinert |
9c01e4 |
smtpd_tls_received_header: 'yes'
|
|
Olav Reinert |
87d5bb |
# 2021-09-16 updated by lrupp due to Vul-Scan report
|
|
Olav Reinert |
87d5bb |
# used https://ssl-config.mozilla.org/#server=postfix&version=3.4.7&config=intermediate&openssl=1.1.1d&guideline=5.6
|
|
Olav Reinert |
87d5bb |
# as reference for the configuration
|
|
Olav Reinert |
87d5bb |
smtpd_tls_protocols: '!SSLv2, !SSLv3, !TLSv1, !TLSv1.1'
|
|
Olav Reinert |
87d5bb |
smtpd_tls_mandatory_protocols: '!SSLv2, !SSLv3, !TLSv1, !TLSv1.1'
|
|
Olav Reinert |
87d5bb |
smtp_tls_protocols: '!SSLv2, !SSLv3, !TLSv1, !TLSv1.1'
|
|
Olav Reinert |
87d5bb |
smtp_tls_mandatory_protocols: '!SSLv2, !SSLv3, !TLSv1, !TLSv1.1'
|
|
Olav Reinert |
87d5bb |
smtpd_tls_mandatory_ciphers: 'medium'
|
|
Olav Reinert |
87d5bb |
tls_medium_cipherlist: 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384'
|
|
Olav Reinert |
87d5bb |
tls_preempt_cipherlist: 'no'
|
|
Olav Reinert |
87d5bb |
|
|
Olav Reinert |
9c01e4 |
# 20160303 forward secrecy
|
|
Olav Reinert |
9c01e4 |
smtpd_tls_dh1024_param_file: '/etc/postfix/dh2048.pem'
|
|
Olav Reinert |
9c01e4 |
smtpd_tls_dh512_param_file: '/etc/postfix/dh512.pem'
|
|
Olav Reinert |
9c01e4 |
smtpd_tls_eecdh_grade: 'strong'
|
|
Olav Reinert |
9c01e4 |
# 20200714 do not offer tls for internal connections.
|
|
Olav Reinert |
9c01e4 |
smtpd_discard_ehlo_keyword_address_maps: 'lmdb:/etc/postfix/no-internal-tls'
|
|
Olav Reinert |
9c01e4 |
smtpd_restriction_classes: 'greylist'
|
|
Olav Reinert |
9c01e4 |
greylist: 'check_policy_service unix:/var/spool/postfix/postgrey/socket'
|
|
Olav Reinert |
9c01e4 |
virtual_alias_domains: 'lmdb:/etc/postfix/virtual-domains'
|
|
Olav Reinert |
84931c |
# please note:
|
|
Olav Reinert |
84931c |
# the order of virtual alias lists is important. By keeping our "own" aliases
|
|
Olav Reinert |
84931c |
# at the top, we make sure they are never overwritten by e.g. a user alias.
|
|
Olav Reinert |
9c01e4 |
virtual_alias_maps: >
|
|
Olav Reinert |
9c01e4 |
lmdb:/etc/postfix/virtual-opensuse-aliases,
|
|
Olav Reinert |
9c01e4 |
pcre:/etc/postfix/virtual-opensuse-mm3-bounces.pcre,
|
|
Olav Reinert |
9c01e4 |
lmdb:/etc/postfix/virtual-opensuse-users,
|
|
Olav Reinert |
9c01e4 |
lmdb:/etc/postfix/virtual-opensuse-mailinglists
|
|
Olav Reinert |
9c01e4 |
relay_domains: 'lists.opensuse.org,lists.uyuni-project.org'
|
|
Olav Reinert |
9c01e4 |
smtpslow_destination_concurrency_limit: 20
|
|
Olav Reinert |
9c01e4 |
smtpslow_destination_rate_delay: '1s'
|
|
Olav Reinert |
9c01e4 |
smtpslow_destination_recipient_limit: 10
|
|
Olav Reinert |
9c01e4 |
smtpslow_destination_concurrency_failed_cohort_limit: 10
|
|
Olav Reinert |
9c01e4 |
smtpcox_destination_concurrency_limit: 2
|
|
Olav Reinert |
9c01e4 |
smtpcox_destination_rate_delay: '615s'
|
|
Olav Reinert |
9c01e4 |
smtpcox_destination_recipient_limit: 10
|
|
Olav Reinert |
9c01e4 |
smtpcox_destination_concurrency_failed_cohort_limit: 10
|
|
Olav Reinert |
9c01e4 |
# postsrsd
|
|
Olav Reinert |
9c01e4 |
sender_canonical_maps: 'tcp:postsrsd:10001'
|
|
Olav Reinert |
9c01e4 |
sender_canonical_classes: 'envelope_sender'
|
|
Olav Reinert |
9c01e4 |
recipient_canonical_maps: 'tcp:postsrsd:10002'
|
|
Olav Reinert |
9c01e4 |
recipient_canonical_classes: 'envelope_recipient,header_recipient'
|
|
Olav Reinert |
9c01e4 |
# rspamd
|
|
Olav Reinert |
9c01e4 |
# smtpd_milters = unix:/run/rspamd/worker-proxy.socket
|
|
Olav Reinert |
9c01e4 |
header_checks: 'pcre:/etc/postfix/header_checks'
|
|
Olav Reinert |
9c01e4 |
# 20200805 enable soft_bounce during migration
|
|
Olav Reinert |
9c01e4 |
# 20200817 turning off soft_bounce
|
|
Olav Reinert |
9c01e4 |
# 20210328 turning back on
|
|
Olav Reinert |
9c01e4 |
# 20210401 back off
|
|
Olav Reinert |
9c01e4 |
soft_bounce: 'no'
|
|
Olav Reinert |
9c01e4 |
|
|
Olav Reinert |
d91308 |
|
|
Olav Reinert |
9c01e4 |
zypper:
|
|
Olav Reinert |
9c01e4 |
packages:
|
|
Olav Reinert |
9c01e4 |
postsrsd: {}
|
|
Olav Reinert |
9c01e4 |
postgrey: {}
|
|
Olav Reinert |
9c01e4 |
clamav: {}
|
|
Olav Reinert |
9c01e4 |
spamassassin: {}
|
|
Olav Reinert |
9c01e4 |
mailgraph: {}
|
|
Olav Reinert |
d91308 |
mariadb-client: {}
|
|
Olav Reinert |
d91308 |
nsca-client: {}
|