Postfix config for use with Mailman
authorAlex Dehnert <alex@dehnerts.com>
Mon, 17 Jul 2023 03:15:23 +0000 (03:15 +0000)
committerAlex Dehnert <alex@dehnerts.com>
Mon, 17 Jul 2023 03:15:23 +0000 (03:15 +0000)
main.cf

diff --git a/main.cf b/main.cf
index 8baec175c1a2251eccc6822b603d0ac245554670..4259e365edc27cb97652e663ed92f70c4cead724 100644 (file)
--- 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