X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fexim%2Ftemplates%2Fmanualroute.erb;h=4f241704c7ffc0ec56332d8e72ff9a88367c5ed4;hb=a6b5954633f918bcde5bfeffd57a67e6fbe36afd;hp=0cfd9e48e27fd998a1251d73b238d3df8ae51cca;hpb=d271b3e0b34421dc16b53612ca86965cb1abb8bb;p=mirror%2Fdsa-puppet.git diff --git a/modules/exim/templates/manualroute.erb b/modules/exim/templates/manualroute.erb index 0cfd9e48e..4f241704c 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', 'englund.debian.org' then +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") %>