[Dovecot] passwd not found
Erik - versatel
edgrootjans at versatel.nl
Wed Jul 20 10:53:59 EEST 2011
If I use in dovecot.conf
passdb passwd-file {
args = /etc/dovecot/vhosts/%d/etc/shadow
}
userdb static {
args = uid=virtual gid=virtual home=/var/mail/vhosts/%d/%u
allow_all_users=yes
}
I get an authorisation failure in my mail.log file.
If I use
passdb passwd-file {
args = /etc/dovecot/vhosts/shadow
}
userdb static {
args = uid=virtual gid=virtual home=/var/mail/vhosts/%d/%u
allow_all_users=yes
}
This works !!! (without the %d) in the passdb passwd-file
Than the %d/%u is correctly rewritten in the userdb static.
PS I have in the passwd-file the username at domain and the username documented
for testing.
I think there is some problem with the %d (DOMAIN)
How can I check if %d is filled ??
And how can i make different authorisationdirs and files per domain.
Thanks
Erik
My config
# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-686 i686 Debian 6.0.2 ext4
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps pop3 pop3s
ssl_cert_file: /etc/ssl/certs/server.crt
ssl_key_file: /etc/ssl/private/server.key
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_privileged_group: mail
mail_location: maildir:/var/mail/vhosts/%d/%n/Maildir
mail_debug: yes
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
auth default:
mechanisms: plain login
passdb:
driver: passwd-file
args: /etc/dovecot/vhosts/shadow
userdb:
driver: static
args: uid=virtual gid=virtual home=/var/mail/vhosts/%d/%u
allow_all_users=yes
socket:
type: listen
client:
path: /var/spool/postfix/private/auth-client
mode: 432
user: postfix
group: postfix
More information about the dovecot
mailing list