relay_from_hosts |= host.ipaddresses(:role => :external)
end
- domains = node[:exim][:local_domains].reject { |d| ["localhost", "@", "noreply.openstreetmap.org"].any?(d) }
+ domains = node[:exim][:certificate_names].select { |c| c =~ /^a\.mx\./ }.collect { |c| c.sub(/^a\.mx./, "") }
primary_domain = domains.first
directory "/srv/mta-sts.#{primary_domain}" do
apache_site "mta-sts.#{primary_domain}" do
template "apache-mta-sts.erb"
+ directory "/srv/mta-sts.#{primary_domain}"
variables :domains => domains
end
end