From d7ff8377b21bb697472f8a18e36391c87ff1ea4c Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Mon, 17 Jul 2023 03:15:23 +0000 Subject: [PATCH] Postfix config for use with Mailman --- main.cf | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/main.cf b/main.cf index 8baec17..4259e36 100644 --- a/main.cf +++ b/main.cf @@ -201,6 +201,7 @@ virtual_alias_maps = hash:/etc/mail/virtual # wild-card, or specify a user@domain.tld address. # local_recipient_maps = unix:passwd.byname $alias_maps + regexp:/opt/mailman/core/var/data/postfix_lmtp #local_recipient_maps = proxy:unix:passwd.byname $alias_maps #local_recipient_maps = @@ -258,7 +259,15 @@ unknown_local_recipient_reject_code = 550 # (the value on the table right-hand side is not used). # # Added by Alex Dehnert -mynetworks = 66.92.29.156/32, 66.92.29.144/32, 127.0.0.1/32, [::1]/128, 18.111.8.18/32, 18.102.208.15/32, 172.17.0.2/32 +mynetworks = + # Home growing up + 66.92.29.156/32, 66.92.29.144/32, + # localhost + 127.0.0.1/32, [::1]/128, + # old MIT IPs + 18.111.8.18/32, 18.102.208.15/32, + # Docker Mailman + 172.19.199.0/30, #mynetworks = 168.100.189.0/28, 127.0.0.0/8 #mynetworks = $config_directory/mynetworks #mynetworks = hash:/etc/postfix/network_table @@ -293,7 +302,6 @@ non_smtpd_milters = $smtpd_milters # Alex Dehnert, 2017-11-01 # Based on https://serverfault.com/questions/663979/virtual-alias-domains-how-to-use-different-ip-addresses-when-forwarding-mail - #sender_dependent_default_transport_maps = hash:/etc/mail/sender-transport # The relay_domains parameter restricts what destinations this system will @@ -714,3 +722,7 @@ home_mailbox = .maildir/ # 2005-01-19 owner_request_special = no smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated permit_auth_destination reject_unauth_destination +transport_maps = + regexp:/opt/mailman/core/var/data/postfix_lmtp +relay_domains = + regexp:/opt/mailman/core/var/data/postfix_domains -- 2.34.1