简体   繁体   English

在从 AKS k8s pod 触发电子邮件方面需要帮助

[英]Need help in triggering emails from an AKS k8s pod

I am trying to trigger an email from a Kube.netes pod using mutt.我正在尝试使用 mutt 从 Kube.netes pod 触发 email。

I deployed a sample pod on the AKS cluster我在 AKS 集群上部署了一个示例 pod

echo "test email" | mutt -e "set smtp_url=smtp://<url>" -e "set_from=<user email>" -s "test email" <sender address>

from the AKS pod, I have connectivity to our SMTP server and can te.net to that server too.从 AKS pod,我可以连接到我们的 SMTP 服务器,也可以通过 te.net 连接到该服务器。

te.net smtpserver 25 --> Connects from the pod te.net smtpserver 25 --> 从 pod 连接

The above mutt command neither sends emails nor throws any error to troubleshoot.上面的 mutt 命令既不发送电子邮件也不抛出任何错误以进行故障排除。 can someone recommend the best way to send email from an AKS pod?有人可以推荐从 AKS pod 发送 email 的最佳方法吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 K8s Daemonset Pod 放置 - K8s Daemonset Pod Placement k8s pod 不断崩溃 (CrashLoopBackOff),但描述显示代码为 0 的“已完成”? - k8s pod keeps crashing (CrashLoopBackOff), but describe shows "Completed" with code 0? 我如何启动一个在 k8s 中的几个小实例节点上运行的 pod? - How can I launch a pod which run on a few small instance nodes in k8s? 如何从 K8s 中获取 Kube.netes 集群名称 API - How to get Kubernetes cluster name from K8s API terraform 从 gcp secret 创建 k8s secret - terraform create k8s secret from gcp secret 无法从 kubectl 连接到 K8S 集群 - Can't connect to K8S cluster from kubectl 在 helm 中使用来自 k8s secret 的入口主机 - Using ingress host from k8s secret in helm 如何在本地 kube.netes(k8s) 集群上分配 Azure Pod Identity(开发时) - How to assign Azure Pod Identity on local kubernetes(k8s) cluster (while developing) K8s Pod 失败:运行 Pod“app”的“VolumeBinding”预绑定插件时出错:绑定卷失败:等待条件超时 - K8s Pods Failure : error while running "VolumeBinding" prebind plugin for pod "app": Failed to bind volumes: timed out waiting for the condition 如何从内部非K8s.network访问K8s中的服务? - How to access services in K8s from the internal non-K8s network?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM