I am trying to setup an existing instance of Splunk (6.2) to send a scheduled report. In the splunk_python log I am getting:
2016-09-29 11:10:02,417 +0100 ERROR sendemail:356 - [Errno 111] Connection refused while sending mail to:
[email protected]
2016-09-29 11:10:02,416 +0100 ERROR sendemail:114 - Sending email. subject="Old Toby", results_link="https://splunk:8000/app/hobbits/@go?sid=scheduler__samwise__hobbits__RMD56e9ec5d3df4dd8f4_at_1475143800_7259", recipients="[u'
[email protected]']", server="localhost"
Issue is the above server value, it should not be localhost, I have changed the email settings to be a local mail server IP and I also tried changing the localhost in sendemail.py script to the IP of the mail server but, according to the log, no matter what I try the automated report is being sent to "localhost".
I've confirmed mail can actually be sent using:
... | sendemail server=10.10.10.10
[email protected]
And I have successfully received mail without any problems.
... View more