Issue Description
While following the Dovecot/Postfix migration guide, I encountered multiple inconsistencies between the published documentation and the currently released Stalwart Server (0.16.8) and stalwart-cli (1.0.8).
The migration guide states that accounts can be created using a full email address:
stalwart-cli create Account/User
–field name=alice@example .org
–field description=“Alice”
and that password hashes can be imported using:
stalwart-cli update Account alice@example .org
–field ‘secret=$6$rounds=5000$…’
However, the released versions do not appear to behave as documented.
Additionally, the CLI documentation indicates objects can be referenced by name:
stalwart-cli get Domain example .org
but the released CLI only appears to accept internal object IDs.
Expected Behavior
Account Creation
The migration guide suggests the following should work:
stalwart-cli create Account/User
–field name=alice@example .org
–field description=“Alice”
Password Import
The migration guide suggests:
stalwart-cli update Account alice@example .org
–field ‘secret=’
should update the account password hash.
Object Lookup
The documentation states:
stalwart-cli get Domain example .org
should retrieve the domain object by name.
Actual Behavior
Password Import
stalwart-cli update Account alice@example .org
–field ‘secret=’
returns:
error: unknown field: secret
Domain Lookup
stalwart-cli get Domain example .org
returns:
error: Domain example .org not found
However:
stalwart-cli query Account
returns:
Id Email Address Description
c alice@example .org Alice
and:
stalwart-cli get Domain c
returns:
Domain
Domain Name: example .org
Aliases:
Enabled: Yes
which suggests the CLI is expecting internal object IDs rather than names.
Account Creation
The account eventually appears in:
stalwart-cli query Account
but earlier attempts produced:
error: invalidPatch
Invalid email local part
Properties: name
making it unclear whether the migration guide examples are valid for the currently released versions.
Stalwart Version
v0.16.x
Installation Method
Binary (Linux)
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
Additional Context
The migration guide was published approximately 3 days ago.
The currently available versions appear to be:
Stalwart CLI 1.0.8 (released ~2 weeks ago)
Stalwart Server 0.16.8 (released ~1 week ago)
This suggests the migration documentation may describe functionality that has not yet reached the released server/CLI, or there may be undocumented differences in the expected syntax.
The accounts above have been renamed to not show live data/domains and the “Alice” account was created in the Web GUI to attempt setting it up.
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on