1833552 Members
3339 Online
110061 Solutions
New Discussion

Re: sendmail error...

 
SOLVED
Go to solution
Kyu-Yong Kwon
Frequent Advisor

sendmail error...

HI~~

Error message when use sendmail command
----------------------------------------
#/usr/sbin/sendmail -v ZZZ@rtp.com
sh: rtp.com: not found
----------------------------------------

Help me!!!

6 REPLIES 6
Patrick Wallek
Honored Contributor
Solution

Re: sendmail error...

Is /etc/recolv.conf configured on this machine? Are you using DNS or /etc/hosts for name resolution? If DNS, does an MX record for the rtp.com domain exist in DNS?

sendmail must know, via DNS or /etc/hosts, where to send mails destined for rtp.com.
morganelan
Trusted Contributor

Re: sendmail error...

How does the nslookup report?

#nslookup -type=mx rtp.com

Also edit /etc/mail/sendmail.cf (or /etc/sendmail.cf depending on the version/build of sendmail) and set DS, DH, and DR to your exchange server. Also set DM to $m (domain name) for good measure.
Kamal Mirdad
Kyu-Yong Kwon
Frequent Advisor

Re: sendmail error...

thanks all...
I executed command : nslookup -type=mx rpt.com
-----------------------------------
# nslookup -type=mx rpt.com
Name Server: dns.rpt.com
Address: 10.50.10.5

rpt.com preference = 100, mail exchanger = relay.cs.nuri.net
rpt.com preference = 0, mail exchanger = antispam2.rpt.com
rpt.com preference = 0, mail exchanger = antispam1.rpt.com
relay.cs.nuri.net internet address = 203.255.x.x
antispam2.rpt.com internet address = 203.238.x.25
antispam1.rpt.com internet address = 203.238.x.24

Rajeev  Shukla
Honored Contributor

Re: sendmail error...

When is says
sh:rtp.com: not found, means it is assuming rtp.com as a command which doesn't exist.
Are you trying this on HPUX. Can you verify the file permissions of /usr/sbin/sendmail and also try executing this command
echo test|/usr/sbin/sendmail -v ZZZ@rtp.com

what does it give?
Kyu-Yong Kwon
Frequent Advisor

Re: sendmail error...

Thanks all...
I found the error.
The problem was environment file (.profile)
could not found

Thanks for yours help.....
Muthukumar_5
Honored Contributor

Re: sendmail error...

I hope .profile file will not be a problem for this. rtp.com domain name is not getting resolved. You have to set it in /etc/resolv.conf with domainname rtp.com entry.

If you try you can able to send mails.

hth.
Easy to suggest when don't know about the problem!