Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > Unable to send emails to my own domain

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 12-23-2003   #1 (permalink)
Just Joined!
 
bclark4444's Avatar
 
Join Date: Dec 2003
Posts: 41
Unable to send emails to my own domain

Hello,
i have a fresh install of Redhat 9.0 and have not changed any of the sendmail configuration options (yet). I have also installed Bugzilla on this machine and need the ability to send email notifications to people when there are bug updates. I really dont understand sendmail very well because ive been very successful at dodging it, at the same time, i am a bit of a veteran at Linux admin stuff. Anyway, i can send emails to any other domain except for my own. For example, i can send an email to anybody@hotmail.com but i cannot send an email to myself@mydomain.com. If i sent it to mydomain.com then the message is returned as 'Returned mail'. I get the following message within that mail stating: Host unknown (Name server: 192.168.20.101.mydomain.com.: host not found). Now, the confusing thing is that 192.168.20.101 is the ip address to my mail.mydomain.com (which is where i want the email to be relayed to) but it seems to take the ip address and append on the domain name again. Here is the lowdown on my versions:
sendmail-8.12.8-4
sendmail-cf-8.12.8-4
kernel-2.4.20-6

cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)

Any help would be greatly appreciated...

Thanks
bclark4444 is offline  


Reply With Quote
Old 12-23-2003   #2 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
Have you set up the name resolving correctly? If you run "host -a mydomain.com", do you get a correct A or (preferrably) MX record?
Dolda2000 is offline   Reply With Quote
Old 12-23-2003   #3 (permalink)
Just Joined!
 
bclark4444's Avatar
 
Join Date: Dec 2003
Posts: 41
Right On!!!! It turns out that the DNS was configured with an incorrect MX record for my domain. The MX record had the mail server IP address and should have just said mail:

This is what it was:
@ IN MX 10 192.168.20.101

This is what i changed it to:
@ IN MX 10 mail

I then restarted named and now sendmail can email to mydomain.com.... Problem solved!!!!

Thanks, i really appreciate the help....
bclark4444 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:25 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2