2021-01-05 02:07:09 +00:00
|
|
|
# Dovecot setup
|
|
|
|
|
2021-01-06 20:38:55 +00:00
|
|
|
NOTE: THIS SETUP DOESN'T HANDLE PER-DOMAIN USERS
|
|
|
|
|
|
|
|
First create the database and the tables by importing base.sql
|
2021-01-07 17:13:22 +00:00
|
|
|
Then change the password with `ALTER ROLE dovecot PASSWORD '...';`
|
2021-01-05 02:07:09 +00:00
|
|
|
|
2021-01-06 20:38:55 +00:00
|
|
|
Adding users:
|
2021-01-05 02:07:09 +00:00
|
|
|
|
2021-01-06 20:38:55 +00:00
|
|
|
1. Hash the password with `doveadm pw -s ARGON2I`
|
|
|
|
2. Add the user:
|
2021-01-05 02:07:09 +00:00
|
|
|
```
|
2021-01-06 20:38:55 +00:00
|
|
|
INSERT INTO users ( userid, password, active ) VALUES (
|
|
|
|
'boss',
|
2021-01-05 02:07:09 +00:00
|
|
|
'...',
|
|
|
|
'1'
|
|
|
|
);
|
|
|
|
```
|
2021-01-06 20:38:55 +00:00
|
|
|
3. Add a alias for the user:
|
|
|
|
```
|
|
|
|
INSERT INTO aliases ( target, alias, active ) VALUES (
|
|
|
|
'boss',
|
|
|
|
'management',
|
|
|
|
'1'
|
|
|
|
);
|
|
|
|
```
|