1748028 Members
5051 Online
108757 Solutions
New Discussion юеВ

Re: smtp error

 
SOLVED
Go to solution
aruns_s
Frequent Advisor

smtp error

Hi all,
I am using SMTP to send mail in my domain.
In sendmail.cf, i have configured 'DS' name as required. Now the mails are stalled with an error message 'reply: read error from '.It was working early and mails stopped functioning from today...

Your iputs are well appreciated
7 REPLIES 7
Sameer_Nirmal
Honored Contributor
Solution

Re: smtp error

The error messages indicates the either problem at SMTP server side or communication problem on account of network congestion sorta error.

Check the /var/adm/syslog/mail.log to check any other errors.

Check the reachability of the SMTP server using ping , nslookup.

If you are using mailx, you can use debug switches with sendmail to get more information of problem.
echo | mailx -s test -- -v -d8.99 -d38.99 -d3.99 xxx@abc.com >>/tmp/log.txt
aruns_s
Frequent Advisor

Re: smtp error

nslookup is working fine
aruns_s
Frequent Advisor

Re: smtp error

gethostbyaddr(10.4.5.124) failed: 1
syslog error
Sameer_Nirmal
Honored Contributor

Re: smtp error

Does the ip address shown by gethostbyaddr belong to SMTP server?

Which host name resolution you are using?
/etc/hosts , DNS or NIS ?

What you get if you use both ip address and FQDN of SMTP server with nslookup?

What does mail.log and sendmail debug shows?
aruns_s
Frequent Advisor

Re: smtp error

no. that address does not belong to SMTP.
Able to resolve the smtp adress and ping is also working.
Debug is not giving any errors..
aruns_s
Frequent Advisor

Re: smtp error

no. that address does not belong to SMTP.
Able to resolve the smtp adress and ping is also working.
Debug is not giving following output
getcanonname(abc.com), failed, stat=68
getla: 0
shouldqueue: CurrentLA=0, pri=30154: FALSE (CurrentLA < QueueLA)
getmxrr(smtphubs.intranet.westpac.com.au, droplocalhost=1)
;; res_querydomain(smtphubs.intranet.westpac.com.au, , 1, 15)
;; res_query(smtphubs.intranet.westpac.com.au, 1, 15)
;; Querying server (# 1) address = 10.209.24.250
unexpected answer type 5, size 14
xxx@abc.com... Connecting to smtphubs.intranet.westpac.com.au via relay...
;; res_querydomain(smtphubs.intranet.westpac.com.au, , 1,
Sameer_Nirmal
Honored Contributor

Re: smtp error

You should have used the the domain name of your setup and not abc.com.
The debug should provide information about the issue.

Did you verify the issue is only for your hpux server? It maybe a case that the there is a problem with SMTP server itself.
Check out with your mail administrator.

The debug could also be collected using these ways.

# echo "test" | sendmail -d38.99 -v -d8.99 xyz@ >>/tmp/log.txt

# sendmail -bt -d8.5 0,3 user@

BTW, Which version of sendmail you are
using?
# sendmail -bs
# what /usr/sbin/sendmail