From: Clinton Ebadi Date: Tue, 19 May 2015 05:50:13 +0000 (-0400) Subject: Allow mailman transport to forward mail to actual mailman host X-Git-Url: https://git.hcoop.net/hcoop/config/exim.git/commitdiff_plain/f16924af40af0a242d050957c4801cb35e4ca467 Allow mailman transport to forward mail to actual mailman host 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. --- diff --git a/conf.d/main/01_exim4-config_listmacrosdefs b/conf.d/main/01_exim4-config_listmacrosdefs index a81ca51..cdc5ce0 100644 --- a/conf.d/main/01_exim4-config_listmacrosdefs +++ b/conf.d/main/01_exim4-config_listmacrosdefs @@ -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 + diff --git a/conf.d/transport/10_exim4-config_mailman b/conf.d/transport/10_exim4-config_mailman index db67db6..fe03a3c 100644 --- a/conf.d/transport/10_exim4-config_mailman +++ b/conf.d/transport/10_exim4-config_mailman @@ -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