Bug 13890

Summary: exim -qqf doesn't reuse SMTP connections
Product: [Retired] Red Hat Powertools Reporter: chris
Component: eximAssignee: Tim Powers <timp>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-07-21 15:33:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description chris 2000-07-13 09:45:38 UTC
When flushing the queue, if multiple messages are destined for the same
SMTP host, exim should send all of them down the same SMTP connection. 
However, running 'exim -qqf' doesn't do this - a separate SMTP session is
started up for each message.

The exim author has provided the following fix:

--- exim-3.13/src/transports/smtp-old.c	Thu Jan 13 15:00:17 2000
+++ exim-3.13/src/transports/smtp.c	Tue Jul 11 12:04:14 2000
@@ -1615,7 +1615,7 @@
     we don't actually want to attempt any deliveries. When doing a queue
run,
     queue_smtp_domains is unset. */
 
-    if (!deliver_force && (queue_smtp ||
+    if ((!deliver_force || queue_2stage) && (queue_smtp ||
         match_isinlist(addrlist->domain,
&queue_smtp_domains,TRUE,TRUE,NULL)))
       {
       expired = FALSE;

Comment 1 Tim Powers 2000-07-13 18:35:23 UTC
Thanks. The patch has been applied and should show up in the exim-3.13-11
package in rawhide.

Tim

Comment 2 chris 2000-07-21 15:32:59 UTC
Great, thanks.  Though exim-3.16 has just been released, which includes fixes
for both this and bug #13539, so maybe it's best to go for that?

Cheers,
Chris.