]> git.openstreetmap.org Git - chef.git/commitdiff
Send 10% of outgoing mail via equinix
authorTom Hughes <tom@compton.nu>
Thu, 9 Jan 2025 20:29:38 +0000 (20:29 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 9 Jan 2025 20:29:38 +0000 (20:29 +0000)
cookbooks/exim/templates/default/exim4.conf.erb
roles/fafnir.rb

index ffc8be609f4d9f2f360cd37dd9015a063db908ee..3558af884317b3907656de655d1b105ad2d9a2d4 100644 (file)
@@ -753,6 +753,9 @@ signed_smtp:
   multi_domain = false
   hosts_try_dane =
   tls_require_ciphers = <%= node[:ssl][:gnutls_ciphers] %>:%LATEST_RECORD_VERSION
+<% if node[:exim][:external_interface] -%>
+  interface = <%= node[:exim][:external_interface] %>
+<% end -%>
 
 
 # This transport is used for handling pipe deliveries generated by alias or
index bb6b7b667e4a9928015d9e545e8b07a6fd1288f7..d3bfcc1157ea1f1c6eecb85411223958a2c97aec 100644 (file)
@@ -7,6 +7,7 @@ default_attributes(
     :last_address => "10.0.79.254"
   },
   :exim => {
+    :external_interface => "<;${if <{${randint:100}}{90} {184.104.226.98;2001:470:1:b3b::2}{87.252.214.98;2001:4d78:fe03:1c::2}}",
     :routes => {
       :openstreetmap => {
         :comment => "openstreetmap.org",