LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-17-2010, 03:00 AM   #1
mikeressan
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
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
 
Old 02-17-2010, 08:14 AM   #2
hostmaster
Member
 
Registered: Feb 2007
Posts: 55

Rep: Reputation: 17
Can you resolve g.mx.mail.yahoo.com from your dns server ?
 
Old 02-18-2010, 03:13 AM   #3
mikeressan
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 02-18-2010, 11:59 AM   #4
hostmaster
Member
 
Registered: Feb 2007
Posts: 55

Rep: Reputation: 17
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
 
Old 02-22-2010, 05:01 AM   #5
mikeressan
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 04-11-2011, 08:54 PM   #6
chinhw
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail is sending unnecessary multiple copies of emails from php form swg1cor14 Linux - Server 1 01-07-2010 08:25 AM
Problem sending emails DonaldUK Slackware 3 08-31-2007 12:56 PM
problem of sending out emails through sendmail -- error code 421 kkeith Linux - Newbie 1 06-30-2006 04:59 AM
sending/recieving emails with sendmail xushi Slackware 2 02-25-2004 04:44 PM
Sendmail not sending emails, errorlog hydro Linux - Software 8 06-20-2003 05:48 PM


All times are GMT -5. The time now is 05:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration