Mail server
Configuring a mail server involves two aspects:
- π© Sending mails
- π¨ Receiving mails
To avoid having our emails marked as spam, we have to properly configure our mail server and DNS records.
You can send emails after configuring an MTA using:
$ sudo apt install mailutils
$ echo "body" | mail -s "subject" email
Postfix
Postfix (0.4k β) is a well-known MTA.
$ sudo apt install postfix
$ sudo nano /etc/postfix/main.cf
# edit those lines to match:
# inet_interfaces = loopback-only
# mydestination = $myhostname, localhost.$mydomain, $mydomain
$ sudo systemctl restart postfix
π» To-do π»
Stuff that I found, but never read/used yet.
- DMarc
- SPF (SPF, SPF)
- DKim (DKIM with postfix)
- mail-tester.com (wait XXX hours for DNS record changes)