Solved

Mail problem

Posted on 2006-11-13
3
293 Views
Last Modified: 2013-12-27
Hello Experts,

I'm getting this error when I try to send mails from the terminal. Sendmail is working fine. Please advice.

thuban--root[21] mailx -v ojk@cypress.com
Subject: test mail
.
EOT
thuban--root[22] ojk@cypress.com... Deferred: Name server: mailhost.ind.cypres
s.com: host name lookup failure

thuban--root[23] ps -ef | grep sendmail
    root  1946     1  0   Nov 09 ?        0:00 /usr/lib/sendmail -bd -q15m
    root  5741  5728  0 15:20:00 pts/2    0:00 grep sendmail
thuban--root[24]
thuban--root[22] uname -a
SunOS thuban 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-5_10
thuban--root[23]


Thanks,
Ashok
0
Comment
Question by:rdashokraj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 200 total points
ID: 17934786
This is a DNS issue.

What do you have in /etc/resolv.conf?
0
 
LVL 38

Accepted Solution

by:
yuzh earned 300 total points
ID: 17935125
make sure /etc/resolv.conf

  has the correct DND server infor, eg:
  nameserver 123.123.20.5
 
  replace "123.123.20.5" with your DNS server IP


AND
   check your /etc/nsswitch.conf  file, and make sure hosts use dns:

hosts:     files dns [NOTFOUND=continue]
                     ^
# you can just modify the record to make it use files and DNS
0
 

Author Comment

by:rdashokraj
ID: 17936503
Thanks for your response. I found out the problem myself by using the search facility in Experts-exchange. The issue the Dj entry in /etc/mail/sendmail.cf was not configured. I added that entry and restarted the sendmail service, then everything become fine. I have very less experience in Sendmail and thats why I didn't check this basic configuration.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question