-bash: sendmail: command not found

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat -bash: sendmail: command not found
# 22  
Old 04-03-2017
Hi,

That log excerpt indicates that the message was successfully accepted by Sendmail. So you'd have to check the mail logs for your own local server and for whichever server deals with the incoming e-mail for the recipient's domain to see what happened to it next. Presumably it's getting filtered out for some reason at some point, but that session log would certainly seem to show that Sendmail is doing its job successfully and putting the mail into the queue.
# 23  
Old 04-03-2017
where I can check the logs??
# 24  
Old 04-03-2017
Strictly speaking, the answer to that question is that they'll be wherever you've configured your system to store them. However by deafult on Linux, the Sendmail log would typically be /var/log/maillog on a RHEL-style system, or /var/log/mail.log on most Debian-derived distros (such as Ubuntu and others).
# 25  
Old 04-03-2017
yes. I checked as I am not a root user I am unable to view the log. But i Checked in /var/log/spool/mail

And i find the below message:
Code:
... while talking to e2yxyxyx.eyx.ayx.gyx.com.:
<<< 554 CXYYXYX.eyx.ayx.gyx.com
554 5.0.0 Service unavailable

--v338nDQN011631.1491209353/vdyxyxyx.yxy.clyxyx.gyx.com
Content-Type: message/delivery-status

Reporting-MTA: dns; vdyxyxyx.yxy.clyxyx.gyx.com
Received-From-MTA: DNS; localhost
Arrival-Date: Mon, 3 Apr 2017 04:49:13 -0400

Final-Recipient: RFC822; devipriya.ch@gyx.com
Action: failed
Status: 5.5.0
Diagnostic-Code: SMTP; 554 CIYXYXYX.eyx.ayx.gyx.com
Last-Attempt-Date: Mon, 3 Apr 2017 04:49:13 -0400

something is wrong because its working fine for another server. This is only having some problem that too mail status showing working properly but unable to receive mails. please suggest.

Last edited by RudiC; 04-03-2017 at 10:00 AM.. Reason: Added Code tags; obfuscated private data
# 26  
Old 04-03-2017
This is the last time I clear your private data for you. Please be aware that publicly posting host names and / or e-mail addresses may result in undesired results.

And, SERIOUSLY, start using code tags for code and data!

Last edited by RudiC; 04-03-2017 at 10:00 AM..
# 27  
Old 04-03-2017
Hi,

One thing before going any further - you might want to think about sanitising your log entries before you post them. Posting working e-mail addresses, public IPs and internal hostnames that might give away details about your infrastructure to random folk on the Internet could potentially be something of a security risk. For example, I'm hoping that from that hostname your mail gateway isn't really running Exchange 2000 in this day and age, for instance Smilie

In any case: you'll need to now check the mail logs on the upstream mail server (the one whose hostname begins with e2ksmtp01) to see why it returned a 554 error to your Linux box. From just the 554 error on its own it's hard to say exactly what's going on here, but my guess would be that e2ksmtp01 isn't configured to accept mail from your Linux box, and is rejecting it for some reason.

That's the name of the game with SMTP debugging really: keep following the mail trail until you find the server that actually rejected the message, and then you'll hopefully find out why and what to do about it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Command not found, but using function in bash

In the bash below, if the answer is "y" then goto function remove. If the answer is "n" then goto the id variable line (where the date is inputted). However, I am getting command remove not found, but remove is a function not an command. I must have the syntax incorrect? Thank you :). ... (3 Replies)
Discussion started by: cmccabe
3 Replies

2. Shell Programming and Scripting

Bash Script giving "Command Not found"

Hello Geeks, Greetings...I have the following script: #!/usr/bin/bash #Script to generate number of active PDP context & calculate PDP activation #failurefrom EPG-M #Script written by Gbenga Adigun #September 12, 2013 username="xxxxxx" password="xxxxxxxxx" HOSTS=( ggsn01... (6 Replies)
Discussion started by: infinitydon
6 Replies

3. Shell Programming and Scripting

bash: <command nm> command not found

I created a script that I need to run from time to time, but get this error message. To get it working again I run this command from time to time: export PATH="$PATH:~/scripts" I put all my automated scripts in the /scripts directory and would like to run my scripts from any directory... (5 Replies)
Discussion started by: catalinawinemxr
5 Replies

4. Shell Programming and Scripting

bash:vi:command not found

I downloaded and installed "Cygwin yesterday onto my PC running Windows XP. When I tried to type "vi" in Cygwin's window, I got the following message bash: vi: Command not found What shud i do inorder to get into vi editor Thanks (10 Replies)
Discussion started by: bobby1015
10 Replies

5. Red Hat

BASH command not found strang behavior

Hi all I am relatively new to linux (specifically red hat). I have installed Fedora 13 on my machine and started playing with the terminal when i found a very strange behavior when typing a command that is not found: the terminal does not prompt me back. In other words, i am logged as root (or... (4 Replies)
Discussion started by: abohmeed
4 Replies

6. Shell Programming and Scripting

rm:command not found in linux Bash shell script

Hi All, Linux lxs3er06 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux Issue: While executing shell scripts in bash shell, following error messages are thrown: rm:command not found On doing little investigation, I added '/bin' to $PATH and on doing echo... (9 Replies)
Discussion started by: a1_win
9 Replies

7. Post Here to Contact Site Administrators and Moderators

What's happens with my thread about "-bash: ELF: command not found "?

Hi, Today, I've submitted a new tread in "Shell Programming and Scripting" forum, with title "-bash: ELF: command not found ". However, this thread has disappear. Can somebody give me an explanation? Regards. (3 Replies)
Discussion started by: Sonia_
3 Replies

8. Shell Programming and Scripting

bash syntax error: command not found

I am trying to create a shell that asks the user to enter their name, and compare it to my own by saying we have the same name or saying my name and that they have a nice name too. Here is my script... #!/bin/bash-x echo "Enter your name". read name if then echo "My name is Adam too"... (1 Reply)
Discussion started by: amaxey45
1 Replies

9. Shell Programming and Scripting

#!/bin/bash and #1bin/sh command not found error on mac osx terminal/shell script

i am having a weird error on mac os x running some shell scripts. i am a complete newbie at this and this question concerns 2 scripts. one of which a friend of mine wrote (videochecker.sh) a couple weeks ago and it's been running fine on another machine. then last week i wrote capture.sh and it... (2 Replies)
Discussion started by: danpaluska
2 Replies

10. UNIX for Dummies Questions & Answers

bash: cron-config: command not found - PLEASE HELP ME!!

Hello All, I have installed Cygwin on Windows XP and working with some Shell scripting work, I have needed to schedule my script using the cornetab and whatever commands such as "cron", "cron-config" are not working in my cygwin shell, I re-installed the Cygwin but the same problem is with... (2 Replies)
Discussion started by: sriya
2 Replies
Login or Register to Ask a Question