Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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 honestly tried not to tinker with my webserver, but my qmail-send has been broken in some way in the last week. It was workign OK before but now it gives a #5.1.2 error on all addresses I send to, saying it can't find the domain.
Traditionally this error mans you spellt the domain name wrong. But in my case it is giving the same complaint about all email domains, even when spellt well.
Receiving mails is no problem, only sending. I have tried various configurations so I'm thinking that I may have inadvertently changed permissions or deleted or whatever to some file that qmail-send nneds to use. Files that come to mind are resolv.conf and named, I expect qmail might use them. Are they any ther thigns I should check to find the problem out?
Possibly a DNS lookup error? Can that machine resolve MX records for other domains?
Run this from a terminal:
Code:
dig mx linuxquestions.org
And part of the output should include:
Code:
;; ANSWER SECTION:
linuxquestions.org. 14400 IN MX 10 mail.linuxquestions.org.
If none of the output includes that information, then your server can't resolve the MX properly.
Try adding running:
Code:
dig mx linuxquestions.org @208.67.222.222
That will force dig to use the OpenDNS name server. If that does work, then it's a problem with the DNS server that your Mail Server is using. If it still doesn't work, then there's a problem with your Mail Server and the way it's doing lookups - maybe a firewall blocking port 53 traffic?
YEs, it did work if I used the OpenDNS. So it is my nameserver.
Now, as you noticed I said, it WAS working. So while I was rummaging through the pile of BIND documentation, I started getting impatient, and decided I should undo whatever changes I had made. However, I had only made one small change, and it did not have anything to do with mail.
The change I had made was including "recursion no;" close to the top of named.conf, because I was advised to, by www.dnsstuff.com. Well I deleted it again, did a "rndc reload" and suddenly I could send mail again!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.