ansible-role-disposable-mail/docs/DEPLOYMENT.md

1.1 KiB

Mail Server: Deployment

  1. Create MX and TXT records

  2. Set a password for the "main" virtual inbox:

    echo main:$(doveadm pw -s BLF-CRYPT) >> files/$TARGET/imap.passwd
    
  3. 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
    
  4. 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)

  5. configure some virtual aliases in /etc/postfix/virtual and run:

    postmap virtual vmailbox
    

    See man 5 postconf for details.

  6. Sanity check: https://mxtoolbox.com/

  7. (optional) Create another TXT record for DKIM using the contents of /etc/dkimkeys/mail.txt

  8. (optional) After records propogate, verify outbound mail using: https://www.mail-tester.com/