- set it after successfull MX lookup
- put in that we don't have an mx record if its NULL instead of 'no name'
sizeof(buf));
if (SendMsg->mx_host == NULL)
- SendMsg->mx_host = "<no name>";
+ SendMsg->mx_host = "<no MX-Record>";
CtdlLogPrintf(CTDL_DEBUG,
"SMTP client[%ld]: connecting to %s [%s]:%d ...\n",
addr->sin_port = htons(DefaultMXPort);
}
+ SendMsg->mx_host = SendMsg->pCurrRelay->Host;
return mx_connect_ip(IO);
}
else // TODO: here we need to find out whether there are more mx'es, backup relay, and so on