[Dovecot] Trouble with %d in args of passwd-file

Nathan Hüsken nathan.huesken at googlemail.com
Fri Jan 16 22:48:45 EET 2009


Hello,

I am trying to configure my dovecot folowing this guide:
http://www.w3style.co.uk/virtual-domains-with-exim-and-dovecot

I append the output of dovecot -n below. I created
/etc/vmail/my-domain.de/user containing:
test-user:{PLAIN}test:1002:100::/home/test-user::

No I try to login:
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 test-user at my-domain.de test
a01 NO Authentication failed.

It does not work! But when I change the "%d" to my-domain.de, and
login without the domain, it works!

What am I doing wrong?

Thanks!
Nathan

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


More information about the dovecot mailing list