From 7f0e05909deef3276b4df6109dcdafaea476ec98 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 5 Oct 2021 09:34:51 +0200 Subject: [PATCH] update readme --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index b546278..03e66fa 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,29 @@ Uses [SSMTP](https://packages.debian.org/stable/mail/ssmtp) to send mails (for example if you have a redirect sieve rule). + +``` +create table if not exists virtual_domains ( + id serial primary key, + name text not null +); + +create table if not exists virtual_users ( + id serial primary key, + domain_id integer not null references virtual_domains(id), + email text not null, + destination text not null +); + + +create table if not exists virtual_aliases ( + id serial primary key, + domain_id integer not null references virtual_domains(id), + source text not null, + destination text not null +); +``` + # Volumes - `/var/lib/vmail/mail`