Re: [exim] log_selector and SMTP authentication

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Luciano Rinetti
日付:  
To: Exim-users
題目: Re: [exim] log_selector and SMTP authentication
I hope the following will be helpful for someone with my same needs.
In the exim4.conf file i add the following to the authenticator sections
"plain" and "login"
server_set_id = $2
and
server_set_id = $1
as shown here:

plain:
       driver = plaintext
       server_advertise_condition = ${if eq{$tls_cipher}{}{no}{yes}}
       public_name = PLAIN
       server_prompts = :
       server_condition = ${lookup pgsql{SELECT id FROM users \
                  WHERE id='${quote_pgsql:$2}' \
                  AND pwclear='${quote_pgsql:$3}'} {yes}{no}}
server_set_id = $2


login:
       driver = plaintext
       server_advertise_condition = ${if eq{$tls_cipher}{}{no}{yes}}
       public_name = LOGIN
       server_prompts = "Username:: : Password::"
       server_condition = ${lookup pgsql{SELECT id FROM users \
                  WHERE id='${quote_pgsql:$1}' \
                  AND pwclear='${quote_pgsql:$2}'} {yes}{no}}
server_set_id = $1


After a reload of exim4, now i can see in the mainlog file, the userid
of each SMTP connection.

The log_selector of my exim4.conf is defined as:
log_selector = +arguments +subject +smtp_connection
+smtp_incomplete_transaction +smtp_protocol_error +smtp_syntax_error
+queue_time

What i can see now is this log:

2016-03-06 11:30:33 1acVxG-0006xy-59 <= rocker@??? H=([10.0.0.139])
[151.55.34.35] P=esmtpsa X=TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16 A=pl
ain:d.bill@??? S=57360 id=56DC06AA.7000105@???
T="Invio per posta elettronica: 6_5-varie.doc -\n collegamento"
2016-03-06 11:30:33 SMTP connection from ([10.0.0.139]) [151.55.34.35]
closed by QUIT

where d.bill@??? is the userid of the SMTP connection.

Regards,



On 2016-03-05 17:11, Luciano Rinetti wrote:
> I am sorry for the mistake, the following is the real configuration in
> my exim4.conf file"
>
> begin authenticators
>
>
>
>
>
> On 2016-03-05 16:55, Jeremy Harris wrote:
> > On 05/03/16 16:21, Luciano Rinetti wrote:
> > > looking at the log file "mainlog" in my server,
> > > i see some messages are reporting A=plain and others A=login.
> >
> > You obviously have a working authenticator called "login", but:
> >
> > > I uncomment the "server_set_id = $1" in the following section:
> > >
> >
> > ... with most of that commented out, it is not that one.
> >
> > --
> > Jeremy
> >
> >
> >
> >
>
> --