Percent character in mail_crypt_private_password not possible
aki.tuomi at open-xchange.com
Tue Jul 2 19:21:03 EEST 2019
> I am using the mail_crypt plugin with Dovecot 2.3 and have issues trying to use a mail crypt private password which contains a percent "%" character as you can see below:
> $ doveadm -o plugin/mail_crypt_private_password=SomethingWith\%Percent mailbox cryptokey generate -u email at domain.tld -URf
> doveadm(email at domain.tld): Error: Failed to expand plugin setting mail_crypt_private_password = 'SomethingWith%Percent': Unknown variable '%P'
> Note here that the percent is escaped with a backslash "\%" in order for the shell not to process it.
Hi, you need to escape % with %%. We are aware of a bug affecting when % comes in from some field via userdb, and we are looking into how to fix this.
More information about the dovecot