(Notes primarily for my own reference.)
I want this so that I don’t have to set up a bunch of generic accounts for each machine, seems like it could very quickly spiral into a maintenance nightmare. Keep in mind that most Google Workplace orgs will block these for many reasons. Somehow, Microsoft doesn’t seem to care.
I settled on this docker image after trying the following:
Once you’ve got Docker set up:
docker run `
--name postfix `
-e "ALLOWED_SENDER_DOMAINS=localhost" `
--restart always `
-p 1587:587 `
boky/postfix
When sending emails, make sure to set the server to localhost:1587
.
You may be operating this from a network where the MX records aren’t working for one reason or another. You can manually specify the IP address to route the emails to using the following:
docker run `
--name postfix `
-e "ALLOWED_SENDER_DOMAINS=localhost" `
--restart always `
-p 1587:587 `
-e "POSTFIX_disable_dns_lookups=yes" `
--add-host [DOMAIN NAME]:[MX RECORD IP] `
boky/postfix
You can find the MX record IP using a tool like MXToolbox.
Comments are currently disabled.
By enabling comments, you agree to allow this website to connect to Cusdis and to the Cusdis Privacy Policy.