Running doveadm without config file?

Sami Ketola sami.ketola at dovecot.fi
Fri May 29 23:15:30 EEST 2020



> On 29. May 2020, at 23.09, Joseph Tam <jtam.home at gmail.com> wrote:
> 
> 
> It would be useful to run the "doveadm" utility on a non-dovecot server e.g.
> generating password hashes:
> 
> 	# echo plaintextpass | doveadm pw -s BLF-CRYPT
> 	doveadm(user): Fatal: Error reading configuration: stat(/etc/dovecot/dovecot.conf) failed: No such file or directory
> 
> Is there a way to circumvent the need for a configuration file?

I don't think so. But you can specify the location of the config file with -c /path/to/file

like

echo -n plaintextpass | doveadm -c /root/emptyfile.conf pw -s SHA1

Sami



More information about the dovecot mailing list