LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-08-2006, 09:32 PM   #1
nzcraig
LQ Newbie
 
Registered: Jul 2006
Location: Auckland, New Zealand
Distribution: SuSE 10.1
Posts: 12

Rep: Reputation: 0
sending email problems


Hi all,

I am having trouble sending email externally from my machine.

I have a postfix installed but the sendmail command keeps logging to the mail error log that the "Host or domain not found. Name service error for name=smtp.x.y.z type=MX. Host not found, please try again".

I just want to send emails out and not store any mailboxes (this has Gforge installed on it). The machine doesn't have a DNS so was just setting my email to go directly to the server via the MTA. I set it as [smtp.x.y.z] also which apparently stops MX lookups (which obviously didn't work). I thought this would be a simple thing to set up but I must be missing something here.

Can someone help?

Thanks,

Craig
 
Old 08-09-2006, 01:46 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Can you ping smtp.x.y.z from that machine? It sounds like postfix is having problems resolving the name. You say that the machine has no DNS...do you mean it doesn't have any DNS servers configured or that it isn't running DNS? If it has no DNS servers configured then you'll have to refer to everything by IP address which is gonna be a pain.
 
Old 08-09-2006, 04:48 PM   #3
nzcraig
LQ Newbie
 
Registered: Jul 2006
Location: Auckland, New Zealand
Distribution: SuSE 10.1
Posts: 12

Original Poster
Rep: Reputation: 0
Firstly thanks for the reply. Here's the response to your questions.

I can ping smtp.x.y.z and I believe that postfix is the problem. I have a DNS but it is external that my gateway knows about. The machine doesn't have a DNS server itself.

I did do a work around for the problem.

1. I edited the hosts file and set the IP address of the SMTP server. e.g. 203.a.b.c smtp.x.y.z
2. I edited the config file and said don't use DNS lookups.

The emails are now going through, but it seems a bit of a hack doesn't it?
 
Old 08-09-2006, 04:56 PM   #4
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
That sounds odd. Postfix certainly shouldn't have a problem resolving DNS names. And you're right, that is a bit of a hack. What's in your /etc/resolv.conf file?
 
Old 08-09-2006, 11:21 PM   #5
nzcraig
LQ Newbie
 
Registered: Jul 2006
Location: Auckland, New Zealand
Distribution: SuSE 10.1
Posts: 12

Original Poster
Rep: Reputation: 0
All it has in it is:

domain <mydomain>
nameserver 10.1.1.1

That nameserver is my gateway (ADSL router). Should I have the DNS servers in there instead. The ADSL router I have has the DNS server IP addresses setup in there.
 
Old 03-04-2008, 09:06 AM   #6
geden
Member
 
Registered: Nov 2004
Distribution: Mandriva ONE/ Kubuntu 8.04
Posts: 61

Rep: Reputation: 15
yes, this file should have your dns address in it,not your gateway address
 
  


Reply



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
sending email cambie Linux - Software 1 11-20-2004 06:02 PM
Sending a form to an email address problems! cucolin@ Programming 1 06-23-2004 05:21 AM
sending email GraemeK Linux - Networking 1 08-24-2003 05:14 PM
sending email csDraco_ Slackware 5 08-22-2003 05:50 PM
sending an email to a email address after a perl operation meluser Programming 9 04-07-2003 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration