Yelp / elastalert

Easy & Flexible Alerting With ElasticSearch
https://elastalert.readthedocs.org
Apache License 2.0
8k stars 1.73k forks source link

Issue with TLS 1.2 #2357

Open Evasion opened 5 years ago

Evasion commented 5 years ago

I am getting this error with -Verbose switch when testing a new alert. I believe this is related to ms office 365 forcing TLS 1.2. Is there a way to configure TLS version in elastalert?

ERROR:root:Error while running alert email: Error connecting to SMTP host: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:727)

NEUR0515 commented 5 years ago

I'm having the exact same problem using MS SMTP relay.

Did you manage to find a resolution for this?

allen-olivas commented 5 years ago

Unfortunately no. :(

Sent from my iPhone

On Oct 15, 2019, at 8:03 AM, Ashlee Jones notifications@github.com wrote:



I'm having the exact same problem using MS SMTP relay.

Did you manage to find a resolution for this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Yelp/elastalert/issues/2357?email_source=notifications&email_token=AMXBVYRWTJQMEJAYA2D5TSTQOW5RTA5CNFSM4IGPV752YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBIVDZA#issuecomment-542200292, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMXBVYRM2OQHJ43GHPYDYWLQOW5RTANCNFSM4IGPV75Q.

NEUR0515 commented 5 years ago

For anyone else having this issue, I gave up with trying to get MS working and used a gmail address on port 465. Worked pretty much out the box.

Appears Elastalert is using SSL and not STARTTLS which is why it doesn't work.

Would be great to get this working with MS though.

keshara commented 2 years ago

in order to work against STARTTLS, you must remove the line smtp_ssl

This will start elastalert with STARTTLS

I tested this in O364 and it worked for me.

nsano-rururu commented 2 years ago

@keshara

yelp / elastalert is not maintained, so I think you should discuss it with elastalert2. https://github.com/jertel/elastalert2