Re: [exim] SMTP AUTH help

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Fred Viles
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] SMTP AUTH help
On 9 Jan
(JANUARY?)
         2005 at 22:15, joe@??? wrote about
    "Re: [exim] SMTP AUTH help":


This machine (70.108.33.217) has its date set wrong:

Received: from root by localhost.localdomain with local (Exim 4.34)
    id 1Cnq1z-0002VF-RM; Sun, 09 Jan 2005 22:15:47 -0500


| Ok, I tried changing the settings. I changed:
|
| relay_to_domains =


Good.

|...
|    login:
|    driver = plaintext
|    public_name = PLAIN
|    server_prompts = Username:: : Password::
|    server_condition = ${if and {{eq{$2}{user}}{eq{$3}{pass}}}{yes}{no}}
|    server_set_id = $2


My AUTH PLAIN authenticator looks like this:

plain:
  driver    = plaintext
  public_name    = PLAIN
  server_prompts = :
  server_condition = \
    ${if and {{eq{$2}{user}} {eq{$3}{pass}}} {yes}{no} }


Note the lack of server prompts (unlike AUTH LOGIN).

| For some reason with these settings, I cannot authenticate. Apparently I was
| wrong when I said authentication was working because when I tried it, it
| just kept prompting me over and over.


What just kept prompting you? Were you running a manual SMTP session
via telnet or exim -bs? If so, did you pass the credentials
correctly?

For AUTH PLAIN, the credentials are sent as a single string
"\0user\0password", base-64 encoded, either on the AUTH command (in
which case there will be no prompt) or in reponse to the empty
prompt.

|...

- Fred