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

Re: Nach upgrade auf Lenny kein Postfix auth mehr, mit dovecot?



On 06/18/2009 05:49 PM Matthias Haegele wrote:
> 
>> postfix:       Installiert: 2.5.5-1.1
>> dovecot-imapd: Installiert: 1:1.1.13-2~bpo50+1
> 
> Was ich fuer dovecot geaendert habe, damit funktioniert das abrufen der 
> Mails:
> 
>> cat /etc/pam.d/dovecot 
>> #%PAM-1.0
>>
>> @include common-auth
>> @include common-account
>> @include common-session
>>
>> auth    required        pam_unix.so
>> account required        pam_unix.so

Wirf bitte einen Blick in die Dateien /etc/pam.d/common-auth und
/etc/pam.d/common-account. Dein weißt Du hoffentlich warum die Änderung
nicht erforderlich war und bestenfalls rückgängig gemacht werden kann.

> Frueher ging die Authentifizierung fuer postfix ueber (cyrus) sasl, 
> jetzt irgendwie anders ueber dovecot und pam?
> Irgend jemand ne Idee?

Postfix spricht über das chroot zu Docevot, und Dovecot bedient sich bei
PAM.

> 
> Postfix ist im chroot ...

In der main.cf hat es etwa so auszusehen:
,--[ /etc/postfix/main.cf ]--
| ...
| smtpd_sasl_type = dovecot
| smtpd_sasl_path = private/auth
| smtpd_sasl_auth_enable = yes
| smtpd_sasl_security_options = noanonymous
| ...
`--

Ich gehe mal davon aus, dass Du Sytem Accounts nutzen möchtest. (Sonst
kann ich mir das PAM-Zeug weiter oben noch nicht 100%-ig erklären.)

,--[ /etc/dovecot/dovecot.conf ]--
| ...
|auth default {
|  mechanisms = plain login
|  passdb pam {
|  }
|  userdb passwd {
|    args = blocking=yes
|  }
|  # Der nette Herr darf auch /etc/shadow lesen
|  user = root
|  socket listen {
|  master {
|    path = /var/run/dovecot/auth-master
|    mode = 0600
|  }
|  client {
|    path = /var/spool/postfix/private/auth
|    mode = 0660
|    user = postfix
|    group = postfix
|  }
|}
| ...
`--

HowTos gibt es viele. Vielleicht möchtest Du da anfangen:
<http://wiki.dovecot.org/HowTo>
Falls es mit oben Konfigurationsauschnitten noch nicht klappt, zeige
doch mal bitte die Ausgaben von `postconf -n` und `dovecot -n`.


Gruß
Pascal
-- 
The trapper recommends today: cafebabe.0916918@localdomain.org


Reply to: