[exim] Antwort: exim4 and courier userdb

Page principale
Supprimer ce message
Répondre à ce message
Auteur: srunschke
Date:  
À: Marco Meinardi
CC: exim-users
Sujet: [exim] Antwort: exim4 and courier userdb
exim-users-bounces@??? schrieb am 21.06.2006 16:32:47:

> I'm trying to set up exim4 with courier imap integration.
> I'm not going to use local users (I mean not those contained in
> /etc/passwd) but I want to use /etc/courier/userdb database file.
> Of course my mail server will be multi-domain.


I don't know how to manage that using the userdb file...
But instead I propose using the mysql-authdaemon of courier
with those authenticators:

begin authenticators

 plain_courier_authdaemon:
   driver = plaintext
   public_name = PLAIN
   server_condition = \
                ${if eq {${readsocket{/var/run/courier/authdaemon/socket}\
                {AUTH 
${strlen:exim\nlogin\n$2\n$3\n}\nexim\nlogin\n$2\n$3\n}}}{FAIL\n}{no}{yes}}
   server_set_id = $2
   .ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS
   server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}}
   .endif


 login_courier_authdaemon:
   driver = plaintext
   public_name = LOGIN
   server_prompts = Username:: : Password::
   server_condition = ${if eq 
{${readsocket{/var/run/courier/authdaemon/socket} \
                 {AUTH 
${strlen:exim\nlogin\n$1\n$2\n}\nexim\nlogin\n$1\n$2\n}}}{FAIL\n}{no}{yes}}
   server_set_id = $1
   .ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS
   server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}}
   .endif


Works like a charm for me.

regards
        Sascha


--
Sascha Runschke
Netzwerk Administration
IT-Services

ABIT AG
Robert-Bosch-Str. 1
40668 Meerbusch

Tel.:+49 (0) 2150.9153.226
Mobil:+49 (0) 173.5419665
mailto:SRunschke@abit.de

http://www.abit.net
http://www.abit-epos.net
---------------------------------
Sicherheitshinweis zur E-Mail Kommunikation /
Security note regarding email communication:
http://www.abit.net/sicherheitshinweis.html