Take the 2-minute tour ×

am using the sendmail to send an email and configure it as the following :

FEATURE(`authinfo',`hash /etc/mail/authinfo')dnl


AuthInfo:smtp-server "U:username@host.com" "P:password" "M:PLAIN"

after that i run the following command :
$ m4 sendmail.mc >sendmail.cf
$ makemap hash authinfo < authinfo
$ /etc/init.d/sendmail restart

and test it with :
/usr/sbin/sendmail -v mabdalmahdi@gmail.com < body.txt

but still cant receive any email ?? and i got the following error

Deferred: Name server:smtp-server-name: host name lookup failure <br>

i tried i can ping to the smtp server , and i run the command dig smpt-server-name
i cant see any thing wrong ... why i got this message and cant revise an email.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted



It should turn off lookups for MX records. If it does not help try Ipv4 address inside square brackets.

share|improve this answer
you are right ... and the ISP was block the smtp port :) ... –  moata_u Apr 9 '13 at 17:07
add comment

Your Answer


