1.1 KiB
1.1 KiB
mailsystem
This is the mail server setup being used at yakumo.dev, it was originally based on RedXen's but it was adapted to use aliases(5)
instead of relying on SQL.
Requirements
- Dovecot and Postfix with PostgreSQL support (there's SQLite 3 support available as well, but has not been tested), as well as the Pigeonhole plugin
- PostgreSQL (tested with 14.x and 15.x, can work with any later version)
- Rspamd (also used for DKIM signing)
Installation
You need to replace several values with your own, such as SYSCONFDIR
, DOMAIN
, LETSENCRYPT_DOMAIN_PART
and MAIL_NAME
Usage
Adding an user
INSERT INTO users ( userid, password, active ) VALUES (
'yuitia',
'...',
'1'
);
Removing an user
DELETE FROM users WHERE userid = 'yuitia';
Updating an user
UPDATE users SET password = '....' WHERE userid = 'yuitia';
UPDATE users SET active = '0' WHERE userid = 'yuitia';