1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/mailman/templates/main.cf.j2
Evangelos Foutras e7e6308606
mailman: change lookup tables in main.cf to lmdb:
Arch's postfix 3.9.0-1 package removes support for BDB hash: and btree:
database types, and switches the default to LMDB. [1]

[1] https://gitlab.archlinux.org/archlinux/packaging/packages/postfix/-/commit/2ebb2274ab04
2024-04-23 19:21:03 +03:00

56 lines
1.4 KiB
Django/Jinja

#
# {{ansible_managed}}
#
compatibility_level = 3.6
biff = no
smtputf8_enable = no
smtpd_tls_cert_file = /etc/letsencrypt/live/{{ lists_domain }}/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/{{ lists_domain }}/privkey.pem
smtpd_tls_loglevel = 1
smtpd_tls_security_level = may
smtp_tls_loglevel = 1
smtp_tls_security_level = may
mydomain = {{ lists_domain }}
myorigin = {{ lists_domain }}
mydestination = {{ lists_domain }}
mynetworks =
127.0.0.0/8
[::1]/128
[fe80::]/64
# fatal: configuration error: mailbox_size_limit is smaller than message_size_limit
message_size_limit = 104857600
mailbox_size_limit = $message_size_limit
recipient_delimiter = +
disable_vrfy_command = yes
strict_rfc821_envelopes = yes
# enable for testing new config
soft_bounce = no
debug_peer_list =
smtpd_relay_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
smtpd_reject_footer = For assistance contact <postmaster@archlinux.org>. Please provide the following information in your problem report: time ($localtime) and client ($client_address).
# rspamd
smtpd_milters = inet:localhost:11332
non_smtpd_milters = $smtpd_milters
alias_maps = lmdb:/etc/postfix/aliases
local_recipient_maps = lmdb:/var/lib/mailman/data/postfix_lmtp $alias_maps
alias_database = $alias_maps
transport_maps = lmdb:/var/lib/mailman/data/postfix_lmtp
milter_header_checks = pcre:/etc/postfix/milter_header_checks
delay_warning_time = 4h