From f4599a75903b99f8723d5b5be596525cb826ae36 Mon Sep 17 00:00:00 2001 From: fernando Date: Sat, 6 Jun 2020 14:36:45 -0500 Subject: [PATCH] Added some extra instruc tions --- src/mailsrv/docs/Deploy.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/mailsrv/docs/Deploy.md b/src/mailsrv/docs/Deploy.md index 1c2cf54..61a0eaf 100644 --- a/src/mailsrv/docs/Deploy.md +++ b/src/mailsrv/docs/Deploy.md @@ -3,18 +3,34 @@ ## create dirs ``` -mkdir -p /srv/volumes/mailserver/{db,mail,ssl} -chown -R 5000:5000 /srv/volumes/mailserver -chmod go-rwx /srv/volumes/mailserver/ssl +sudo mkdir -p /srv/vol/mailsrv/{db,mail,ssl} +sudo chown -R 5000:5000 /srv/vol/mailsrv +sudo chmod go-rwx /srv/vol/mailsrv/ssl ``` put your `users` and `aliases.d` in the `db` directory. Mail will go in the `mail` directory. +``` +sudo -i +cd /srv/vol/mailsrv/db +mkdir aliases.d +``` + +create aliases as needed + +``` +vi /srv/vol/mailsrv/db/users +``` + +format is like a passwd file with user:passwd (no spaces between) + +make sure that all files are owned by 5000:5000 + ## make sure mail ports are open -add the following directives to the `myfirewall` chain in `/etc/nftables`: +add the following directives to the `myfirewall` chain in `/etc/nftables.conf`: ``` # accept incoming SMTP(s) connections - tcp dport {25, 465, 587} accept + tcp dport {25, 587} accept # accept incoming IMAP(s) connections tcp dport {143, 993} accept