Operating System - HP-UX
1751730 Members
5561 Online
108781 Solutions
New Discussion юеВ

Re: not able to receive mail in hp-ux

 
SOLVED
Go to solution
Gerard Powell
Advisor

not able to receive mail in hp-ux

I have configured sendmail on hp-ux. I am able to send mails but not receive. Can somebody help in this. Is there any entry that I have missed?

This is how I have configured it:

1. /etc/nsswitch.conf

hosts: files
aliases: files

2. /etc/resolv.conf

nameserver
domain

3. /etc/rc.config.d/mailservs

export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0

4. /etc/mail/sendmail.cf

DS

5. stopped and started the sendmail service.
14 REPLIES 14
rariasn
Honored Contributor

Re: not able to receive mail in hp-ux

Steven Schweda
Honored Contributor

Re: not able to receive mail in hp-ux

> [...] on hp-ux [...]

Not a very complete description.

uname -a

> [...] I am able to send mails but not
> receive. [...]

"I am not able" is not a useful problem
description. What, exactly, did you do to
test it? What, exactly, happened when you
did that?

> 5. stopped and started the sendmail service.

How, exactly?

As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions and interpretations.


> [...]
> [...]

> DS

Can you hide any more potentially important
details?

> 4. /etc/mail/sendmail.cf
> [...]

That's what's in /etc/mail/sendmail.cf, or
that's what you changed, or that's what you
added, or what?
Gerard Powell
Advisor

Re: not able to receive mail in hp-ux

Steven Schweda

1. Uname -a

HP-UX hptst B.11.00 U 9000/800 579706537 unlimited-user license


using elm I am able to send mails from gmp@hptst.cmcltd.com to say gmp@cmcltd.com.
but not able to send from gmp@cmcltd.com to gmp@hptst.cmcltd.com


the error I get
Host hptst.cmcltd.com not found.

The following recipients did not receive this message:



edited /etc/resolv.conf and put these entries

domain cmcltd.com
nameserver download.cmcltd.com


/etc/mail/sendmail.cf and put this entry

# "Smart" relay host (may be null)
DS172.16.11.11



/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Steven Schweda
Honored Contributor
Solution

Re: not able to receive mail in hp-ux

> the error I get
> Host hptst.cmcltd.com not found.

Looks to me more like a name resolution
problem than a sendmail problem.

What's in /etc/hosts? Are you using DNS?

nslookup hptst.cmcltd.com
Gerard Powell
Advisor

Re: not able to receive mail in hp-ux

Dear Steven Schweda,

1. c:\>nslookup hptst.cmcltd.com

Server: download.cmcltd.com
Address: 172.16.2.2

Name: hptst.cmcltd.com
Address: 172.16.25.5

2. Yes. I am using DNS
/etc/hosts has the entries

#SMTP
172.16.11.1 cmcdak.cmcltd.com cmcdak
#DNS
172.16.2.2 cmcltd.com cmcltd
172.16.25.5 hptst.cmcltd.com hptst
Steven Schweda
Honored Contributor

Re: not able to receive mail in hp-ux

> 1. c:\>nslookup hptst.cmcltd.com

Why does that look as if it were run on a
Windows system?

I'm now officially confused.
Gerard Powell
Advisor

Re: not able to receive mail in hp-ux

I connect remotely from a windows m/c on these systems, so I had given nslookup from windows system.

This output is from hptst system.
# nslookup hptst.cmcltd.com
Using /etc/hosts on: hptst

looking up FILES
Name: hptst.cmcltd.com
Address: 172.16.25.5
Aliases: hptst

# nslookup cmcdak.cmcltd.com
Using /etc/hosts on: hptst

looking up FILES
Name: cmcdak.cmcltd.com
Address: 172.16.11.1
Aliases: cmcdak




Dennis Handly
Acclaimed Contributor

Re: not able to receive mail in hp-ux

>but not able to send from gmp@cmcltd.com to gmp@hptst.cmcltd.com

You should be checking nslookup on the machine that is sending mail.
Gerard Powell
Advisor

Re: not able to receive mail in hp-ux

You are right not able to send from gmp@cmcltd.com to gmp@hptst.cmcltd.com

output from gmp@cmcltd.com m/c

$ nslookup hptst.cmcltd.com
Server: 172.16.2.2
Address: 172.16.2.2#53

Name: hptst.cmcltd.com
Address: 172.16.25.5

uname -a
Linux cmcdak 2.6.9-42.0.2.ELsmp #1 SMP Thu Aug 17 17:57:31 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux