X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fsmtp%2Fserv_smtpeventclient.c;h=fcec898cb60b1123cffdc2e6e1b6f9893fc10349;hb=3efed78f36bb50cf280d802f438f94319f4cad45;hp=85ef2813bcec4144077031c14594c8c7c723bb90;hpb=8c284e172b94589dd89e67517977ca3b9f02b5aa;p=citadel.git diff --git a/citadel/modules/smtp/serv_smtpeventclient.c b/citadel/modules/smtp/serv_smtpeventclient.c index 85ef2813b..fcec898cb 100644 --- a/citadel/modules/smtp/serv_smtpeventclient.c +++ b/citadel/modules/smtp/serv_smtpeventclient.c @@ -207,7 +207,7 @@ void SetConnectStatus(AsyncIO *IO) sizeof(buf)); if (SendMsg->mx_host == NULL) - SendMsg->mx_host = ""; + SendMsg->mx_host = ""; CtdlLogPrintf(CTDL_DEBUG, "SMTP client[%ld]: connecting to %s [%s]:%d ...\n", @@ -275,6 +275,7 @@ eNextState get_one_mx_host_ip_done(AsyncIO *IO) 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