1.1 KiB
1.1 KiB
Mail Server: Deployment
-
Create MX and TXT records
-
Set a password for the "main" virtual inbox:
echo main:$(doveadm pw -s BLF-CRYPT) >> files/$TARGET/imap.passwd
-
Copy a vars/targets file, update the values, and run this playbook
Sanity check opendkim (may need restart):
l /var/spool/postfix/opendkim/opendkim.sock
-
look at the maildir uid/gid in main.cf and use those in the imap.passwd file (switching to the dovecot role will fix that later)
-
configure some virtual aliases in /etc/postfix/virtual and run:
postmap virtual vmailbox
See
man 5 postconf
for details. -
Sanity check: https://mxtoolbox.com/
-
(optional) Create another TXT record for DKIM using the contents of /etc/dkimkeys/mail.txt
- See scripts/print-rdata.py for an example of how to parse mail.txt
- See octodns and dnscontrol
-
(optional) After records propogate, verify outbound mail using: https://www.mail-tester.com/