Well, after an awful lot of faffing about, I have finally got a working configuration of a Postfix relay in the cloud for incoming mail, and a local Postfix + Dovecot + LDAP configuration, such that Postfix hands off local delivery to Dovecot. next up is mail sending. I’m hoping that now I’ve changed my login email to my own domain, Mailjet will automatically remove the restrictions on my account, so I don’t have to deal with their support people.
Details of how I got it all working yet to come. I also need to completely re-do my ansible configuration and validate that. I ended up completely blowing away my setup and starting from scratch with Ubuntu’s “mail-stack-delivery” meta-package, which does most of the work of setting up Postfix and Dovecot to work together. I did in the end have to make some significant changes to that setup, too, because I want my email stored in files that are accessible by the LDAP user accounts. I ended up installing “dovecot-lmtp” to solve my file access permissions issues.
Anyway, details to come.