Msg->HostLookup.DNSReplyFree(Msg->HostLookup.VParsedDNSReply);
FreeStrBuf(&Msg->msgtext);
FreeAsyncIOContents(&Msg->IO);
+ memset (Msg, 0, sizeof(SmtpOutMsg)); /* just to be shure... */
free(Msg);
}
* - connection timeout
* -
*/
+ StopClientWatchers(IO);
+
if (SendMsg->pCurrRelay != NULL)
SendMsg->pCurrRelay = SendMsg->pCurrRelay->Next;
SendMsg->mx_host,
buf,
SendMsg->IO.ConnectMe->Port);
+ SendMsg->IO.NextState = eConnect;
}
/*****************************************************************************
CtdlLogPrintf(CTDL_DEBUG, "SMTP: %s\n", __FUNCTION__);
CtdlLogPrintf(CTDL_DEBUG,
- "SMTP client[%ld]: looking up %s : %d ...\n",
+ "SMTP client[%ld]: looking up %s-Record %s : %d ...\n",
SendMsg->n,
+ (SendMsg->pCurrRelay->IPv6)? "aaaa": "a",
SendMsg->pCurrRelay->Host,
SendMsg->pCurrRelay->Port);
SendMsg->MyQEntry->Status = 5;
StrBufPrintf(SendMsg->MyQEntry->StatusMessage,
"No MX hosts found for <%s>", SendMsg->node);
+ SendMsg->IO.NextState = eTerminateConnection;
return IO->NextState;
}
+ IO->NextState = eReadDNSReply;
return IO->NextState;
}
"No MX hosts found for <%s>", SendMsg->node);
return IO->NextState;
}
- return eAbort;
+ SendMsg->IO.NextState = eReadDNSReply;
+ return IO->NextState;
}
Timeout += StrLength(pMsg->msgtext) / 1024;
}
break;
+ case eSendDNSQuery:
+ case eReadDNSReply:
+ case eConnect:
case eTerminateConnection:
case eAbort:
return;