Running doveadm without config file?
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?
Joseph Tam jtam.home@gmail.com
On 29. May 2020, at 23.09, Joseph Tam jtam.home@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
On Fri, 29 May 2020, Sami Ketola wrote:
# 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
Thanks, Sami.
I tried this with /dev/null and /tmp/empty.conf but ran into another wall
doveadm(root): Fatal: execv(/usr/bin/doveconf) failed: No such file or directory
Joseph Tam jtam.home@gmail.com
On 29. May 2020, at 23.43, Joseph Tam jtam.home@gmail.com wrote:
On Fri, 29 May 2020, Sami Ketola wrote:
# 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
Thanks, Sami.
I tried this with /dev/null and /tmp/empty.conf but ran into another wall
doveadm(root): Fatal: execv(/usr/bin/doveconf) failed: No such file or directory
How did you install dovecot on that system since /usr/bin/doveconf is part of the base package?
Sami
Sami Ketola sami.ketola@dovecot.fi writes:
I tried this with /dev/null and /tmp/empty.conf but ran into another wall
doveadm(root): Fatal: execv(/usr/bin/doveconf) failed: No such file or directory
How did you install dovecot on that system since /usr/bin/doveconf is part of the base package?
Manual install: not using a package manager. (I've edited the doveconf location, but you've outed me.) I was hoping to get "doveadm pw" working on non-dovecot servers without having to provide seemingly irrelevant dependencies, but it's probably more bother than its worth. Thanks, anyways.
Joseph Tam jtam.home@gmail.com
participants (2)
-
Joseph Tam
-
Sami Ketola