From 5dd80af687764d70064e403bd5a017626206dc9e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 12 Jun 2025 17:26:51 +0100 Subject: [PATCH] Fix exim configuration on Ubuntu 20.04 --- cookbooks/exim/templates/default/exim4.conf.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbooks/exim/templates/default/exim4.conf.erb b/cookbooks/exim/templates/default/exim4.conf.erb index 9e21429fe..71996f148 100644 --- a/cookbooks/exim/templates/default/exim4.conf.erb +++ b/cookbooks/exim/templates/default/exim4.conf.erb @@ -737,7 +737,9 @@ begin transports 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 +<% end -%> 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 +<% if node.platform?("debian") || (node.platform?("ubuntu") && node[:lsb][:release].to_f >= 22.04) -%> message_linelength_limit = 1G +<% end -%> multi_domain = false max_rcpt = 20 hosts_try_dane = -- 2.39.5