Skip to content
Snippets Groups Projects
Commit 6471d59e authored by rswindell's avatar rswindell
Browse files

Use EHLO for SMTP relay attempts using SMTP authentication (which requires

the ESMTP extensions implied by the "EHLO" command).
parent 40e6db4c
No related branches found
No related tags found
No related merge requests found
......@@ -3686,7 +3686,11 @@ static void sendmail_thread(void* arg)
bounce(&smb,&msg,err,buf[0]=='5');
continue;
}
sockprintf(sock,"HELO %s",startup->host_name);
if(startup->options&MAIL_OPT_RELAY_TX
&& (startup->options&MAIL_OPT_RELAY_AUTH_MASK)!=0) /* Requires ESMTP */
sockprintf(sock,"EHLO %s",startup->host_name);
else
sockprintf(sock,"HELO %s",startup->host_name);
if(!sockgetrsp(sock,"250", buf, sizeof(buf))) {
remove_msg_intransit(&smb,&msg);
SAFEPRINTF3(err,badrsp_err,server,buf,"250");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment