From 54bd656455fc085756cf86a3d2b3ccb1b3924582 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Tue, 7 Apr 2009 21:31:54 +0100 Subject: [PATCH] lafayette relay rules Signed-off-by: Stephen Gran --- modules/exim/files/common/exim4.conf | 26 ++++++++++++++++--- .../lafayette.debian.org/local-settings.conf | 2 ++ 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/modules/exim/files/common/exim4.conf b/modules/exim/files/common/exim4.conf index 93802745a..c28545a5a 100644 --- a/modules/exim/files/common/exim4.conf +++ b/modules/exim/files/common/exim4.conf @@ -770,6 +770,17 @@ ipliteral: transport = remote_smtp ignore_target_hosts = +reservedaddrs +.ifdef SMARTHOST +smarthost: + debug_print = "R: smarthost for $local_part@$domain" + driver = manualroute + domains = !+handled_domains + transport = remote_smtp_smarthost + route_list = * SMARTHOST + host_find_failed = defer + same_domain_copy_routing = yes + no_more +.endif # This router routes to remote hosts over SMTP using a DNS lookup. # Ignore reserved network responses, including localhost. dnslookup: @@ -1156,11 +1167,20 @@ remote_smtp: driver = smtp connect_timeout = 1m .ifdef USE_TLS -# tls_tempfail_tryclear = true tls_certificate = /etc/exim4/ssl/thishost.crt tls_privatekey = /etc/exim4/ssl/thishost.key -# tls_verify_certificates = /etc/exim4/ssl/ca.crt -# tls_crl = /etc/exim4/ssl/ca.crl +.endif + +remote_smtp_smarthost: + debug_print = "T: remote_smtp_smarthost for $local_part@$domain" + driver = smtp +.ifdef SMARTHOST_PORT + port = SMARTHOST_PORT +.endif +.ifdef USE_TLS + tls_tempfail_tryclear = false + tls_certificate = /etc/exim4/ssl/thishost.crt + tls_privatekey = /etc/exim4/ssl/thishost.key .endif # Send the message to procmail diff --git a/modules/exim/files/per-host/lafayette.debian.org/local-settings.conf b/modules/exim/files/per-host/lafayette.debian.org/local-settings.conf index 1e2079258..b1228f89d 100644 --- a/modules/exim/files/per-host/lafayette.debian.org/local-settings.conf +++ b/modules/exim/files/per-host/lafayette.debian.org/local-settings.conf @@ -4,3 +4,5 @@ ## STUPID_FIREWALL = 1 +SMARTHOST = spohr.debian.org +SMARTHOST_PORT = 587 -- 2.20.1