Re: [exim] Courier userdb SMTP auth

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Marco Meinardi
Datum:  
To: Odhiambo G. Washington, exim-users
Betreff: Re: [exim] Courier userdb SMTP auth
Dear All,

thanks Odhiambo for your answer, and sorry for delay I've been away for
a while.

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


Yes sorry I forgot to include this line:
AUTHDAEMON_SOCKET = /var/run/courier/authdaemon/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?


Yes sure I do login with an IMAP client and also by hand:

telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc.
See COPYING for distribution information.
a01 login marco.meinardi@??? mm$2003
a01 OK LOGIN Ok.
a02 logout
* BYE Courier-IMAP server shutting down
a02 OK LOGOUT completed

So, I understand my issue is quite complicated to understand and my main
question is how can I debug the returned value of the socket? I wish to
understand why it fails...
Thanks a lot again!
Marco

Odhiambo G. Washington wrote:
> * 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

>
>


--
Marco Meinardi <m.meinardi@???>

ReteItaly S.r.l.
www.reteitaly.com
_____________________________________________

C.so Svizzera, 185 - 10149 Torino - Italy
Tel. +39 011 7767694 - Mobile +39 335 7878604
Fax +39 011 746179
_____________________________________________