Operating System - HP-UX
1833873 Members
2871 Online
110063 Solutions
New Discussion

Re: local user cannot send mail to another local user in the same domain

 
Pavani
Occasional Advisor

local user cannot send mail to another local user in the same domain

Forum

I have a set up like below

NIS enabled server and workstations
I can send mail from Server to workstation
But a local user at workstation cannot send mail to
users at server or any users in the other workstation

I get a message
deferred mail server wkst1@gsmomc3
host name lookup failed

But the nslookup command can lookup NIS server .
I have set in sendmail.cf the domian as gsmomc3
checked sendmail.cw as per HP guide
and also restof files for mailing
pl suggest

Thanking you in advance
Pavani
12 REPLIES 12
Helen French
Honored Contributor

Re: local user cannot send mail to another local user in the same domain

Hi Pavani:

This can be a name resolution issue. There can be a problem with your DNS entries. If the /etc/nsswitch.conf file has a DNS entry, then the server MUST be set up so that it can
access a working nameserver.

Look at your /etc/resolv.conf file. If you are using DNS, there should be a valid nameserver entry. If it does not contain a functioning nameserver, then you will need to edit the /etc/nsswitch.conf file and remove the reference to DNS from the hosts line.

HTH,
Shiju
Life is a promise, fulfill it!
Jeff Schussele
Honored Contributor

Re: local user cannot send mail to another local user in the same domain

I would suspect the NIS client configurations or client-to-server comm. Check the /etc/rc.config.d/namesvrs file on the clients - make sure ONLY NIS_CLIENT is =1 & the NIS_DOMAIN value is correct.
Run:
/sbin/init.d/nis.client stop
/sbin/init.d/nis.client start
to bounce the NIS client.

Verify the /etc/nsswitch.conf file - make sure these lines
hosts: nis
aliases: nis
are starting as such - can have actions after.....
Run ypwhich on the clients to verify just what NIS server they are using.
Run
rpcinfo -u nis_server ypserv
rpcinfo -t nis_server ypserv
to verify NIS server is up OK

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Clemens van Everdingen
Honored Contributor

Re: local user cannot send mail to another local user in the same domain

Hi,

See the following thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf39306295e00d6118ff40090279cd0f9,00.html

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Pavani
Occasional Advisor

Re: local user cannot send mail to another local user in the same domain

Hi All

Thanks for the sugesstions

below are the current settings

file nsswitch.conf
hosts: nis [NOTFOUND=return UNAVAIL=continue] files[NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]

file sendmail.cf
Dj$w.GSMOMC3

file service.switch
hosts files
aliases files

file sendmail.cw
localhost
wtsc10
wtsc10.GSMOMC3

I have alredy checked the pointed question answer.But some times its confusing since
every one mentions same files but changes a lot due to small differnt network configuration

ouput of commands
rpcinfo -t ctsomc3 ypserv
program 100004 version 1 ready and waiting
program 100004 version 2 ready and waiting
rpcinfo -u ctsomc3 ypserv

program 100004 version 1 ready and waiting
program 100004 version 2 ready and waiting

I started NIS at the clients
Namesvrs file is also fine

Why root or NIS user at server can mail any local user or NISuser@client but not viceversa.Due to config constraints I cannot mount /var/mail of all users at client.

Chow
Pava
Pavani
Occasional Advisor

Re: local user cannot send mail to another local user in the same domain

Hi

There is no /etc/resolve.conf
in the system.
I guess i need not created it as we arenot using DNS.
We have NIS server and clients

Actually Iam not very clear of this DNS and again the command
domainname .

If we have not enabled DNS
then what is the domainname .
is it a part of NIS .

thanks
pavani

U.SivaKumar_2
Honored Contributor

Re: local user cannot send mail to another local user in the same domain

hi,
domainname command is meant for NIS only.
you can set the NIS parameters in /etc/rc.config.d/namesvr file.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Berlene Herren
Honored Contributor

Re: local user cannot send mail to another local user in the same domain

hosts: nis [NOTFOUND=return UNAVAIL=continue] files[NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]

This looks like to be that if it cannot find the hostname in nis, it returns, instead of continuing to the hosts file.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Pavani
Occasional Advisor

Re: local user cannot send mail to another local user in the same domain

Hi Berlene

Thankyou.
I changed nis as continue for both options but it still dosent work and i get same error message

Chow
Pavani
U.SivaKumar_2
Honored Contributor

Re: local user cannot send mail to another local user in the same domain

hi,
give this from workstation
#ypmatch "yourservername" hosts
what is the output ?.
regards,
U.SivaKumar
Innovations are made when conventions are broken
Pavani
Occasional Advisor

Re: local user cannot send mail to another local user in the same domain

Hello Siva

Thanks for the quick response
I guess some thing is missing in mapping at servers end
I get below message when i give

ypmatch servername hostname

ypmatch cant match ctsomc3
reason : no such map map in servers NIS domain

How do I map now
Pavani
Occasional Advisor

Re: local user cannot send mail to another local user in the same domain

Hello Siva

I made a mistake in command before

ypmatch servername hosts
gave me output as
ipaddress servername server alias

is that okay
U.SivaKumar_2
Honored Contributor

Re: local user cannot send mail to another local user in the same domain

hi,
Is the IP address and server name in the output of ypcat comand shows the proper server name with it's proper IP address ?. if yes try
this
#telnet "yourservername" 25
do you get connection to smtp sendmail ?
Also try this
#mail wkst1@"yourservername".gsmomc3

can you send mails now?.

regards,
U.SivaKumar

Innovations are made when conventions are broken