On Fri, Aug 27, 2010 at 06:52:41PM +0200, Mark Martinec wrote:
> I wonder if there is anything that should be done about it.
Just so everyone else is clear on the context, this is not a post-queue
content_filter issue (post-queue content filters use the SMTP/LMTP
delivery agent which already does the right thing). This applies only
to the pre-queue proxy filters.
You could try the following patch:
Index: src/smtpd/smtpd_proxy.c
--- src/smtpd/smtpd_proxy.c 6 Feb 2010 07:35:07 -0000 1.1.1.1
+++ src/smtpd/smtpd_proxy.c 27 Aug 2010 17:02:30 -0000
@@ -330,6 +330,7 @@
};
int server_xforward_features;
int (*connect_fn) (const char *, int, int);
+ int tweak_tcp = 0;
const char *endpoint;
/*
@@ -344,6 +345,7 @@
else
endpoint = proxy->service_name;
connect_fn = inet_connect;
+ tweak_tcp = 1;
}
/*
@@ -355,6 +357,8 @@
/* Needed by our DATA-phase record emulation routines. */
vstream_control(proxy->service_stream, VSTREAM_CTL_CONTEXT,
(char *) state, VSTREAM_CTL_END);
+ if (tweak_tcp)
+ vstream_tweak_tcp(proxy->service_stream);
smtp_timeout_setup(proxy->service_stream, proxy->timeout);
/*
--
Viktor.