add 'test it' sectiopn
This commit is contained in:
parent
8a218dbe5a
commit
6a6f5c32b7
1 changed files with 33 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ chown root:root /etc/dovecot/conf.d/auth-sql.conf.ext
|
|||
chmod go= /etc/dovecot/conf.d/auth-sql.conf.ext
|
||||
```
|
||||
|
||||
## Restart Dovecot
|
||||
## Restart and test
|
||||
|
||||
Restart Dovecot from the shell:
|
||||
|
||||
|
|
@ -207,3 +207,35 @@ journalctl -n 10 -fu dovecot
|
|||
If you prefer the old way of having log files, just install the `rsyslog` package.
|
||||
|
||||
</Aside>
|
||||
|
||||
<Aside icon="approve-check-circle" title="Test it">
|
||||
|
||||
To test the `userdb` query:
|
||||
|
||||
```sh
|
||||
doveadm user john@example.org
|
||||
```
|
||||
|
||||
That should give you:
|
||||
|
||||
```
|
||||
field value
|
||||
uid
|
||||
gid
|
||||
home /var/vmail/example.org/john
|
||||
mail_path /var/vmail/example.org/john/Maildir
|
||||
```
|
||||
|
||||
To test the `iterate` query that gets a list of all users:
|
||||
|
||||
```sh
|
||||
doveadm user '*'
|
||||
```
|
||||
|
||||
As there is currently only one user the output should be:
|
||||
|
||||
```
|
||||
john@example.org
|
||||
```
|
||||
|
||||
</Aside>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue