Elod
2008-May-13 16:47 UTC
[Dovecot] missing slash when concatenating strings from userdb static?
Dovecot version: 1.0.13
Linux: Debian Testing (kernel 2.6.22)
Fs: local
# 1.0.13: /etc/dovecot/dovecot.conf
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap pop3
disable_plaintext_auth: no
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
valid_chroot_dirs: /home/email
mail_chroot: /home/email
first_valid_uid: 109
last_valid_uid: 109
first_valid_gid: 65534
last_valid_gid: 65534
mail_access_groups: nogroup
mail_privileged_group: mail
mail_location: maildir:~/Maildir
maildir_copy_with_hardlinks: yes
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
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
passdb:
driver: passwd-file
args: /home/email/%d/passwd
userdb:
driver: static
args: uid=email gid=nogroup home=/%d/%n
It finds mails with "/%d/%n" but not with "%d/%n".
At another site I have the same version, but with an SQL backend. That
one works beautifully with relative (to chroot dir) paths.
--
Valkai El?d
Timo Sirainen
2008-May-15 05:39 UTC
[Dovecot] missing slash when concatenating strings from userdb static?
On Tue, 2008-05-13 at 19:47 +0300, Elod wrote:> userdb: > driver: static > args: uid=email gid=nogroup home=/%d/%n > > > It finds mails with "/%d/%n" but not with "%d/%n". > > At another site I have the same version, but with an SQL backend. That > one works beautifully with relative (to chroot dir) paths.Relative paths aren't really even supposed to work. I'm not even sure how they should be handled. So for now they either work or don't, depending on several things.. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080515/a5611df4/attachment-0002.bin>