Alerting

How to troubleshoot why Splunk unable to send alert emails to the mail server?

jishelar
Explorer

Hi,

Splunk is not able to send alert/mail. We are getting below error message.

08-02-2016 04:49:05.799 -0500 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/search/bin/sendemail.py "results_link=https:10.126.33.22@go?sid=scheduler_cms_Q0NNUy1UQS1vbnByZW0tcGxhdGZvcm0tcmVwb3J0aW5nRMD5e748673ac079e532_at_1470131340_24_577E0027-6C88-4096-88B0-9AF1F73327F8" "ssname=Splunk_D_SLM_IR_SHR" "graceful=True" "trigger_time=1470131342" results_file="/opt/splunk/var/run/splunk/dispatch/schedulercms_Q0NNUy1UQS1vbnByZW0tcGxhdGZvcm0tcmVwb3J0aW5n_RMD5e748673ac079e532_at_1470131340_24_577E0027-6C88-4096-88B0-9AF1F73327F8/results.csv.gz"': ERROR:root:Connection unexpectedly closed while sending mail to: splunk@localhost.localdomain

Can somebody please help here?

Thanks,
Jitendra

0 Karma

JDukeSplunk
Builder

Try sending a message via telnet to yourself from the splunk server. If the server can do it via telnet, the problem is somewhere in Splunk/Python. If you cannot send via the command prompt, then the issue could be on the mail server.

http://www.yuki-onna.co.uk/email/smtp.html

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...