[Dovecot] local AND virtual mail locations ?

LuKreme kremels at kreme.com
Fri Aug 30 23:24:41 EEST 2013


On 30 Aug 2013, at 12:52 , Pierre-Philipp Braun <pbraun at nethence.com> wrote:

>    mail_location = mbox:~/

Well, first of all, why are you using mbox?

truncated output from my doeveconf -n

# for Local users
mail_location = maildir:~/Maildir

For SQL users
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  default_fields = uid=vpopmail gid=vchkpw mail_location=/usr/local/virtual/%u
  driver = sql
}

Notice that using default_fields I am able to respecify the mail_location for the sql users. You should be able to do something similar, right?

Of course, you are using dovecot 1.x, so maybe it's more difficult?

Still, mbox is bad. No one should use mbox.

-- 
"Is that a star?" "Nah, that's Ted Danson."



More information about the dovecot mailing list