From f67fa7cfe929631c602f7216df2e6496111c83cc Mon Sep 17 00:00:00 2001 From: alexhudson Date: Wed, 15 Oct 2008 11:46:28 +0000 Subject: [PATCH] Make smtpc work with "long banner" smtp servers. --- src/agents/smtp/smtpc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/agents/smtp/smtpc.c b/src/agents/smtp/smtpc.c index 92709b2..d787df4 100755 --- a/src/agents/smtp/smtpc.c +++ b/src/agents/smtp/smtpc.c @@ -193,6 +193,10 @@ DeliverMessage(SMTPClient *Queue, SMTPClient *Remote, RecipStruct *Recip) { Recip->Result = DELIVER_REFUSED; return FALSE; } + // read out any additional banner lines + while(Remote->line[0] == '2' && Remote->line[3] == '-') { + ConnReadAnswer(Remote->conn, Remote->line, CONN_BUFSIZE); + } beginConversation: Extensions = 0;