Re: [exim] logging AUTH before MAIL

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] logging AUTH before MAIL
On 09/06/15 00:28, Warwick Brown wrote:
> Does anyone have any recipies to log an authentication once the auth command has completed (and before a MAIL command is issued)?



If your Exim version is recent enough:

(acl)

jgh_tst:
 accept logwrite  = jgh_tst: <$acl_arg1>
        message = 1



(authenticator)

tst_auth:
    driver = foo
    server_set_id =     ${if = {${acl{jgh_tst}{$auth1}}} \
                               {${listcount:$auth1}} \
                          {$auth1} {} \
                         }



Ignore the listcount aspect; it's the acl expansion that is
the key.
--
Cheers,
Jeremy