Allow mailman transport to forward mail to actual mailman host
authorClinton Ebadi <clinton@unknownlamer.org>
Tue, 19 May 2015 05:50:13 +0000 (01:50 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Tue, 19 May 2015 05:50:13 +0000 (01:50 -0400)
Mailman 2.x can only live on one machine, add HCOOP_MAILMAN_RELAY_HOST
macro to allow relaying to the mailman host if we're not it.

conf.d/main/01_exim4-config_listmacrosdefs
conf.d/transport/10_exim4-config_mailman

index a81ca51..cdc5ce0 100644 (file)
@@ -126,3 +126,6 @@ CHECK_RCPT_SPF = true
 # hcoop-change: use hcoop cert 2015-05-04 clinton
 MAIN_TLS_CERTKEY = /etc/hcoop-ssl/hcoop.pem
 
+# hcoop-change: forward to mailman deleuze
+#HCOOP_MAILMAN_RELAY_HOST = deleuze.hcoop.net
+
index db67db6..fe03a3c 100644 (file)
@@ -1,5 +1,14 @@
 # hcoop-change: Transport for mailman lists
+# - set HCOOP_MAILMAN_RELAY_HOST to mail server containing mailman
+#   lists. Otherwise, assume we're the mailman host.
 
+.ifdef HCOOP_MAILMAN_RELAY_HOST
+mailman_transport:
+  debug_print = "T: remote mailman for $local_part@$domain"
+  driver = smtp
+  hosts = HCOOP_MAILMAN_RELAY_HOST
+  hosts_override = true
+.else
 mailman_transport:
   debug_print = "T: mailman for $local_part@$domain"
   driver = pipe
@@ -13,3 +22,4 @@ mailman_transport:
   user = MAILMAN_USER
   group = MAILMAN_GROUP
   freeze_exec_fail = true
+.endif
\ No newline at end of file