change "mox setaccountpassword" to use an account name as parameter, not email address

because with the name you would expect an account name.
and the email-resolving behaviour is surprising: with wildcard addresses you
can use any address, including a typo. you would change the password of the
address with the wildcard, without any warning. accounts are more precise and
less error-prone.

for issue #68 by x8x
This commit is contained in:
Mechiel Lukkien
2023-09-23 17:18:49 +02:00
parent 8c2814df89
commit f1f3135135
7 changed files with 19 additions and 15 deletions

8
doc.go
View File

@ -16,7 +16,7 @@ low-maintenance self-hosted email.
mox serve
mox quickstart [-existing-webserver] [-hostname host] user@domain [user | uid]
mox stop
mox setaccountpassword address
mox setaccountpassword account
mox setadminpassword
mox loglevels [level [pkg]]
mox queue list
@ -156,9 +156,11 @@ password itself, are stored in the account database. The stored secrets are for
authentication with: scram-sha-256, scram-sha-1, cram-md5, plain text (bcrypt
hash).
Any email address configured for the account can be used.
The parameter is an account name, as configured under Accounts in domains.conf
and as present in the data/accounts/ directory, not a configured email address
for an account.
usage: mox setaccountpassword address
usage: mox setaccountpassword account
# mox setadminpassword