Help with mailer when hosting yii2.0 in kubernetes


I’m now migrating my yii2.0 applications to kubernetes. Previously they were hosted in vms, and mails were sent with postfix servers. Now in kubernetes, Postfix need to be run as root user, but it’s best for containers in kubernetes to run as non-root user. Do you have any advice about this situation?


This is better asked in Docker/Kubernetes forums (Stack exchange, or anywhere else) to get quick answer. Am personally not acquainted with Kubernetes

Someone wrote this, not sure if it is of help: Run a Postfix mail server with TLS and SPF in Kubernetes - TauCeti blog