Can any one help me with the alertmanager.yml with proxy ?

40 views
Skip to first unread message

Prabhu ilamathi

unread,
Nov 5, 2024, 11:30:10 AM11/5/24
to Prometheus Users
Hi All,

Right now am using the alertmanager.yml configured to use the smtp server details. but am unable to send the emails, so i am thinking proxy would be resolving it , could you please help me with some examples on implementing the same ?

Thanks,
Prabhu

Brian Candler

unread,
Nov 5, 2024, 12:13:38 PM11/5/24
to Prometheus Users
What makes you think the problem would be fixed by a proxy - what *exact* error message are you seeing? And what sort of proxy are you thinking of?

If it's an SMTP proxy then you just point alertmanager at it for sending mails. If it's a SOCKS5 proxy then that functionality is not built-in to alertmanager, so you'd have to run a standalone proxy that listens on a port on localhost and makes an outbound TCP connection via the proxy. (Maybe nc or socat could do that). If it's some other sort of proxy then you'd have to explain what you mean.

It might make more sense to put your alertmanager in a position in the network where it can make the necessary network connections it needs.

Prabhu ilamathi

unread,
Nov 5, 2024, 12:28:43 PM11/5/24
to Brian Candler, Prometheus Users
Hi Brian,

Thanks for your reply and I had identified that my mail server is having NTLM auth type and alert manager is not supporting for NTLM. Do you have any suggestion for this scenario than changing the mail server itself ?

Thanks 

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/prometheus-users/7770c70a-726c-4d48-8d23-453fff08e14an%40googlegroups.com.

Brian Candler

unread,
Nov 6, 2024, 4:07:30 AM11/6/24
to Prometheus Users
You could change the mail server configuration to allow PLAIN/LOGIN/CRAM-MD5 like you said, or to allow relaying with no authentication from your alertmanager's IP address.  That would be simplest.

Or you could install a local mail server (e.g. postfix), point alertmanager at it (localhost:25), and configure it to send all outgoing mail via the upstream mailserver with NTLM authentication.

Reply all
Reply to author
Forward
0 new messages