Postfix and Opendkim
Sep 8, 2018 01:51 · 78 words · 1 minute read
Installing Postfix and OpenDKIM on Ubuntu 18.04
1. Use APT to install postfix and opendkim
sudo apt install postfix opendkim mailutils
sudo gpasswd -a postfix opendkim
2. In the postfix config screens, set the following options
General type of mail configuration?: Internet Site
System mail name: <hostname>
Other destinations to accept mail for: accept defaults
Local networks: accept defaults
3. Create dkim keys
4. Connect Postfix to OpenDKIM
sudo mkdir /var/spool/postfix/opendkim
sudo chown opendkim:postfix /var/spool/postfix/opendkim
Credit to https://www.linuxbabe.com/mail-server/setting-up-dkim-and-spf