base.m4, auth.m4: Track a per-message authenticated user.
[exim-config] / auth.m4
diff --git a/auth.m4 b/auth.m4
index 019623d..04e1a07 100644 (file)
--- a/auth.m4
+++ b/auth.m4
@@ -93,6 +93,9 @@ mailauth:
        ## sender was presumably checked upstream, and we can believe that
        ## the name has been transmitted honestly.
        accept   condition = ${if def:tls_peerdn}
+                set acl_m_user = ${if match_address{$authenticated_sender} \
+                                                   {*@CONF_master_domain} \
+                                      {${local_part:$authenticated_sender}}}
 
        ## If this is submission, and the client has authenticated, then we
        ## check that the name matches the user.