Relative Content

Tag Archive for emailazure-aks

AKS outbound email configure for SMTP whitelist

I have an AKS cluster (with AGIC) and a couple of the pods need to send email out. Since the email is coming from the pod what is the best way to get it to work with an SMTP Relay server that needs a whitelisted source IP? I am unsure if the ip address as seen by the SMTP server would be the pod IP, the node IP or the App Gateway IP. I assume it will be one of either pod IP or node IP. Both can change easily when pods get recreated, app is redeployed, with nodepool scaling, etc. Is there some way to handle this dynamic behavior?