Operating System - HP-UX
1827894 Members
1632 Online
109969 Solutions
New Discussion

Sendmail configuration problem.

 
SOLVED
Go to solution
ckchai
Frequent Advisor

Sendmail configuration problem.

Hi,
I'm having problem configuring a HP-Unix server to sent a mail out.

This is what I have do to configure the sendmail:-

My server is resolving using /etc/hosts.
1) Add the mail relay ip and hostname to /etc/hosts.


2) At the /etc/mail/sendmail.cf file.
I configure the "DSdomainname" and "Dj$wdomain.com"

3) I restart the sendmail daemon.

But I still get this message :-

MKZSX003@root:>sendmail -v chai.external@infineon.com
infineon.com: Name server timeout
chai.external@infineon.com... Transient parse error -- message queued for future delivery
helllo
.
chai.external@infineon.com... Queued


What else is affecting the sendmail?
i have try manually connect to smtp relay server. And i can sent a mail out.
8 REPLIES 8
Peter Godron
Honored Contributor
Solution

Re: Sendmail configuration problem.

Hi,
check /etc/resolv.conf and /etc/nsswitch.conf files.
DNS may not be resolving ip address.
Joseph Loo
Honored Contributor

Re: Sendmail configuration problem.

hi,

test this:

# telnet 25

also, confirm that the domain name are :

Dj$w.
e.g. Dj$w.infineon.com

Ds
e.g. DSabc.infineon.com

regards.
what you do not see does not mean you should not believe
Luk Vandenbussche
Honored Contributor

Re: Sendmail configuration problem.

Hi,

Try with the IP adres in /etc/mail/sendmail.cf

If this works, then it is a DNS problem
Shameer.V.A
Respected Contributor

Re: Sendmail configuration problem.

Hi Chai,
It seems to be a DNS Problem. Try to check the address resolving through nslookup , configure nsswitch entry of files as follows
hosts: files [NOTFOUND=continue] dns

Please refer the attached documents for more details..

Shameer
.... See invisible, feel intangible and achieve impossible as everything is possible ....
ckchai
Frequent Advisor

Re: Sendmail configuration problem.

After solved the DNS resolved error.

Now I got this error message while trying to sent mail out.

Any one know what is the caused of this error?


KZSX003@root:>sendmail -v chai.external@infineon.com
hallo.
.
chai.external@infineon.com... Connecting to appmail.ap.infineon.com via relay...
220 sinse211.ap.infineon.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 ready at Tue, 3 Jan 2006 13:16:54 +0800
>>> EHLO MKZSX003.
501 5.5.4 Invalid Address
>>> HELO MKZSX003.
501 5.5.4 Invalid Address
>>> QUIT
221 2.0.0 sinse211.ap.infineon.com Service closing transmission channel
Service unavailable
/dead.letter... Saved message in /dead.letter
Closing connection to appmail.ap.infineon.com
Peter Godron
Honored Contributor

Re: Sendmail configuration problem.

ckchaj,
as I originally thought, it was a DNS resolve problem.
Please double check the email address sent to.
For the new problem can you please try:
echo "test" | mailx chai.external@infineon.com
And report back.
ckchai
Frequent Advisor

Re: Sendmail configuration problem.

Thanks very much.

Now i was able to sent mail. The problem is due to /etc/nsswitch.conf file is messing.

After i copy the nsswitch.conf from backup. Then it is ok.
Indrajit_1
Valued Contributor

Re: Sendmail configuration problem.

Hi,

Check the following file, if it has configured properly..

#cat /etc/resolv.conf
{ it should look like..
domain infineon.com
nameserver x.x.x.x (ip address of the dns server)}

#cat /etc/nsswitch.conf

(it should like..
DSinfineon.com )

#telnet 25

if it is working fine..

send a test mail to ur id

#mailx -s " Test msg " chai.external\@infineon.com
hi! test is a test mail..
Press ctl D

Check ur mail box.. u should receive a test mail...

cheers
indrajit
Never Ever Give Up