Hi all, Thanks in advance for any help! I'm trying to configure Dovecot to pull emails from Postfix virtual mailbox domain Maildirs under /var/mail/vhosts/<domain>/<username>. I've set mail_location as such in dovecot.conf: mail_location = maildir:/var/mail/vhosts/%d/%n but from debug output I see the domain is blank: dovecot: May 10 20:49:25 Info: IMAP(elliott): maildir: data=/var/mail/vhosts//elliott I've set elliott at n.0o0.bz as my username in Outlook so it is sending the domain (and changed auth_username_format to "auth_username_format = %n" so authentication works fine) Why is %d blank here? Anything else to check?? I'm at a loss. Thanks! -elliott-
On Sun, 2009-05-10 at 22:17 -0700, elliott at n.localhost wrote:> but from debug output I see the domain is blank: > > dovecot: May 10 20:49:25 Info: IMAP(elliott): maildir: data=/var/mail/vhosts//elliott > > I've set elliott at n.0o0.bz as my username in Outlook so it is sending the domain (and changed auth_username_format to "auth_username_format = %n" so authentication works fine)Having auth_username_format=%n changes the username to only "user" and the domain is gone. You'd need to do it in some other way. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090511/1ce32c93/attachment-0002.bin>
On Mon, May 11, 2009 at 12:31:19PM -0400, Timo Sirainen wrote:> On Sun, 2009-05-10 at 22:17 -0700, elliott at n.localhost wrote: > > > but from debug output I see the domain is blank: > > > > dovecot: May 10 20:49:25 Info: IMAP(elliott): maildir: data=/var/mail/vhosts//elliott > > > > I've set elliott at n.0o0.bz as my username in Outlook so it is sending the domain (and changed auth_username_format to "auth_username_format = %n" so authentication works fine) > > Having auth_username_format=%n changes the username to only "user" and > the domain is gone. You'd need to do it in some other way.Any suggestions on how? I was trying to avoid adding a local user for every mailbox; is that the only way? Thanks, I'm pretty new to dovecot. Cheers, -elliott-
On Mon, May 11, 2009 at 12:31:19PM -0400, Timo Sirainen wrote:> On Sun, 2009-05-10 at 22:17 -0700, elliott at n.localhost wrote: > > > but from debug output I see the domain is blank: > > > > dovecot: May 10 20:49:25 Info: IMAP(elliott): maildir: data=/var/mail/vhosts//elliott > > > > I've set elliott at n.0o0.bz as my username in Outlook so it is sending the domain (and changed auth_username_format to "auth_username_format = %n" so authentication works fine) > > Having auth_username_format=%n changes the username to only "user" and > the domain is gone. You'd need to do it in some other way. >Okay, I've now also tried changing "auth_username_format = %n-%d" and adding a user for each account. Authentication works fine but I still get "maildir: data=/var/mail/vhosts//elliott-n.0o0.bz" in the logs! What's the deal? When does the %d variable get set and how can I use it?? Thanks for any pointers! -elliott-