Re: [exim] Strange Log

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Mark Edwards
CC: exim-users
Subject: Re: [exim] Strange Log
On Tue, 26 Apr 2005, Mark Edwards wrote:

> I saw the following odd log in my daily exim Rejected Mail. Why and how would
> this be generated?


Bug in Exim. A patch has been posted to the list at least once. Will be
fixed in next release (out in about a week I hope). Can I find the patch
quickly? ...... Ah yes, here it is again.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book





*** exim-4.50/src/smtp_in.c Thu Feb 17 14:49:11 2005
--- smtp_in.c    Tue Mar 29 16:53:12 2005
***************
*** 1610,1623 ****
&tzero) > 0)
{
int rc = read(fileno(smtp_in), smtp_inbuffer, in_buffer_size);
! if (rc > 150) rc = 150;
! smtp_inbuffer[rc] = 0;
! log_write(0, LOG_MAIN|LOG_REJECT, "SMTP protocol violation: "
! "synchronization error (input sent without waiting for greeting): "
! "rejected connection from %s input=\"%s\"", host_and_ident(TRUE),
! string_printing(smtp_inbuffer));
! smtp_printf("554 SMTP synchronization error\r\n");
! return FALSE;
}
}

--- 1616,1632 ----
&tzero) > 0)
{
int rc = read(fileno(smtp_in), smtp_inbuffer, in_buffer_size);
! if (rc > 0)
! {
! if (rc > 150) rc = 150;
! smtp_inbuffer[rc] = 0;
! log_write(0, LOG_MAIN|LOG_REJECT, "SMTP protocol violation: "
! "synchronization error (input sent without waiting for greeting): "
! "rejected connection from %s input=\"%s\"", host_and_ident(TRUE),
! string_printing(smtp_inbuffer));
! smtp_printf("554 SMTP synchronization error\r\n");
! return FALSE;
! }
}
}