Signed-off-by: Stephen Gran <steve@lobefin.net>
<%=
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|
end
end
+routes << extraroutes
+
routes.join("\n")
%>