Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 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.
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?
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.