From af13aa4419aeb80dc5ba835669c970df5bb4223c Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Tue, 6 Apr 2010 21:23:34 +0100 Subject: [PATCH] add manualroute for keyring Signed-off-by: Stephen Gran --- modules/exim/templates/manualroute.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/exim/templates/manualroute.erb b/modules/exim/templates/manualroute.erb index c798cc91..9f78c16c 100644 --- a/modules/exim/templates/manualroute.erb +++ b/modules/exim/templates/manualroute.erb @@ -9,13 +9,15 @@ <%= mxmatches = [ fqdn ] +routes = [] +extraroutes = [] + case fqdn when 'spohr.debian.org', 'draghi.debian.org', 'merikanto.debian.org' then mxmatches << 'mailout.debian.org' + extraroutes = [ 'keyring.debian.org:\t\tkaufmann.debian.org' ] end -routes = [] - mxregex = Regexp.new('^\d+\s+(.*)\.$') mxinfo.keys.sort.each do |host| mxinfo[host][0]['mXRecord'].each do |mx| @@ -30,5 +32,7 @@ mxinfo.keys.sort.each do |host| end end +routes << extraroutes + routes.join("\n") %> -- 2.39.2