Compare commits

...

2 Commits

  1. 2
      mailsrv/Containerfile
  2. 16
      mailsrv/docs/Deploy.md

2
mailsrv/Containerfile

@ -29,7 +29,7 @@ ARG FILESUID=5000
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
# install packages we want # install packages we want
RUN apt update -y && apt install -y rsyslog postfix dovecot-imapd dovecot-lmtpd dovecot-sieve cron RUN apt update -y && apt install -y rsyslog postfix dovecot-imapd dovecot-lmtpd dovecot-sieve cron opendkim
# add virtual mail user # add virtual mail user
RUN addgroup --gid ${FILESUID:?} vmail && \ RUN addgroup --gid ${FILESUID:?} vmail && \

16
mailsrv/docs/Deploy.md

@ -3,15 +3,15 @@
## create dirs ## create dirs
``` ```
sudo mkdir -p /srv/vol/mailsrv/{db,mail,ssl} sudo mkdir -p /srv/vol/mailsrv/{data,mail,ssl}
sudo chown -R 5000:5000 /srv/vol/mailsrv sudo chown -R 5000:5000 /srv/vol/mailsrv
sudo chmod go-rwx /srv/vol/mailsrv/ssl 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. put your `users` and `aliases.d` in the `data` directory. Mail will go in the `mail` directory.
``` ```
sudo -i sudo -i
cd /srv/vol/mailsrv/db cd /srv/vol/mailsrv/data
mkdir aliases.d mkdir aliases.d
``` ```
@ -40,13 +40,21 @@ then make sure configuration has taken place by running:
nft -f /etc/nftables.conf nft -f /etc/nftables.conf
``` ```
## set up domain name ## DNS config
Set up a DNS A Record pointing to your host machine. Make sure it works by running: Set up a DNS A Record pointing to your host machine. Make sure it works by running:
``` ```
ping ${dnsname:?} ping ${dnsname:?}
``` ```
### SPF
wildcards *only* work for domains that don't already exist.
### DKIM
### DMARC
## get SSL certificates from letsencrypt ## get SSL certificates from letsencrypt
install acme.sh install acme.sh

Loading…
Cancel
Save