Hello, 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. Regards, Mabi
Aki Tuomi
2019-Jul-02 16:21 UTC
Percent character in mail_crypt_private_password not possible
> > > Hello, > > 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. > > Regards, > MabiHi, 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. Aki
??????? Original Message ??????? On Tuesday, July 2, 2019 6:21 PM, Aki Tuomi <aki.tuomi at open-xchange.com> wrote:> 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.Hi Aki, Thank you very much for your very fast answer. I will then simply double the percent character as workaround for now as you suggest.
??????? Original Message ??????? On Tuesday, July 2, 2019 6:21 PM, Aki Tuomi <aki.tuomi at open-xchange.com> wrote:> 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.Aki, I was wondering, does this bug also affect the changing of a cryptokey password using this command: $ doveadm mailbox cryptokey password -u email at domain.tld -n NEW%PASSWORD -o OLD%PASSWORD Do I need here also to double the '%' char in the -n (new password) and -o (old password) parameters ?
Maybe Matching Threads
- Percent character in mail_crypt_private_password not possible
- Percent character in mail_crypt_private_password not possible
- Do encrypted user keys self generate?
- bash script hook lda_mailbox_autocreate for generate mail-crypt user encrypted private key with user password
- bash script hook lda_mailbox_autocreate for generate mail-crypt user encrypted private key with user password