Hello, Dovecot. I'm using postfix + dovecot with pure virtual users. postfix uses standard virtual transport, and dovecot fetches such fields from userdb: chroot: "/usr/home/hosted/v-mail/%d/%n" home: "/" mail: "maildir:." Everything works Ok -- dovecot founds users' mail. Now, after upgrade to dovecot2, I want to use it LMTP server as virtual_transport in postifx. I've changed virtual_transport setting to "lmtp:unix:/var/run/dovecot/lmtp". dovecot's LMTP can not deliver messages, because it seems that it uses userdb fields in some OTHER way. Errors look like this: Jan 20 12:19:25 lmtp(38939): Info: Connect from local Jan 20 12:19:25 auth: Info: mysql: Connected to /tmp/mysql.sock (mailhost) Jan 20 12:19:25 lmtp(38939, lev at domain.com): Error: mkdir(./cur) in directory /var/run/dovecot failed: Permission denied (euid=30000(v-mail) egid=30000(v-mail) missing +w perm: ., euid is not dir owner) Jan 20 12:19:25 lmtp(38939, lev at domain.com): Error: Opening INBOX failed: Mailbox doesn't exist: INBOX Jan 20 12:19:25 lmtp(38939, lev at domain.com): Error: mkdir(./cur) in directory /var/run/dovecot failed: Permission denied (euid=30000(v-mail) egid=30000(v-mail) missing +w perm: ., euid is not dir owner) Jan 20 12:19:25 lmtp(38939, lev at domain.com): Info: XXVtE00oOE0bmAAAWL5c8Q: msgid=unspecified: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2011-01-20 12:19:25] Jan 20 12:19:25 lmtp(38939, lev at domain.com): Error: BUG: Saving failed to unknown storage Jan 20 12:19:25 lmtp(38939): Info: Disconnect from local: Client quit How should I change my userdb output to make both POP/IMAP and LMTP processes happy? -- // Black Lion AKA Lev Serebryakov <lev at serebryakov.spb.ru>
Lev Serebryakov wrote:> Hello, Dovecot. > > > I'm using postfix + dovecot with pure virtual users. postfix uses > standard virtual transport, and dovecot fetches such fields from > userdb: > > chroot: "/usr/home/hosted/v-mail/%d/%n" > home: "/" > mail: "maildir:." > > Everything works Ok -- dovecot founds users' mail. > > Now, after upgrade to dovecot2, I want to use it LMTP server as > virtual_transport in postifx. I've changed virtual_transport setting > to "lmtp:unix:/var/run/dovecot/lmtp". > > dovecot's LMTP can not deliver messages, because it seems that it > uses userdb fields in some OTHER way. Errors look like this: > > Jan 20 12:19:25 lmtp(38939): Info: Connect from local > Jan 20 12:19:25 auth: Info: mysql: Connected to /tmp/mysql.sock > (mailhost) Jan 20 12:19:25 lmtp(38939, lev at domain.com): Error: > mkdir(./cur) in directory /var/run/dovecot failed: Permission denied > (euid=30000(v-mail) egid=30000(v-mail) missing +w perm: ., euid is not > dir owner)That looks like dovecot is trying to create a mailbox (./cur) in the base directory (/var/run/dovecot)> How should I change my userdb output to make both POP/IMAP and LMTP > processes happy?For starters, I think you need to return a field "mail" containing perhaps: maildir:/usr/home/hosted/v-mail/domain/user /Per Jessen, Z?rich
Hello, Per. You wrote 20 ?????? 2011 ?., 18:30:44:>> chroot: "/usr/home/hosted/v-mail/%d/%n" >> home: "/" >> mail: "maildir:."> For starters, I think you need to return a field "mail" containing > perhaps: > maildir:/usr/home/hosted/v-mail/domain/userThen IMAP4/POP3 processes will do chroot to "/usr/home/hosted/v-mail/domain/user" and will try to find "maildir:/usr/home/hosted/v-mail/domain/user" RELATIVE to chroot. Mail will be delivered, but can not be acessed. -- // Black Lion AKA Lev Serebryakov <lev at serebryakov.spb.ru>
On Thu, 2011-01-20 at 15:21 +0300, Lev Serebryakov wrote:> Jan 20 12:19:25 lmtp(38939, lev at domain.com): Error: mkdir(./cur) in directory /var/run/dovecot failed: Permission denied (euid=30000(v-mail) egid=30000(v-mail) missing +w perm: ., euid is not dir owner)Fixed: http://hg.dovecot.org/dovecot-2.0/rev/0fc2d00f83df -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20110120/0cb9367e/attachment-0002.bin>
Hello, Timo. You wrote 21 ?????? 2011 ?., 0:10:12:> On Thu, 2011-01-20 at 15:21 +0300, Lev Serebryakov wrote: >> Jan 20 12:19:25 lmtp(38939, lev at domain.com): Error: mkdir(./cur) in directory /var/run/dovecot failed: Permission denied (euid=30000(v-mail) egid=30000(v-mail) missing +w perm: ., euid is not dir owner) > Fixed: http://hg.dovecot.org/dovecot-2.0/rev/0fc2d00f83dfSorry, it doesn't. I've added some logging via i_error() (I know, it looks more like i_debug()) and now log shows me: Jan 21 14:01:36 lmtp(17650, lev at domain.com): Error: (LEV-ADDITION) Replace home (/) with chroot (/usr/home/hosted/v-mail/domain.com/lev) Jan 21 14:01:36 lmtp(17650, lev at domain.com): Error: (LEV-ADDITION) Set mail_home to (/usr/home/hosted/v-mail/domain.com/lev) Jan 21 14:01:36 lmtp(17650, lev at domain.com): Error: mkdir(./cur) in directory /var/run/dovecot failed: Permission denied (euid=30000(v-mail) egid=30000(v-mail) missing +w perm: ., euid is not dir owner) Jan 21 14:01:36 lmtp(17650, lev at domain.com): Error: Opening INBOX failed: Mailbox doesn't exist: INBOX Jan 21 14:01:36 lmtp(17650, lev at domain.com): Error: mkdir(./cur) in directory /var/run/dovecot failed: Permission denied (euid=30000(v-mail) egid=30000(v-mail) missing +w perm: ., euid is not dir owner) Jan 21 14:01:36 lmtp(17650, lev at domain.com): Info: gJIWCJBnOU3yRAAAWL5c8Q: msgid=unspecified: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2011-01-21 14:01:36] Jan 21 14:01:36 lmtp(17650, lev at domain.com): Error: BUG: Saving failed to unknown storage Jan 21 14:01:36 lmtp(17650): Info: Disconnect from local: Client quit -- // Black Lion AKA Lev Serebryakov <lev at serebryakov.spb.ru>
Seemingly Similar Threads
- dovecot auth + postifx: how to disable PLAIN and LOGIN without TLS?
- sieve: is it possible to filter ALL mailing lists (with header List-Id) to their folders with ONE rule?
- sieve: variable extension?
- dovecot-sieve (pigeonhole) -- is is possible to "re-filter" INBOX when filters have been updated?
- 7.1-stable (righ after release) locks up on soekris net5501 every day