新环境上配置alertmanager时出现了“Client was not authenticated to send anonymous mail during MAIL FROM”错误,但老环境上是好的
使用如下方法来验证邮件发送:
alertmanager的邮件配置如下:
global:
resolve_timeout: 5m
smtp_smarthost: '10.10.10.1:25'
smtp_from: 'prometheus@example.com'
EHLO example.com
MAIL FROM:prometheus@example.com
RCPT TO:MYEMAIL@example.com
DATA
Subject:test message
This is an email test
PS:本环境问题最终定位是由于防火墙没有添加邮件白名单所致
参考:
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有