switched from hash to lmdb

This commit is contained in:
rene committed 2026-11-02 14:42:55 +01:00
1 parent 97c64189c5
commit 5fbb67696b
1 file changed
+12 -12
+12 -12
View File
@@ -6,8 +6,8 @@
cmd: "postconf {{item.key}}={{item.value}}"
loop:
- {key: "address_verify_map", value: "btree:/usr/lib/postfix/bin/verify"}
- {key: "alias_database", value: "hash:/etc/mail/aliases"}
- {key: "alias_maps", value: "hash:/etc/mail/aliases"}
- {key: "alias_database", value: "lmdb:/etc/mail/aliases"}
- {key: "alias_maps", value: "lmdb:/etc/mail/aliases"}
- {key: "biff", value: "no"}
- {key: "broken_sasl_auth_clients", value: "yes"}
- {key: "compatibility_level", value: "2"}
@@ -26,32 +26,32 @@
- {key: "mynetworks", value: "'{{ mynetworks }}'"}
- {key: "mynetworks_style", value: "subnet"}
- {key: "readme_directory", value: "no"}
- {key: "recipient_canonical_maps", value: "hash:/etc/postfix/recipient-canonical"}
- {key: "recipient_canonical_maps", value: "lmdb:/etc/postfix/recipient-canonical"}
- {key: "recipient_delimiter", value: "+"}
- {key: "sender_canonical_maps", value: "hash:/etc/postfix/sender-canonical"}
- {key: "sender_dependent_relayhost_maps", value: "hash:/etc/postfix/sender_dependent_relayhost_map"}
- {key: "sender_canonical_maps", value: "lmdb:/etc/postfix/sender-canonical"}
- {key: "sender_dependent_relayhost_maps", value: "lmdb:/etc/postfix/sender_dependent_relayhost_map"}
- {key: "smtp_sasl_auth_enable", value: "yes"}
- {key: "smtp_sasl_mechanism_filter", value: "'!gssapi, !external, static:all'"}
- {key: "smtp_sasl_password_maps", value: "hash:/etc/postfix/saslpass"}
- {key: "smtp_sasl_password_maps", value: "lmdb:/etc/postfix/saslpass"}
- {key: "smtp_sasl_security_options", value: "noanonymous"}
- {key: "smtp_sender_dependent_authentication", value: "yes"}
- {key: "smtp_tls_CApath", value: "/etc/ssl/certs"}
- {key: "smtp_tls_loglevel", value: "1"}
- {key: "smtp_tls_policy_maps", value: "hash:/etc/postfix/smtp_tls_policy"}
- {key: "smtp_tls_policy_maps", value: "lmdb:/etc/postfix/smtp_tls_policy"}
- {key: "smtp_tls_security_level", value: "may"}
- {key: "smtp_tls_session_cache_database", value: "btree:/var/lib/postfix/smtp_scache"}
- {key: "smtpd_data_restrictions", value: "reject_unauth_pipelining"}
- {key: "smtpd_etrn_restrictions", value: "'permit_mynetworks, reject'"}
- {key: "smtpd_helo_required", value: "yes"}
- {key: "smtpd_helo_restrictions", value: "'permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname'"}
- {key: "smtpd_recipient_restrictions", value: "'permit_mynetworks, permit_sasl_authenticated, check_client_access hash:/etc/postfix/client_access, reject_non_fqdn_recipient, check_sender_access hash:/etc/postfix/sender_restrictions, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unverified_recipient, reject_unauth_destination,'"}
- {key: "smtpd_recipient_restrictions", value: "'permit_mynetworks, permit_sasl_authenticated, check_client_access lmdb:/etc/postfix/client_access, reject_non_fqdn_recipient, check_sender_access lmdb:/etc/postfix/sender_restrictions, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unverified_recipient, reject_unauth_destination,'"}
- {key: "smtpd_relay_restrictions", value: "permit_sasl_authenticated"}
- {key: "smtpd_sasl_auth_enable", value: "yes"}
- {key: "smtpd_sasl_path", value: "/var/run/dovecot/auth-client"}
- {key: "smtpd_sasl_security_options", value: "noanonymous,noplaintext"}
- {key: "smtpd_sasl_tls_security_options", value: "noanonymous"}
- {key: "smtpd_sasl_type", value: "dovecot"}
- {key: "smtpd_sender_restrictions", value: "'hash:/etc/postfix/access, permit_mynetworks, reject_non_fqdn_sender, check_sender_access hash:/etc/postfix/sender_access'"}
- {key: "smtpd_sender_restrictions", value: "'lmdb:/etc/postfix/access, permit_mynetworks, reject_non_fqdn_sender, check_sender_access lmdb:/etc/postfix/sender_access'"}
- {key: "smtpd_tls_auth_only", value: "yes"}
- {key: "smtpd_tls_cert_file", value: "/etc/letsencrypt/live/{{ npm_cert }}/fullchain.pem"}
- {key: "smtpd_tls_dh1024_param_file", value: "${config_directory}/dh2048.pem"}
@@ -67,12 +67,12 @@
- {key: "tls_high_cipherlist", value: "'EECDH+RSA+AES256+SHA384:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:!IDEA'"}
- {key: "tls_preempt_cipherlist", value: "yes"}
- {key: "tls_ssl_options", value: "NO_COMPRESSION"}
- {key: "transport_maps", value: "hash:/etc/postfix/transport"}
- {key: "virtual_alias_maps", value: "hash:/etc/postfix/virtual"}
- {key: "transport_maps", value: "lmdb:/etc/postfix/transport"}
- {key: "virtual_alias_maps", value: "lmdb:/etc/postfix/virtual"}
- {key: "virtual_gid_maps", value: "static:vmail"}
- {key: "virtual_mailbox_base", value: "/home/vmail"}
- {key: "virtual_mailbox_domains", value: "'$myhostname, $mydomain, imap.$mydomain, tantooine.homelinux.net, gallery-mewi1503.myphotos.cc, tantooine.myfirewall.org, tatooine.noip.me, mastodon.spdns.org, hubzilla.social.my-wan.de, friendica.social.my-wan.de, peertube.social.my-wan.de, pixelfed.social.my-wan.de'"}
- {key: "virtual_mailbox_maps", value: "hash:/etc/postfix/vmailbox"}
- {key: "virtual_mailbox_maps", value: "lmdb:/etc/postfix/vmailbox"}
- {key: "virtual_transport", value: "lmtp:unix:private/dovecot-lmtp"}
- {key: "virtual_uid_maps", value: "static:vmail"}