Skip to content
Snippets Groups Projects
Commit 41956f53 authored by rswindell's avatar rswindell
Browse files

Use the authenticated relay user's information in the client display rather

than the mail sender's e-mail address.
parent 1c1c7a31
No related branches found
No related tags found
No related merge requests found
......@@ -2480,6 +2480,10 @@ static void smtp_thread(void* arg)
relay_user.number=0;
break;
}
/* Update client display */
client.user=relay_user.alias;
client_on(socket,&client,TRUE /* update */);
lprintf(LOG_INFO,"%04d SMTP %s authenticated using %s authentication"
,socket,relay_user.alias,auth_login ? "LOGIN" : "PLAIN");
sockprintf(socket,auth_ok);
......@@ -2560,6 +2564,10 @@ static void smtp_thread(void* arg)
relay_user.number=0;
continue;
}
/* Update client display */
client.user=relay_user.alias;
client_on(socket,&client,TRUE /* update */);
lprintf(LOG_INFO,"%04d SMTP %s authenticated using CRAM-MD5 authentication"
,socket,relay_user.alias);
sockprintf(socket,auth_ok);
......@@ -2624,8 +2632,10 @@ static void smtp_thread(void* arg)
SAFECOPY(reverse_path,p);
/* Update client display */
client.user=reverse_path;
client_on(socket,&client,TRUE /* update */);
if(relay_user.number==0) {
client.user=reverse_path;
client_on(socket,&client,TRUE /* update */);
}
/* Setup state */
state=SMTP_STATE_MAIL_FROM;
......
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