1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-18 14:47:03 +00:00

Log how many things were loaded for each domain

This patch makes chasquid log how many users, aliases and DKIM keys were
loaded for each domain.

This makes it easier to confirm changes, and troubleshoot problems
related to these per-domain configuration files.
This commit is contained in:
Alberto Bertogli
2024-05-10 11:42:07 +01:00
parent e6a9410377
commit aae0367c60
7 changed files with 45 additions and 24 deletions

View File

@@ -1,16 +1,25 @@
# Tests for user management commands.
# Start with a clean slate by removing the database, which could have been
# manipulated by previous tests.
c = rm -f .config/domains/domain/users
c wait 0
c = ./chasquid-util -C=.config user-add user@domain --password=passwd
c <- Added user
c wait 0
c = ./chasquid-util -C=.config check-userdb domain
c <- Database loaded
c <- Database loaded (1 users)
c wait 0
c = ./chasquid-util -C=.config user-add receive@domain --receive_only
c <- Added user
c wait 0
c = ./chasquid-util -C=.config check-userdb domain
c <- Database loaded (2 users)
c wait 0
c = ./chasquid-util -C=.config user-add xxx@domain \
--password=passwd --receive_only
c <- Cannot specify both --receive_only and --password