X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fexim%2Ftemplates%2Fmanualroute.erb;h=2b84b4ede1d4545636d64d513014aba7c901d020;hb=f9797fa6bda42f46b013a41163ca04bf092d416b;hp=9f78c16c3b1cd0973afd340af7af0788fbfe5eba;hpb=af13aa4419aeb80dc5ba835669c970df5bb4223c;p=mirror%2Fdsa-puppet.git diff --git a/modules/exim/templates/manualroute.erb b/modules/exim/templates/manualroute.erb index 9f78c16c3..2b84b4ede 100644 --- a/modules/exim/templates/manualroute.erb +++ b/modules/exim/templates/manualroute.erb @@ -15,12 +15,12 @@ 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' ] + extraroutes = [ "keyring.debian.org:\t\tkaufmann.debian.org" ] end mxregex = Regexp.new('^\d+\s+(.*)\.$') mxinfo.keys.sort.each do |host| - mxinfo[host][0]['mXRecord'].each do |mx| + mxinfo[host]['mXRecord'].each do |mx| mxmatch = mxregex.match(mx) if mxmatches.include?(mxmatch[1]) route = host + ":\t\t" + host