1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00
Files
go-chasquid-smtp/docs/man/chasquid-util.1.pod
Alberto Bertogli e6c6df457d chasquid-util: Use server for aliases-resolve and domaininfo-remove
This patch makes chasquid-util's aliases-resolve and domaininfo-remove
commands talk to the chasquid server (via the new localrpc server).

For aliases-resolve, currently has fairly hacky logic which reimplements
a bunch of the servers', and is also incomplete because it does not
support hooks.

In this patch we fix that by having it talk to the server, where we get
authoritative responses and have no issues with aliases hooks. This
resolves https://github.com/albertito/chasquid/issues/18.

For domaininfo-remove, currently its implementation is also very hacky
since it manipulates files behind the servers' back and without even
using the internal library.

In this patch we fix that by doing the operation through the server,
avoiding the need for those hacks, and also remove the need to manually
reload the server afterwards.
2023-07-30 13:21:07 +01:00

69 lines
1.4 KiB
Plaintext

=head1 NAME
chasquid-util - chasquid management tool
=head1 SYNOPSIS
B<chasquid-util> [I<options>] user-add I<user@domain> [--password=I<password>]
B<chasquid-util> [I<options>] user-remove I<user@domain>
B<chasquid-util> [I<options>] authenticate I<user@domain> [--password=I<password>]
B<chasquid-util> [I<options>] check-userdb I<domain>
B<chasquid-util> [I<options>] aliases-resolve I<addr>
B<chasquid-util> [I<options>] domaininfo-remove I<domain>
B<chasquid-util> [I<options>] print-config
=head1 DESCRIPTION
chasquid-util is a command-line utility for chasquid(1) operations.
=head1 OPTIONS
=over 8
=item B<user-add> I<user@domain> [--password=I<password>]
Add a new user to the domain.
=item B<user-remove> I<user@domain>
Remove the user from the domain.
=item B<authenticate> I<user@domain> [--password=I<password>]
Check the user's password.
=item B<check-userdb> I<domain>
Check the integrity of the domain's users database.
=item B<aliases-resolve> I<addr>
Resolve the given address. Talks to the running chasquid instance.
=item B<domaininfo-remove> I<domain>
Remove the domain information entry. This can be used to manually allow a
security level downgrade. Talks to the running chasquid instance.
=item B<print-config>
Parse and print the configuration in a human-readable way.
=item B<-C> or B<--configdir=<path>>
Configuration directory.
=back
=head1 SEE ALSO
chasquid(1)