LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-17-2011, 04:04 PM   #1
kazmiM
LQ Newbie
 
Registered: Feb 2011
Posts: 16

Rep: Reputation: 0
mailx and sendmail configuration problem


Hello Good People of Linux World!!!

Background: Recent Networking Graduate, thrown in line of fire.

For the past couple of days I have been searching online for answers and haven't gotten anywhere regarding Mailx, Sendmail functionality on SunOS 5.9.

My dilemma:
Mailx / sendmail are not sending emails (not inside or outside our network).

Machine:
SunOS tmusid01 5.9 Generic_118559-11 i86pc i386 i86pc

Tried:
echo "3PM" | mailx -s "Subject3PM" murtuza@live.ca

and it doesn't show any errors or such at that time.
But then, I get this email after a while

================================================================
From MAILER-DAEMON Thu Feb 17 15:16:31 2011
Date: Thu, 17 Feb 2011 14:49:45 -0500 (EST)
From: Mail Delivery Subsystem <MAILER-DAEMON@tmusid01.timelessmind.com>
To: root@tmusid01.timelessmind.com
MIME-Version: 1.0
Subject: Warning: could not send message for past 4 hours
Auto-Submitted: auto-generated (warning-timeout)

This is a MIME-encapsulated message

--p1HJmjF0000450.1297972185/tmusid01.timelessmind.com

**********************************************
** THIS IS A WARNING MESSAGE ONLY **
** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
**********************************************

The original message was received at Thu, 17 Feb 2011 10:44:27 -0500 (EST)
from root@localhost

----- Transcript of session follows -----
451 live.ca: Name server timeout
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old

--p1HJmjF0000450.1297972185/tmusid01.timelessmind.com
Content-Type: message/delivery-status

Reporting-MTA: dns; tmusid01.timelessmind.com
Arrival-Date: Thu, 17 Feb 2011 10:44:27 -0500 (EST)

Final-Recipient: RFC822; murtuza@live.ca
Action: delayed
Status: 4.4.3
Last-Attempt-Date: Thu, 17 Feb 2011 14:49:45 -0500 (EST)
Will-Retry-Until: Tue, 22 Feb 2011 10:44:27 -0500 (EST)

--p1HJmjF0000450.1297972185/tmusid01.timelessmind.com
Content-Type: message/rfc822

Return-Path: <root>
Received: (from root@localhost)
by tmusid01.timelessmind.com (8.12.10+Sun/8.12.10/Submit) id p1HFiRdn000809;
Thu, 17 Feb 2011 10:44:27 -0500 (EST)
Date: Thu, 17 Feb 2011 10:44:27 -0500 (EST)
From: Super-User <root>
Message-Id: <201102171544.p1HFiRdn000809@tmusid01.timelessmind.com>
To:, murtuza@live.ca
Subject: Subject3PM

3PM

--p1HJmjF0000450.1297972185/tmusid01.timelessmind.com--
================================================================

What does this mean?
What configuration/log files should I be looking into?
What can be done to fix this problem?


I look forward from hearing and learning from you experienced campaigners.

Cheers,
Kazmi
 
Old 02-17-2011, 04:43 PM   #2
never say never
Member
 
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195

Rep: Reputation: 37
This line seems to be the root of your problem
Code:
451 live.ca: Name server timeout
Is the box able to resolve domain names (Specifically live.ca in this case)?

from the command prompt "nslookup live.ca"

If that fails you need to get DNS working on the box, if it properly resolves you need to look at your sendmail config.

I am assuming that tmusid01.timelessmind.com is the machine in question. If it is not then the problem lies on that machine.

Last edited by never say never; 02-17-2011 at 04:46 PM. Reason: Include assumption made.
 
1 members found this post helpful.
Old 02-17-2011, 05:27 PM   #3
kazmiM
LQ Newbie
 
Registered: Feb 2011
Posts: 16

Original Poster
Rep: Reputation: 0
You are absolutely right on both accounts!!

tmusid01.timelessmind.com IS the machine in question
DNS is not working properly on this box.

I get the following output after running nslookup.
# nslookup live.ca
*** Can't find server name for address 192.168.2.1: Server failed
*** Can't find server name for address 198.235.216.131: No response from server
*** Default servers are not available

Can you please help me with setting up DNS on this box?
192.168.2.1 is the IP address of the router (gateway) that this box is connected to.
198.235.216.131 is the DNS address in the router.

Thanks in advance!!!
 
Old 02-17-2011, 06:56 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 166Reputation: 166
What's in your /etc/resolv.conf file? If 198.235.216.131 is your DNS server, there should be something like this:
Code:
nameserver 198.235.216.131
 
Old 02-18-2011, 12:04 PM   #5
kazmiM
LQ Newbie
 
Registered: Feb 2011
Posts: 16

Original Poster
Rep: Reputation: 0
Following is an output from my /etc/resolv.conf file
Quote:
nameserver 192.168.2.1
nameserver 198.235.216.131
domain timelessmind.com
#search timelessmind.com
I am a little confused as I can ping the router (192.168.2.1) but cannot ping (198.235.216.131)
Any suggestions as to whats the problem here? fixes?

192.168.2.xxx is our companies network. Should there be a DNS server inside our network (on 192.168.2.xxx) and if so, how can I set one up?
 
Old 02-18-2011, 08:40 PM   #6
never say never
Member
 
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195

Rep: Reputation: 37
You don't NEED to run a nameserver on site, that is more a matter of preference or need and frankly if you have to ask, you probably don't' have a need. Can other computers on this network use DNS? If so find out what server(s) they are pointed to and change your resolv.conf to match, that will get you working at least.

If you don't know your ISP's servers, you can use Googles Public DNS. 8.8.8.8 and 8.8.4.4

Just add them to your resolv.conf


Code:
nameserver 8.8.8.8
nameserver 8.8.4.4
domain timelessmind.com
#search timelessmind.com
 
1 members found this post helpful.
Old 02-22-2011, 02:47 PM   #7
kazmiM
LQ Newbie
 
Registered: Feb 2011
Posts: 16

Original Poster
Rep: Reputation: 0
Putting in the Googles Public DNS address 8.8.8.8 and 8.8.4.4 worked for me
I really appreciate all your help.

Cheers,
Kazmi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
getting To: from a file for sendmail or mailx? MrUmunhum Linux - General 2 10-14-2010 09:58 PM
sendmail mailx johnh10000 Linux - Server 9 02-27-2010 07:17 AM
Syntax using nail (mailx) for smtp without postfix or sendmail Casey Linux - Server 2 06-12-2007 02:41 AM
Sendmail configuration problem jitz Linux - General 0 12-18-2003 12:38 AM
Sendmail Configuration Problem randychow2000 Linux - Networking 2 05-28-2002 10:53 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration