sendmail doesn't send email to specific domain email address

We have ubuntu 12.04 server and installed sendmail to send mails from this server.

Problem:

There is some strange issue on mail server. Somehow, server not able to send email to [email protected]

but server sends email successfully to other email ids like [email protected], [email protected] or [email protected].

Success Case: when send email to [email protected]

Dec 28 11:40:49 ip-10-99-66-252 sm-mta[16954]: qBSBemdx016952: to=<[email protected]>, ctladdr=<[email protected]> (33/33), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120352, relay=aspmx.l.google.com. [74.125.131.27], dsn=2.0.0, stat=Sent (OK 1356694874 d3si34930711vdv.119)
Dec 28 11:51:43 ip-10-99-66-252 sendmail[16960]: qBSBphki016960: from=www-data, size=89, class=0, nrcpts=1, msgid=<[email protected]>, relay=www-data@localhost

Fail Case: when send email to [email protected]

Dec 28 11:51:43 ip-10-99-66-252 sm-mta[16962]: qBSBphSo016962: <[email protected]>... User unknown Dec 28 11:51:43 ip-10-99-66-252 sendmail[16960]: qBSBphki016960: [email protected], ctladdr=www-data (33/33), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30089, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown

Can someone please help to sort out this issue ?

Edit: I have removed sendmail from server and re-installed it. now i am getting following in mail.log when sends mail to [email protected]

Dec 29 09:34:32 ip-10-99-66-252 sm-mta[1773]: qBT9YWGZ001771: to=<[email protected]>, ctladdr=<[email protected]> (33/33), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120393, relay=mx.ayolla.com. [66.96.142.51], dsn=5.0.0, stat=Service unavailable

Note: I don't want to expose our emails that's why i replaced xxx with original email address into this question.


The configuration has changed after you re-installed sendmail. Before, it was trying to relay email for this domain via itself. (relay=[127.0.0.1] [127.0.0.1]) i.e. Your mail server was asking itself to send mail.

Now, it's correctly doing the MX lookup and trying to send via the mail servers for ayolla.com (relay=mx.ayolla.com. [66.96.142.51]).

The trouble seems to be that it can't connect to 66.96.142.51. (Or, presumably the other two: 66.96.142.50 and 66.96.142.52.)

Try telnet 66.96.142.51 25 from your server to see if you can connect. An instant fail or a timeout means that there's either a network route that's not correct or a firewall that's not allowing this traffic. If you are sure it's not at your end, it's must be at their end.