]> git.openstreetmap.org Git - chef.git/commitdiff
Fix exim configuration on Ubuntu 20.04 master
authorTom Hughes <tom@compton.nu>
Thu, 12 Jun 2025 16:26:51 +0000 (17:26 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 12 Jun 2025 16:26:51 +0000 (17:26 +0100)
cookbooks/exim/templates/default/exim4.conf.erb

index 9e21429fe1bd6bbb97621f81966836e4048c698b..71996f148634878b5e4993ab4846aec332ae10b6 100644 (file)
@@ -737,7 +737,9 @@ begin transports
 remote_smtp:
   driver = smtp
   multi_domain = false
 remote_smtp:
   driver = smtp
   multi_domain = false
+<% if node.platform?("debian") || (node.platform?("ubuntu") && node[:lsb][:release].to_f >= 22.04) -%>
   message_linelength_limit = 1G
   message_linelength_limit = 1G
+<% end -%>
   tls_require_ciphers = <%= node[:ssl][:gnutls_ciphers] %>:%LATEST_RECORD_VERSION
 
 
   tls_require_ciphers = <%= node[:ssl][:gnutls_ciphers] %>:%LATEST_RECORD_VERSION
 
 
@@ -751,7 +753,9 @@ signed_smtp:
   dkim_private_key = /etc/exim4/dkim-keys/${dkim_domain}
   dkim_identity = ${lc:${address:$h_from:}}
   dkim_timestamps = 1209600
   dkim_private_key = /etc/exim4/dkim-keys/${dkim_domain}
   dkim_identity = ${lc:${address:$h_from:}}
   dkim_timestamps = 1209600
+<% if node.platform?("debian") || (node.platform?("ubuntu") && node[:lsb][:release].to_f >= 22.04) -%>
   message_linelength_limit = 1G
   message_linelength_limit = 1G
+<% end -%>
   multi_domain = false
   max_rcpt = 20
   hosts_try_dane =
   multi_domain = false
   max_rcpt = 20
   hosts_try_dane =