Reporting

SMTP SMARTTLS auth fail command="sendemail", (535, '5.7.3 Authentication unsuccessful') while sending mail to:splunk.mtlk@gmail.com

asugandhi
New Member

index=cisco_asa src_ip!=10.* src_ip!=172.* src_ip!=192.* action=allowed | stats count by src_ip,dest_ip,dest_port | head 10 | sendemail to="splunk.mtlk@gmail.com" content_type=html subject=myresults sendresults=true inline=true sendpdf=true server="smtp.gmail.com:587" use_tls=true

I'm executing this query but getting error command="sendemail", (535, '5.7.3 Authentication unsuccessful') while sending mail to: splunk.mtlk@gmail.com

Under Server --> Email configuration: (local\alert_actions.conf)

[email]
auth_password = ******
auth_username = splunk.mtlk@gmail.com
mailserver = smtp.gmail.com:587
pdf.header_left = none
pdf.header_right = pagination
use_ssl = 0
use_tls = 1
from = Splunk Administrator
sslVersions = *

options tried: "ssl3", "tls1.0", "tls1.1", and "tls1.2".
* The special version "*" selects all supported versions. The version "tls"
selects all versions tls1.0 or newer.
Reference: https://docs.splunk.com/Documentation/Splunk/7.3.1/Admin/Alertactionsconf

But SPL works when I execute
index=cisco_asa src_ip!=10.* src_ip!=172.* src_ip!=192.* action=allowed | stats count by src_ip,dest_ip,dest_port | head 10 | sendemail to="splunk.mtlk@gmail.com" content_type=html subject=myresults sendresults=true inline=true sendpdf=true server="smtp.gmail.com:25"

Under Server --> Email configuration: (local\alert_actions.conf)

[email]
auth_password = ******
auth_username = splunk.mtlk@gmail.com
mailserver = smtp.gmail.com
pdf.header_left = none
pdf.header_right = pagination
use_ssl = 0
use_tls = 1

But in both email configuration type; the scheduled alert is not working and don't get mails whereas the report is available to download in the Searches, reports, and alerts.

Note: I'm replacing company domain with gmail. I'm using "sendmail" to test alert.manually

0 Karma

diogofgm
SplunkTrust
SplunkTrust

This seems a credential problem. Have you double check them? Can you check with your email admin the correct ports of your smtp server since you seem to be using 25 or 587. Also on the second config you are missing the port in the mailserver atribute

------------
Hope I was able to help you. If so, some karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...