Bug#1112303: Please support disabling SMTP pipelining via local macro

Joey Schulze joey at infodrom.org
Thu Aug 28 11:17:27 BST 2025


Package: exim4-config
Version: 4.96-15+deb12u7
Severity: wishlist
Tags: patch

Hi!

In one of my setups there seems to be a problem in connection to SMTP
pipelining which results in mails not reliably delivered.  After
disabling SMTP pipelining it worked well.

This I'd like to have a possibility to disable this feature via local
macros instead of editing configuration files directly.

Based on the version of exim4 in bookworm I provide a patch to be
integrated with the Debian build system.  The patch applies to the
version in unstable as well.

The attached patch adds two macros that can be set locally in the file
exim4.conf.localmacros

REMOTE_SMTP_SMARTHOST_HOSTS_AVOID_PIPELINING
    Disable SMTP pipelining for smarthosts

REMOTE_SMTP_HOSTS_AVOID_PIPELINING
    Disable SMTP pipelining for certain hosts

Regards

	Joey

-- 
MIME - broken solution for a broken design.  -- Ralf Baechle
-------------- next part --------------
From: Joey Schulze <joey at infodrom.org>
Subject: Support disabling SMTP pipelining for certain hosts

This patch adds two macros that can be set locally:

REMOTE_SMTP_SMARTHOST_HOSTS_AVOID_PIPELINING
    Disable SMTP pipelining for smarthosts

REMOTE_SMTP_HOSTS_AVOID_PIPELINING
    Disable SMTP pipelining for certain hosts

Index: exim4-4.96/debian/debconf/conf.d/transport/30_exim4-config_remote_smtp
===================================================================
--- exim4-4.96.orig/debian/debconf/conf.d/transport/30_exim4-config_remote_smtp
+++ exim4-4.96/debian/debconf/conf.d/transport/30_exim4-config_remote_smtp
@@ -8,6 +8,9 @@ remote_smtp:
 .ifdef REMOTE_SMTP_HOSTS_AVOID_TLS
   hosts_avoid_tls = REMOTE_SMTP_HOSTS_AVOID_TLS
 .endif
+.ifdef REMOTE_SMTP_HOSTS_AVOID_PIPELINING
+  hosts_avoid_pipelining = REMOTE_SMTP_HOSTS_AVOID_PIPELINING
+.endif
 .ifdef REMOTE_SMTP_HEADERS_REWRITE
   headers_rewrite = REMOTE_SMTP_HEADERS_REWRITE
 .endif
Index: exim4-4.96/debian/debconf/conf.d/transport/30_exim4-config_remote_smtp_smarthost
===================================================================
--- exim4-4.96.orig/debian/debconf/conf.d/transport/30_exim4-config_remote_smtp_smarthost
+++ exim4-4.96/debian/debconf/conf.d/transport/30_exim4-config_remote_smtp_smarthost
@@ -19,6 +19,9 @@ remote_smtp_smarthost:
 .ifdef REMOTE_SMTP_SMARTHOST_HOSTS_AVOID_TLS
   hosts_avoid_tls = REMOTE_SMTP_SMARTHOST_HOSTS_AVOID_TLS
 .endif
+.ifdef REMOTE_SMTP_SMARTHOST_HOSTS_AVOID_PIPELINING
+  hosts_avoid_pipelining = REMOTE_SMTP_SMARTHOST_HOSTS_AVOID_PIPELINING
+.endif
 .ifdef REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS
   hosts_require_tls = REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS
 .endif


More information about the Pkg-exim4-maintainers mailing list