[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debian] Courier-IMAP Probleme



Hallo Stefan,
>From the keyboard of Stefan,

> Hi.
> 
> Ich wollte mal eben schnell einen IMAP-Server bei mir zu Hause
> installieren. :) Der Server wollte aber nicht mal eben schnell laufen.
> 
> Stand: Debian Woody, Kernel 2.4.16. MTA ist exim. Direkt vorher
> lief ein apt-get dist-upgrade.
> 
> Ich habe courier-authdaemon und courier-imap (nebst Abhängigkeiten)
> installiert. Mein Ziel sind Maildir-Folder in /var/mail, jeweils pro Benutzers
> eins, also z.B. /var/mail/stefan/Maildir. Und dort sollen dann die Mails
> landen. Die Zustellung ist kein Problem (mittels exim, Mails landen genau
> dort, wo sie hin sollen). Aber IMAP funktioniert nicht. syslog gibt nur
> folgendes her:
> 
> Dec 20 00:13:50 mauzi imaplogin: Connection, ip=[::ffff:10.0.1.3]
> Dec 20 00:14:02 mauzi imaplogin: LOGIN, user=stefan, ip=[::ffff:10.0.1.3]

Achja, das tolle Logging. Es gibt ein Tool namens authtest im
Quellbaum unter authlib, damit solltest du als erstes die
Userauthentifizierung testen. Ich weiß nicht, ob es im deb
integriert ist.

Authdaemon ist nur ein Wrapper für die tatsächliche
Authentifizierung, welche Methode setzt du ein?
Am sinnvollsten erscheint mir authpam.
Die Datei INSTALL ist sehr lesenswert:
--------------------------------------------------------------------------
 An authentication  module  does  a  few  things besides checking if a
 userid  and  password are valid. It's job also includes specifying the
 location of the primary maildir, and its system user and group id.
--------------------------------------------------------------------------

Und hier noch etwas zu authpam:
---------------------------------------------------------------------------
 It is highly recommended to use authpam wherever the PAM library is available.
 Additionally:  PAM  is used only for password validation. The home
 directory  and  the  user  and group IDs for the account are still
 taken from the system password file.
----------------------------------------------------------------------------

> Mit diversen Clients habe ich schon gebastelt, KMail, mutt, gnus. Leider alles
> ohne Erfolg. Die meisten Infos lieferte bisher noch gnus, der sich immerhin zu
> der Aussage bewegen ließ, dass das Verzeichnis "Maildir" nicht existiere (mutt
> erzählt mir hingegen, die Anmeldung sei fehlgeschlagen).
> 
> Wie also sage ich dem impad, wo er die Mails suchen soll?

man imapd
MAILDIR  -  if  defined,  imapd  changes its directory to the one
specified by this environment variable.  Otherwise imapd changes its directory
to the  one  specified on the command line.

Du kannst es also entweder im init-Skript fixieren oder mit der
Umgebungsvariable. Bei mir steht es im LDAP-Baum:
mailDir: /var/mail/waldemar

Kann ich ja bald eine Courier-IMAP-Support-Center gründen ;)

Aber mach dir nix draus ich habe fast einen Monat gebraucht bis ich
Courier IMAP direkt gegen meinen LDAP authentifizieren konnte. (mit pam_ldap
ging es vorher schon sehr einfach)
Das hat mich damals fast zur Verzweiflung gebracht und ich hätte
fast DOS installiert ;)

bye
    Waldemar

-- 
Are your questions smart enough?
http://www.tuxedo.org/~esr/faqs/smart-questions.html


Reply to: