Joseph W. Breu
2006-Jun-29 13:41 UTC
[Dovecot] upgrade from beta9 to rc1 - lost access to messages and folders
Hello All, Upgraded a test machine this morning from beta9 to rc1 and lost access to messages and folders. an strace on the imap process shows it accessing the home directory, but not the mail directory. The two queries that I use are: password_query = SELECT email,crypt as password FROM users WHERE email = '%u' user_query = SELECT homedir AS home, maildir AS mail, 1000 AS uid, 1000 AS gid FROM users WHERE email = '%u' In this example, homedir=/var/spool/mail/filer/storage and maildir=cfu.net/b/r/breu Under beta9, it finds the homedir/maildir correctly as /var/spool/mail/filer/storage/cfu.net/b/r/breu. Under rc1, it accesses /var/spool/mail/filer/storage//mail/ What did I miss during the upgrade? -- Thanks, --------------------------------------------------------- Joseph W. Breu, CCNA phone : +1.319.268.5228 Senior Network Administrator fax : +1.319.266.8158 Cedar Falls Utilities cell : +1.319.493.1686 support: +1.319.268.5221 url : http://www.cfu.net
Timo Sirainen
2006-Jun-29 13:49 UTC
[Dovecot] upgrade from beta9 to rc1 - lost access to messages and folders
On Jun 29, 2006, at 4:41 PM, Joseph W. Breu wrote:> Upgraded a test machine this morning from beta9 to rc1 and lost > access to messages and folders.I don't think I changed anything special in there..> an strace on the imap process shows it accessing the home > directory, but not the mail directory. The two queries that I use > are: > > password_query = SELECT email,crypt as password FROM users WHERE > email = '%u' > user_query = SELECT homedir AS home, maildir AS mail, 1000 AS uid, > 1000 AS gid FROM users WHERE email = '%u' > > > In this example, homedir=/var/spool/mail/filer/storage and > maildir=cfu.net/b/r/breuMail directory shouldn't be relative. Also it'd be better not to rely on Dovecot's autodetection of mailbox format. Change it instead to something like: .., concat('maildir:', homedir, '/', maildir) as mail, ..> Under beta9, it finds the homedir/maildir correctly as /var/spool/ > mail/filer/storage/cfu.net/b/r/breu. Under rc1, it accesses /var/ > spool/mail/filer/storage//mail/Maybe I should change the code so that relative paths are guaranteed to work, or guaranteed to fail. Currently I'm not sure why it would or would not work. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20060629/a011e7ac/attachment.bin>