<p>I am working on a project where the requirement just came to create a pod for MTA/SMTP within Kubernetes cluster such that it can be accessed through discovery like other services.</p>
<p>Didn't find anything concrete that I could follow to set up this on a Kubernetes cluster. My question is if there's any way to do this then how? also, is it a good idea to set up it as pod?</p>
<p>Will appreciate any help.</p>
<p>Thanks</p>

Mr Kashyap
<p>You sure can. It's more about opinion and really depends on how you divide your resources into containers or VMs or bare-metal machines.</p>
<p>Some might argue that running something like postfix is more efficient in Kubernetes because the CPU/Memory resources will mostly be used when postfix is actually sending/receiving (a more efficient way of processing the mail queues). There are a few resources that you may able to follow. For example:</p>
<ul>
<li><a href="https://www.tauceti.blog/post/run-postfix-in-kubernetes/" rel="nofollow noreferrer">https://www.tauceti.blog/post/run-postfix-in-kubernetes/</a></li>
<li><a href="https://blog.mi.hdm-stuttgart.de/index.php/2019/08/26/creating-an-email-server-environment-on-kubernetes/" rel="nofollow noreferrer">https://blog.mi.hdm-stuttgart.de/index.php/2019/08/26/creating-an-email-server-environment-on-kubernetes/</a></li>
<li>Postfix Helm chart: <a href="https://hub.helm.sh/charts/halkeye/postfix" rel="nofollow noreferrer">https://hub.helm.sh/charts/halkeye/postfix</a></li>
</ul>
