LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail: sending emails to Yahoo problem (http://www.linuxquestions.org/questions/linux-server-73/sendmail-sending-emails-to-yahoo-problem-789644/)

mikeressan 02-17-2010 03:00 AM

Sendmail: sending emails to Yahoo problem
 
I've had this really strange problem that I've been scratching my head for a couple of weeks.
Whenever I send an email to yahoo with sendmail I get this error:

"Deferred: Name server: g.mx.mail.yahoo.com.: host name lookup failure"

My BIND DNS is setup correctly, emails sent to any other domain are working, just yahoo isn't working. I can use telnet from my server to send to yahoo and it works, only through sendmail it doesn't work, I also have mailscanner installed, the server is Centos 4.4

Sendmail info:
Version 8.13.1
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
TCPWRAPPERS USERDB USE_LDAP_INIT

hostmaster 02-17-2010 08:14 AM

Can you resolve g.mx.mail.yahoo.com from your dns server ?

mikeressan 02-18-2010 03:13 AM

Yes i can.

Non-authoritative answer:
Name: g.mx.mail.yahoo.com
Address: 98.137.54.238

I also tried adding the yahoo mx records to the mailertable, also no luck.

hostmaster 02-18-2010 11:59 AM

Create a test session
sendmail -v abc@yahoo.com < mailfile (file containing FROm, TO, Subject empty line and then body)
Have you setup your dns server in /etc/resolv.conf, try by manually adding IPs in /etc/hosts. Is your /etc/nsswitch.conf properly setup. Please post it

mikeressan 02-22-2010 05:01 AM

created a test session same outcome.

[/etc/nsswitch.conf]
passwd: files
shadow: files
group: files
hosts: dns files
bootparams: files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: files
publickey: files
automount: files
aliases: files

[/etc/resolv.conf]
i have 3 dns servers 1 local and 2 ISP, they are both working correctly.

Adding entries to etc hosts does not effect anything.

I removed sendmail completely and reinstalled from source code. but I kept the same config files, and yahoo is still not resolving.
It appears one of the options in the config files is the problem. I'm going to comment out the options line by line and see where the problem is.
I also set up another email server with the same IP and sent to yahoo with success, I used a windows box with hMailServer-5.3.2. So it seems the problem is with sendmail or one of the servers files.
I will post my updates as they happen.

chinhw 04-11-2011 08:54 PM

Have you found the solution?
 
Hi,
I have a similar situation here. I am wondering if you have found the solution and would like to share it?


All times are GMT -5. The time now is 08:18 AM.