mailsystem/README.md
Izuru Yakumo d993c43689 Giving this a second and final chance
Signed-off-by: Izuru Yakumo <eternal-servant@yakumo.dev>
2025-04-11 19:29:21 -03:00

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, `

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';