Dovecot: Probelem mit %d in args von passwd-file


LonelyStar

New Member
Hallo,

Ich probiere dovecot mithilfe dieser Anleitung zu konfigurieren:
W3 Style Blog Archive Virtual E-mail domains with Exim4 and Dovecot
Die Idee ist folgende:
In /etc/vmail gibt es ein Verzeichnis für jede domain. In diesem Verzeichnis gibt es eine Datei (users), die ähnlich wie /etc/passwd login informationen gibt.

Die Aushabe von dovecot -n ist hier:
Code:
dovecot -n
# 1.1.4: /etc/dovecot/dovecot.conf
Warning: mail_extra_groups setting was often used insecurely so it is
now deprecated, use mail_access_groups or mail_privileged_group
instead
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot.info.log
ssl_cert_file: /etc/exim4/exim.crt
ssl_key_file: /etc/exim4/exim.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable: /usr/lib/dovecot/imap-login
login_greeting: This is Dovecot, and it is ready.
login_process_per_connection: no
login_max_connections: 10
max_mail_processes: 64
verbose_proctitle: yes
mail_extra_groups: mail
mail_access_groups: mail
mail_location: maildir:%h/Maildir
mail_full_filesystem_access: yes
auth default:
 mechanisms: plain digest-md5 cram-md5
 passdb:
   driver: passwd-file
   args: /etc/vmail/%d/users
 userdb:
   driver: passwd-file
   args: /etc/vmail/%d/users
[/CODE]
Ich habe eine test domain mit password datei angelegt.
/etc/vmail/my-domain.de/users sieht so aus:
Code:
test-user:{PLAIN}test:1002:100::/home/test-user::

Mein Login versuch:
Code:
telnet 127.0.0.1 143
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
* OK This is Dovecot, and it is ready.
a01 LOGIN [email protected] test
a01 NO Authentication failed.
Es funktioniert nich, aber wenn ich das %d in der config zu my-domain.de ändere, geht es!

Was läuft hier falsch?

Thanks!
Nathan
 

Back
Top