question about %u and %h used in mail_location

Timo Sirainen timo at sirainen.com
Tue Mar 12 23:42:18 EET 2019


On 12 Mar 2019, at 12.04, Joe Wong via dovecot <dovecot at dovecot.org> wrote:
> 
> Hello,
> 
>  I have defined the following: 
> 
> mail_location = maildir:~:INBOX=~/Maildir:LAYOUT=fs:INDEX=%u
> 
> %u is retrieve via database in that my username contain ":", in which it create some confusion to dovecot:
> 
> doveadm index -u user1:site at domain iNBOX
> doveadm(user1:site at domain): Error: remote(192.168.10.22:24245 <http://192.168.10.22:24245/>): Namespace '': Unknown setting: site at domain
> 
> I cannot change the value in DB so is there a workaround to this problem?

Convert the username to not have ':' when it comes out of auth. Could be possible with SQL userdb. With others .. I'm not sure, you might have to use Lua to convert it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20190312/9387bd07/attachment-0001.html>


More information about the dovecot mailing list