We try to set up sending email over a mail-relay host accepting SSL and TLS connection.
When I run following query
index="ix-website-apache-test" | sendemail firstname.lastname@example.org email@example.com use_tls=false use_ssl=true
In the python.log I got follwing error:
2017-02-15 14:04:10,964 +0100 ERROR sendemail:131 - Sending email. subject="Splunk Results", results_link="None", recipients="[firstname.lastname@example.org']", server="mail-relay.domain.com:465"
2017-02-15 14:04:10,965 +0100 ERROR sendemail:417 - 'NoneType' object has no attribute 'get_issuer' while sending mail to: email@example.com
Where is the best way to troubleshoot this issue?
Email Setting are done properly with username and password, SSL enabled.
Sending from the splunk server using openssl is working without any problems.
Try this from search .
index=internal | head 1 | sendemail to="firstname.lastname@example.org" format="html" server=mail-relay.domain.com:465 usessl=1
Same error as above in the question.