Bluehost.com Web Hosting $6.95

Re: Double "end data with"?

This is a discussion on Re: Double "end data with"? within the mailing.postfix.users forums, part of the Mail Servers and Related category; On Mon, 9 Feb 2004, Wietse Venema wrote: > Ralf Hildebrandt: > > In: RCPT TO:<whatever> > &...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-10-2004
Victor.Duchovni@morganstanley.com
 
Posts: n/a
Default Re: Double "end data with"?

On Mon, 9 Feb 2004, Wietse Venema wrote:

> Ralf Hildebrandt:
> > In: RCPT TO:<whatever>
> > Out: 250 Ok
> > In: DATA
> > Out: 354 End data with <CR><LF>.<CR><LF>
> > Out: 354 End data with <CR><LF>.<CR><LF>
> > In: QUIT
> > Out: 221 Bye

>
> That should be:
>
> > In: RCPT TO:<whatever>
> > Out: 250 Ok
> > In: DATA
> > Out: 354 End data with <CR><LF>.<CR><LF>

> Out: 250 queued as [the queue ID here]
>
> If anyone has time to look for this, I can't reproduce this
> but it seems to happen with the real-time proxy.
>
> This may be a vstring/realloc/dangling pointer problem.
>


More benign I think. When the content filter closes the connection between
"DATA" and "." (or the connection times out). The "proxy_buffer" is not
reset from the initial "354 ..." response. The patch below might fix the
problem:

Index: src/smtpd/smtpd.c
--- src/smtpd/smtpd.c 5 Feb 2004 20:59:23 -0000 1.1.1.30.4.1
+++ src/smtpd/smtpd.c 10 Feb 2004 00:17:57 -0000
@@ -1486,6 +1486,9 @@
if (state->err == CLEANUP_STAT_OK &&
*STR(state->proxy_buffer) != '2')
state->err = CLEANUP_STAT_CONT;
+ } else {
+ vstring_sprintf(state->proxy_buffer,
+ "451 Error: queue file write error");
}
smtpd_proxy_close(state);
}

--
Viktor.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0