]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/verify.c
The udpsend ACL modifier.
[user/henk/code/exim.git] / src / src / verify.c
index ea7869d25df85f93e2d66b2d88cf7100de2073f5..a09782bcdc4f556b0a1207bb0eafd86befdfe85e 100644 (file)
@@ -727,13 +727,21 @@ else
     else done = smtp_auth(responsebuffer, sizeof(responsebuffer),
        addr, host, ob, esmtp, &inblock, &outblock) == OK  &&
 
+               /* Copy AUTH info for logging */
+      ( (addr->authenticator = client_authenticator),
+        (addr->auth_id = client_authenticated_id),
+
     /* Build a mail-AUTH string (re-using responsebuffer for convenience */
-      !smtp_mail_auth_str(responsebuffer, sizeof(responsebuffer), addr, ob)  &&
+        !smtp_mail_auth_str(responsebuffer, sizeof(responsebuffer), addr, ob)
+      )  &&
+
+      ( (addr->auth_sndr = client_authenticated_sender),
 
     /* Send the MAIL command */
+        (smtp_write_command(&outblock, FALSE, "MAIL FROM:<%s>%s\r\n",
+          from_address, responsebuffer) >= 0)
+      )  &&
 
-      smtp_write_command(&outblock, FALSE, "MAIL FROM:<%s>%s\r\n",
-        from_address, responsebuffer) >= 0 &&
       smtp_read_response(&inblock, responsebuffer, sizeof(responsebuffer),
         '2', callout);