cancel
Showing results for 
Search instead for 
Did you mean: 

Can't use sendmail

 
Highlighted
Regular Advisor

Can't use sendmail

when I use sendmail "sendmail abc@mydomail.com" , the mail can't send out and stored in mqueue, the error as below , can advise what is the most possible reason of it ? thx

(host map: lookup (eagle.reo.com): deferred)
6 REPLIES 6
Highlighted
Honored Contributor

Re: Can't use sendmail

what is the linux version? Could you past the o/p of

#mailq

and

#grep sendmail.cf|grep -i alias

and what is reporting in /var/log/maillog and /var/log/messages?
Highlighted
Regular Advisor

Re: Can't use sendmail

I hv setup /etc/resolve.conf , now when use sendmail , the mail can't send out and can't find the mail in /var/spool/mqueue ,

the /var/log/maillog is as below, can advise what is wrong in my setting ? thx

Dec 3 21:47:03 localhost sendmail[8382]: My unqualified host name (reo.com) unknown; sleeping for retry

Highlighted
Honored Contributor

Re: Can't use sendmail

Highlighted
Honored Contributor

Re: Can't use sendmail

hi,

hopefully it is not as "complex" as in my thread as mentioned above.

Simple issues can be solved by analysing the output of the following command:

sendmail -v -d9.99 -d38.99 sendmail abc@mydomail.com < /dev/null

can you please upload this output?

revert

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Highlighted
Regular Advisor

Re: Can't use sendmail

hi , thx reply,

the below is the output when run your script.

getauthinfo: root@localhost
openmap() dequote:dequote NULL: valid
openmap() host:host NULL: valid
host_map_lookup(reo.com) => getcanonname(reo.com), trying files
text_getcanonname(reo.com)
getcanonname(reo.com), failed, status=68
FAIL (1)
host_map_lookup(reo.com) => CACHE NULL
abc@reo.com,sendmail... Connecting to [127.0.0.1] via relay...
220 newserver_linux ESMTP Sendmail 8.13.1/8.13.1; Thu, 6 Dec 2007 13:44:34 -060
0
>>> EHLO newserver_linux
250-newserver_linux Hello localhost.localdomain [127.0.0.1], pleased to meet yo

550 5.1.1 ... User unknown
550 5.1.1 ... User unknown
503 5.0.0 Need RCPT (recipient)
>>> RSET
250 2.0.0 Reset state
>>> RSET
250 2.0.0 Reset state
root... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> MAIL From:<> SIZE=1024
250 2.1.0 <>... Sender ok
>>> RCPT To:
>>> DATA
250 2.1.5 ... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 lB6JiY2j026154 Message accepted for delivery
root... Sent (lB6JiY2j026154 Message accepted for delivery)
Closing connection to [127.0.0.1]
221 2.0.0 newserver_linux closing connection
closemaps: closing host (NULL)
closemaps: closing dequote (NULL)
Highlighted
Honored Contributor

Re: Can't use sendmail

hi,

Sendmail is not able to resolve the name "reo.com" on the DNS thus the error:
host_map_lookup(reo.com) => getcanonname(reo.com), trying files
text_getcanonname(reo.com)
getcanonname(reo.com), failed, status=68
FAIL (1)

what does the following show?
dig reo.com


revert
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)