Solaris: email to user


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris: email to user
# 8  
Old 01-03-2010
Hi Tony,

how can is verify DNS is working fine ?

Regards

---------- Post updated at 01:15 AM ---------- Previous update was at 12:53 AM ----------

Hi Tony,

How can I verify DNS is working fine ?

Regards
# 9  
Old 01-03-2010
Do you have entries in /etc/resolv.conf(4) and is dns listed in the hosts line in /etc/nsswitch.conf(4)?

Can you look up any DNS address, e.g.:
Code:
$ nslookup news.bbc.co.uk

Code:
$ nslookup <ip address from above>

and then if sendmail is using DNS to find the mail exchanger then:
Code:
$ nslookup
> servertype=MX

and then
Code:
> mailhost

and then to exit from nslookup:
Code:
> exit

On my system the above looks like:
Code:
$ nslookup news.bbc.co.uk
Server:        10.0.0.2
Address:    10.0.0.2#53

Non-authoritative answer:
news.bbc.co.uk    canonical name = newswww.bbc.net.uk.
Name:    newswww.bbc.net.uk
Address: 212.58.226.73

$ nslookup 212.58.226.73
Server:        10.0.0.2
Address:    10.0.0.2#53

Non-authoritative answer:
73.226.58.212.in-addr.arpa    name = newslb305.telhc.bbc.co.uk.

Authoritative answers can be found from:

$ nslookup
> servertype=MX
Server:        10.0.0.2
Address:    10.0.0.2#53

Non-authoritative answer:
Name:    servertype=MX.FullerDomain
Address: 67.215.65.132
> mailhost
Server:        10.0.0.2
Address:    10.0.0.2#53

Non-authoritative answer:
Name:    mailhost.FullerDomain
Address: 67.215.65.132
> exit
$

# 10  
Old 01-04-2010
Hi Tony,

the ouput of nslookup command and contents of resolv.conf and nsswitch.conf files.
Code:
root $nslookup SAM.MRAI.COM 
*** Can't find server name for address 127.0.0.1: No response from server
*** Default servers are not available


root $cat resolv.conf
domain          mrai.com
#nameserver     182.40.3.16
root $cat nsswitch.conf#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd:     files
group:      files
hosts:      files dns
ipnodes:    files
networks:   files
protocols:  files
rpc:        files
ethers:     files
netmasks:   files
bootparams: files
publickey:  files
# At present there isn't a 'files' backend for netgroup;  the system will
#   figure it out pretty quickly, and won't use netgroups at all.
netgroup:   files
automount:  files
aliases:    files
services:   files
sendmailvars:   files
printers:       user files

auth_attr:  files
prof_attr:  files
project:    files

thanks for your cooperation.

Regards

Last edited by maooah; 01-04-2010 at 03:07 AM..
# 11  
Old 01-04-2010
Looks like your /etc/inet/hosts file needs a localhost entry put back into it or else the linking of /etc/hosts and /etc/inet/hosts has been lost.

Put:
Code:
127.0.0.1 localhost

into /etc/inet/hosts if not already present and ensure that /etc/hosts is a link to /etc/hosts (hard or symbolic).

Then try nslookup again.

Update:
Should have looked a bit more closely, the resolv.conf file does not list an active nameserver, the only one listed is commented out, I suggest you either try uncommenting out the one already listed in your resolv.conf and/or find out what the IP address of the DNS server on your network is and out it into your resolv.conf. This is why nslookup is trying to use localhost as the DNS server.

Last edited by TonyFullerMalv; 01-04-2010 at 09:36 PM..
# 12  
Old 01-06-2010
Dear Tony,

This is just give some overview of our setup we have two solaris fujitsu servers running with solaris 9 version and both are in active - active mode with veritas clustering, and on this servers we have Database on single server and on second server Application Tier.
1) I verified the link between /etc/hosts and /etc/inet/hosts it is there.
root $ls -ltr hosts
lrwxrwxrwx 1 root root 12 Oct 17 2005 hosts -> ./inet/hosts

2)I checked the below entry in /etc/hosts file its not there , if I made entry in this file do we face any impact due to this modification .

Code:
127.0.0.1 localhost


Last edited by maooah; 01-06-2010 at 06:56 AM..
# 13  
Old 01-06-2010
Quote:
Originally Posted by maooah
Code:
root $cat resolv.conf
domain          mrai.com
#nameserver     182.40.3.16

It would help for your nameserver setting not to be commented out by that leading "#" ...
# 14  
Old 01-24-2010
Dear Tony and patrick

any update .

Regards
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Regarding registration email for new user

Hello Moderators, Greetings !! This is regarding my friend to whom I refered this forum to learn UNIX. User didn't receieved any registration email yet, could you please help user. Will be grateful to you on same. Login name: Gurvinder_Kaur NOTE: User doesn't have enough bits for... (0 Replies)
Discussion started by: RavinderSingh13
0 Replies

2. Shell Programming and Scripting

Send one email per user

I created a bash script that gets a file formats it, sends an email to the user(s), however, for whatever reason, it will send an email per line with all of the lines in it, so essentially the user will get 10 duplicate emails with the same 10 results. I've modified the script to put the results of... (2 Replies)
Discussion started by: hotdang
2 Replies

3. Shell Programming and Scripting

Write a scripts to kill idle user for 60 min. & email user list to admin in text file

Folks, I have written one script for following condition by referring some of online post in this forum. Please correct it if I'm missing something in it. (OS: AIX 5.3) List the idle user. (I used whoidle command to list first 15 user and get username, idle time, pid and login time).... (4 Replies)
Discussion started by: sumit30
4 Replies

4. Shell Programming and Scripting

Email sent to multiple user address?

hi all, This is user that i want sent the email: Email = allan@gmail.com bruce8899@gmail.com Chris@gmail.com echo "$dir : $filecount is over the limit $limit " | mailx -s "${SUBJECT}" "${email}" However it cannot sent to 3 user..only sent to 1 user email address. Any 1 can help me... (15 Replies)
Discussion started by: proghack
15 Replies

5. Solaris

Send an email from Solaris using Linux email server

Hello everyone I have a problem and I need your help: I have a Solaris 10 and Solaris 8 UNIX Servers, and Linux Centos4 as email server. I need send an email from Solaris servers preferably using Centos4 email server. I have no mail service configured in my Solaris computers (1 Reply)
Discussion started by: aflores
1 Replies

6. UNIX for Advanced & Expert Users

Send email as a different user than the user logged in

Hi I am using mailx to send email and am wondering if there is a way I can send the email from a different user than the user logged in. something like do-not-reply@xyz.com Thank you. (1 Reply)
Discussion started by: rakeshou
1 Replies

7. Programming

Sending email to a User from C++

How do i send a mail to User from c++? (1 Reply)
Discussion started by: debu
1 Replies
Login or Register to Ask a Question