X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fexim%2Ftemplates%2Fmanualroute.erb;h=a1dfb504db720daa7c8d699ac00a680486fba8d6;hb=e3552ebafacf4e63fd4a97c331066022b7017d56;hp=21a194edaa708b46cea755ad8291c8f7d8ed1899;hpb=f833a1c122597f80da4d4095cae8d7d5bd852a7a;p=dsa-puppet.git diff --git a/modules/exim/templates/manualroute.erb b/modules/exim/templates/manualroute.erb index 21a194ed..a1dfb504 100644 --- a/modules/exim/templates/manualroute.erb +++ b/modules/exim/templates/manualroute.erb @@ -5,18 +5,19 @@ ## Format: ## domain: hostname[::port] options ## example: -## buildd.debian.org: grieg.debian.org::587 byname +## buildd.debian.org: foobar.debian.org::587 byname <%= -mxmatches = [ scope.lookupvar('::fqdn') ] +mxmatches = [ @fqdn ] routes = [] extraroutes = [] -if scope.function_has_role('mailrelay') +if scope.function_has_role(['mailrelay']) mxmatches << 'mailout.debian.org' mxmatches << 'INCOMING-MX' - extraroutes = [ "keyring.debian.org:\t\tkaufmann.debian.org" ] + extraroutes = [ ] extraroutes << "www-master.debian.org:\t\twolkenstein.debian.org" + extraroutes << "tracker.debian.org:\t\tticharich.debian.org" end mxregex = Regexp.new('^\d+\s+(.*?)\.?$')