Hi All,
Are these two enhancement options for current PMM2?
- insecure_skip_verify: to skip valid SSL cert;or use and DNS name to access email server;
- have a way to setup smtp_require_tls in PMM webUI
The following is the case why I ask this question.
In my environment with network firewall, we have VLAN to sperated differenet network. So, the database servers and PMM server can’t access email service directly. So, I have to setiup a forward server in my networks and create a IPTABLES forword rules.
Let’s say:
Server A: PMM server
Server B: Forword server1
Server C: Forword server2
Server D: Email server
So, typically, A sends email to B; and B transfers to C; and then, C transfers to D; In fiannly, D is the mail server, so I can get the email of any problem.
Laster friday, 12-10, our email system upgrade from MS exchange to a new vendor. The major changes is the new system only have accept encrypted connection. So, when PMM server send email, the alertmanager reports “*smtp.plainauth auth: unencrypted connection”.
After researches, I updated “smtp_require_tls” to “true” in /etc/alertmanager.yml and restarted alertmanager. It shows “x509 cannot validate certificate for it doesnt contain any ip sans” in log files.
After researches again, following x509: cannot validate certificate for <ipaddress> because it doesn't contain any IP SANs · Issue #1654 · prometheus/prometheus · GitHub, the first reply, I modified “server address” to a email server name, and added a DNS entry to “/etc/hosts”. it works. And the PMM version is 2.23.
The problem is: if I upgraded PMM2 docker image, the DNS and smtp_require_tls would be lost.
Thanks,
Dillon