Alerting

Alert not connecting to mail server

tympaniplayer
Path Finder

I am trying to get splunk to connect to a unauthenticated mail server. However it is not sending the messages correctly.

python.log says:
2011-11-03 10:39:21,250 ERROR (550, 'Command RCPT failed') while sending mail to: myemailaddress

Update:

However many email addresses I send it to, the server also gets that many extra blank RCPT TO commands, thus messing it up. Is this splunk error? or server side error?

Tags (2)
0 Karma
1 Solution

tympaniplayer
Path Finder

I just used a different mail server to send the splunk alerts. This seems to work! Ill just use this instead.

View solution in original post

0 Karma

tympaniplayer
Path Finder

I just used a different mail server to send the splunk alerts. This seems to work! Ill just use this instead.

0 Karma

ziegfried
Influencer

SMTP Error 550 means "Requested action not taken: mailbox unavailable". Seems like your mailserver doesn't accept the specified recipient.

0 Karma

tympaniplayer
Path Finder

no leading whitespace, no trailing whitepace, there is a comma but only to separate email addresses. Work the same with one address or two. very strange....

0 Karma

ziegfried
Influencer

How does the recipient in your alert look like? Are you sure there is not leading/tailing whitespace or comma?

0 Karma

tympaniplayer
Path Finder

my mail server logs say (IPs omitted):

11:03 11:01 SMTPD( MAIL FROM:splunk@ size=1000

11:03 11:01 SMTPD >>> 250 ok

11:03 11:01 SMTPD <<< rcpt TO:

11:03 11:01 SMTPD RCPT TO:

11:03 11:01 SMTPD [x] looking up gmail.com in HOSTS

11:03 11:01 SMTPD >>> 250 ok its for

Then it says

11:03 11:01 SMTPD<<< rcpt TO:<>

11:03 11:01 SMTPD RCPT TO:<>

11:03 11:01 SMTPD >>> 550 Command RCPT failed

11:03 11:01 SMTPD Unknown Command: RCPT

0 Karma

ziegfried
Influencer

What kind of mailserver do you use? Have you looked into the logs of it?

0 Karma

tympaniplayer
Path Finder

I have tried multiple recipients, including ones that use that mail server. Other programs, like sendmail will send to the same recipents that are used. Any thoughts?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...