@homelab
Okay, someone asked a fair question: why a mail relay?
Both Azure and AWS (probably GCP as well) built their email services to be used by an app hosted on the platform itself. So, in order to send from outside, you need to use authenticated SMTP (with TLS, obviously).
Since I don't want to go through the trouble of configuring each of my home lab apps with SMTP authentication, I just configured a Postfix relay for that. This way my apps can send internally to the relay (with TLS as well), which will forward to Azure, which will make the final delivery.
It's not a requirement, it's simply an implementation choice.
And in case anyone would like to spin up such a relay, I have used this Helm Chart below.
https://artifacthub.io/packages/helm/docker-postfix/mail
#HomeLab #Kubernetes #Azure