Re: [exim] logging AUTH before MAIL

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jeremy Harris
Date:  
À: exim-users
Sujet: 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