Piping to doveadm pw

Bernardo Reino reinob at bbmk.org
Wed Jun 16 20:54:05 EEST 2021


On Wed, 16 Jun 2021, Kevin N. wrote:

> Thanks. Reading the manual was the first thing I did before posting to the 
> list.
>
> I'm not sure if this is relevant for the question, but I forgot to mention 
> that the user enters it's password through a 'dialog --passwordbox'.
>
> I guess my question is: it possible to pipe that into 'doveadm pw' directly 
> from memory, without using any kind of on-disk temp file?

$ dialog --passwordbox .. | sed p | doveadm pw

with "sed p" you print explicitly (p) and implicitly (default in sed) the input 
lines (i.e. whatever dialog returns), so doveadm gets the same line twice, as 
required.

Cheers.



More information about the dovecot mailing list