@ -14,7 +14,7 @@ put your `users` and `aliases.d` in the `db` directory. Mail will go in the `mai
add the following directives to the `myfirewall` chain in `/etc/nftables`:
add the following directives to the `myfirewall` chain in `/etc/nftables`:
```
```
# accept incoming SMTP(s) connections
# accept incoming SMTP(s) connections
tcp dport {25, 465} accept
tcp dport {25, 465, 587} accept
# accept incoming IMAP(s) connections
# accept incoming IMAP(s) connections
tcp dport {143, 993} accept
tcp dport {143, 993} accept
@ -38,13 +38,23 @@ install certbot:
apt install certbot
apt install certbot
```
```
if you are using a firewall, you need to figure out how to define a temporary rule allowing http access. For nftables, the rule would be:
if you are using a firewall, you need to figure out how to define a temporary rule allowing http access. For nftables, the rule would be `nft insert rule inet myfilter myfirewall tcp dport 80 accept`.
the application may ask you a few questions. Answer them as you would like. Including the appropriate hooks in the issue command should ensure that those hooks are also included in subsequent renew commands.
the application may ask you a few questions. Answer them as you would like. Including the appropriate hooks in the issue command should ensure that those hooks are also included in subsequent renew commands.
## make users and aliases
```
cd /srv/volumes/mailsrv/db
mkdir aliases.d
touch users
chmod go= users
```
then edit `users` and add aliases lists to `aliases.d`. Don't forget to change its ownership once you're done: