Re: [exim] Courier userdb SMTP auth

Etusivu
Poista viesti
Vastaa
Lähettäjä: Odhiambo G. Washington
Päiväys:  
Vastaanottaja: exim-users
Kopio: m.meinardi
Aihe: Re: [exim] Courier userdb SMTP auth
* On 02/08/06 14:39 +0200, Marco Meinardi wrote:
[snip]

| My exim4.conf contains following lines:
| 
| ----------------------------------------
| # LOGIN authenticator
| login:
|    driver = plaintext
|    public_name = LOGIN
|    server_prompts = Username:: : Password::
|    server_condition = ${extract {address} {${readsocket{AUTHDAEMON_SOCKET} \
|      {AUTH ${strlen:exim\nlogin\n$1\n$2\n}\nexim\nlogin\n$1\n$2\n}}}{yes}fail}
|    server_set_id = $1
| 
| # PLAIN authenticator
| plain:
|    driver = plaintext
|    public_name = PLAIN
|    server_prompts = :
|    server_condition = ${extract {address} {${readsocket{AUTHDAEMON_SOCKET} \
|      {AUTH ${strlen:exim\nlogin\n$2\n$3\n}\nexim\nlogin\n$2\n$3\n} }} 
| {yes} fail}
|    server_set_id = $2
| ----------------------------------------


I'll assume the macro AUTHDAEMON_SOCKET is correctly defined, and that
it refers to a line that you have extracted from authdaemonrc.
Mine, on FreeBSD, is:

authdaemonvar=/var/run/authdaemond

Such that my macro is:

AUTHDAEMON_SOCKET = /var/run/authdaemond/socket

May I also assume that you have tested that you can login to the
IMAP4/POP3 server before you thought of getting Exim to auth against it?


Here are my directory permissions:

20$ sudo ls -al /var/run/authdaemond/
total 6
drwxr-x---   2 courier  courier   512 29 Jul 02:49 .
drwxr-xr-x  10 root     wheel    1024  2 Aug 13:43 ..
-rw-r--r--   1 root     courier     4 29 Jul 02:49 pid
-rw-------   1 root     courier     0 29 Jul 02:49 pid.lock
srwxrwxrwx   1 root     courier     0 29 Jul 02:49 socket



Your authenticators are fine if they came from the following wiki entry:
http://www.exim.org/eximwiki/FAQ/Policy_controls/Q0730

Can you login to the IMAP server by hand???


        cheers
       - wash 
+----------------------------------+-----------------------------------------+
Odhiambo Washington                    . WANANCHI ONLINE LTD (Nairobi, KE)  |
wash () WANANCHI ! com            . 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223            . # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121            . (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"  
                         --from a /. post