Re: [exim] Re: SMTP failed with fully qualified user id

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Oliver Eikemeier
Data:  
Para: sam wun
CC: Exim User's Mailing List
Asunto: Re: [exim] Re: SMTP failed with fully qualified user id
sam wun wrote:

> It is working fine when login cyrus with fqdn with user id, but auth
> smtp failed.
> When sending email, I entered user@??? in the User name and
> Password edit box in the Outgoing Server dialog box. The smtp
> authentication was not successful in this case.
> If I enter user id only in the Outgoin Server dialog box, the smtp auth
> works fine.
> Now the login id for cyrus is fqdn, login id only for out-going server
> auth smtp.
>
> I have test the login id fqdn authtentication with imtest command (with
> LOGIN mech) and it works fine.
> The way I create password is:
> saslpasswd2 -c user@???
>
> Since login id fqdn is failed with smtp auth, I also need to create one
> more password for the user:
> saslpasswd2 -c user
>
> I dont know what is going on here.
> I have test fully qualified user account login iwth imtest, and it
> authenticated successfully. May be this test is same as a mail client
> login to imap server.
> It seems that smtp authentication doesn't allocate sasldb2 file
> correctly.
>
> The smtp Exim server has the following configuration for saslauthd 
> authentication:
> #fixed_login:
> login:
>        driver = plaintext
>        public_name = LOGIN
>        server_prompts = UserName:: : Password::
>        server_condition = ${if saslauthd{{$1}{$2}}{1}{0}}
>        server_set_id = $1

>
> plain:
>        driver = plaintext
>        public_name = PLAIN
>        server_condition = ${if saslauthd{{$2}{$3}}{1}{0}}
>        server_set_id = $2

>
> The error in mainlog is:
> login authenticator failed for ([192.168.4.235]) [192.168.4.235]: 535
> Incorrect a
> uthentication data (set_id=sam.wun@???)
>
> Note, the smtp authentication only successful if the login id have the
> domain part stripped.
> If I remote option primary domain and qualified domain in the configure
> file (that is to force authentication with fully qualified user id with
> domain name), then authentication will failed because login is not
> using fully qualified user ID.


Do you mean
imtest -v -a sam.wun@??? 127.0.0.1
works, but
smtptest -v -a sam.wun@??? 127.0.0.1
does not?

A log of smtptest and a sample `exim -d+all -bh 127.0.0.1` session would
be useful (CAUTION: will contain your password)
-Oliver