Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 27th, 2003, 11:51 AM
Morrigan's Avatar
Morrigan Morrigan is offline
Midnight Rider
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Quebec, Canada
Posts: 58 Morrigan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
Unhappy Qmail: CNAME_lookup_failed_temporarily

I had a qmail server running (vpopmail, imap) for a few months now... We had trouble to get it working at first but it was eventually resolved.

So I let it run just like that. The guy who installed it, a Linux Redhat techie (which I'm really not ), got fired a while ago, so I can't count on him, and now we've got a problem... and they're counting on me <ulp>.

Mails aren't getting sent anymore. In the logs I see " CNAME_lookup_failed_temporarily" everywhere. And it seems that it's been doing that for a while, so I'm surprised I there were no complaints earlier!

But anyway... I googled that error message but really couldn't find anything that matched the problem. I mean in my case, it *was* working before! Why would it suddenly stop? O_o Now the queue has tons of messages in it that have never been sent... it's baffling me.
I tried the
echo to: me@wherever | /var/qmail/bin/qmail-inject
from the TEST.deliver, and it didn't work, in the logs I still get the CNAME_lookup error.

What should I do? Keep in mind I'm not utterly clueless when it comes to Linux, but I'm not a pro either.

Thanks.

(Edit: they can *receive* mails just fine, and sending to an address on the same domain/server works, ie. myaddy@myserver.com can send to myotheraddy@myserver.com, but not to remoteaddy@remoteserver.com)
__________________
Encyclopaedia Metallum: The Metal Archives - the Ultimate Heavy Metal Archives! If it's not there, add it yourself.

Last edited by Morrigan : October 27th, 2003 at 11:55 AM.

Reply With Quote
  #2  
Old October 27th, 2003, 12:31 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 15
From the command line, try:
Code:
dig a remoteserver.com
dig mx remoteserver.com

where remoteserver.com is the name of the server you're having trouble sending mail to.
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
  #3  
Old October 27th, 2003, 01:17 PM
Morrigan's Avatar
Morrigan Morrigan is offline
Midnight Rider
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Quebec, Canada
Posts: 58 Morrigan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
Hmm, it cannot send to -any- mail server except for its own... are you saying I should add every possible domain, ever?

Reply With Quote
  #4  
Old October 27th, 2003, 01:47 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 15
Quote:
are you saying I should add every possible domain, ever?

You can try, if you like. But it's irrelevant for the purposes of this exercise.

Try and run the aforementioned dig commands for a domain that you are having difficulties sending mail to. This should indicate if your server is experiencing general difficulties in resolving names (e.g. failing DNS resolver servers) or if the problem is more specific to qmail (e.g. oversized DNS responses).

Reply With Quote
  #5  
Old October 27th, 2003, 02:30 PM
Morrigan's Avatar
Morrigan Morrigan is offline
Midnight Rider
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Quebec, Canada
Posts: 58 Morrigan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
Alrighty.
So here's the results (with the domains replaced by a generic name of course)

Code:
[root@localhost qmail]# dig a remoteserver.com

; <<>> DiG 9.2.1 <<>> a remoteserver.com
;; global options:  printcmd
;; connection timed out; no servers could be reached
[root@localhost qmail]# dig mx remoteserver.com
; <<>> DiG 9.2.1 <<>> mx remoteserver.com
;; global options:  printcmd
;; connection timed out; no servers could be reached

Even tried that command with the actual local server, and got the same error:
Code:
[root@localhost qmail]# dig mx localserver.com

; <<>> DiG 9.2.1 <<>> mx localserver.com
;; global options:  printcmd
;; connection timed out; no servers could be reached

I don't know what this stuff means, but perhaps you do? Any idea?
Thanks for your help.

Last edited by Morrigan : October 27th, 2003 at 02:41 PM.

Reply With Quote
  #6  
Old October 27th, 2003, 02:32 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 15
Quote:
;; connection timed out; no servers could be reached

Your server's ability to resolve names is broken.

What's in your /etc/resolv.conf file?

Reply With Quote
  #7  
Old October 27th, 2003, 02:43 PM
Morrigan's Avatar
Morrigan Morrigan is offline
Midnight Rider
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Quebec, Canada
Posts: 58 Morrigan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
It says (x'ed last two numbers for privacy):

nameserver 149.99.x.x

And that's it.
What baffles me is that the mail woul work fine just a couple of months ago... Could it be (and I apologize if I'm saying something really stupid or newbie here ) something to do with a lack of drive space that f*cked up something? I'm probably wayyy off, but usually (keyword: usually), things don't get broken all of a sudden... hehe.

Reply With Quote
  #8  
Old October 27th, 2003, 02:46 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 15
Quote:
x'ed last two numbers for privacy

No, don't do that. This afford you no extra privacy at all and makes it impossible for me to help you solve your problem.

Re-post with the complete information that I asked for.

Reply With Quote
  #9  
Old October 27th, 2003, 02:58 PM
Morrigan's Avatar
Morrigan Morrigan is offline
Midnight Rider
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Quebec, Canada
Posts: 58 Morrigan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
Oh, okay, sorry...

nameserver 149.99.184.138

Reply With Quote
  #10  
Old October 27th, 2003, 05:53 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 15
Code:
[root@vaio root]# dig a google.com

; <<>> DiG 9.2.1 <<>> a google.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44680
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com.                    IN      A

;; ANSWER SECTION:
google.com.             300     IN      A       216.239.37.99
google.com.             300     IN      A       216.239.57.99

;; AUTHORITY SECTION:
google.com.             345600  IN      NS      ns1.google.com.
google.com.             345600  IN      NS      ns2.google.com.
google.com.             345600  IN      NS      ns3.google.com.
google.com.             345600  IN      NS      ns4.google.com.

;; Query time: 71 msec
;; SERVER: 212.23.8.1#53(212.23.8.1)
;; WHEN: Mon Oct 27 23:35:12 2003
;; MSG SIZE  rcvd: 132

[root@vaio root]# dig @149.99.184.138 a google.com

; <<>> DiG 9.2.1 <<>> @149.99.184.138 a google.com
;; global options:  printcmd
;; connection timed out; no servers could be reached
[root@vaio root]#

[root@vaio root]# nmap -sT -P0 -p 22,53 149.99.184.138

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on 149-99-184-138.dsl.mtl1.sprint-canada.net (149.99.184.138):
Port       State       Service
22/tcp     filtered    ssh
53/tcp     filtered    domain

Nmap run completed -- 1 IP address (1 host up) scanned in 40 seconds
[root@vaio root]# 

I couldn't resolve any DNS queries using that server, and all the ports appear filtered. I'm assuming (since it's on a DSL range) that 149.99.184.138 is your IP address? If so, is there a DNS resolver (e.g. BIND, dnscache) running on that IP address? If not, then put your ISP's name servers as nameserver entries in /etc/resolv.conf - this will allow your machine to resolve DNS queries again.

Reply With Quote
  #11  
Old October 28th, 2003, 10:40 AM
Morrigan's Avatar
Morrigan Morrigan is offline
Midnight Rider
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Quebec, Canada
Posts: 58 Morrigan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
Hah! It turns out this IP was totally wrong! It's not even my IP or the server's or anything...

I asked the tech admins (they're finally back, woohoo) about this IP and they seemed confused. I wonder what the hell it was doing in the resolv.conf?

Well, they gave me the DNS server IP and now it seems to work. I ran the dig command to it too, and got results.

Thanks a million for your help. ^_^ Now... do you have a suggestion as for what I should do with all the email messages in the queue? <blushes> It'll be weird for the recipients to receive old emails, so maybe I should nuke 'em somehow, but then, it might contain important data, so I don't know what to do...

At least it should work fine from now on. Phew.

Reply With Quote
  #12  
Old October 28th, 2003, 10:43 AM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 15
Quote:
Now... do you have a suggestion as for what I should do with all the email messages in the queue?

Just wait for a while; qmail will attempt to deliver them according to its own internal schedule.

If you want to force it to attempt delivery for the queue contents now, you can do:
Code:
qmailctl doqueue

(assuming you've installed in accordance with the instructions at www.lifewithqmail.org).

Reply With Quote
  #13  
Old October 28th, 2003, 11:06 AM
Morrigan's Avatar
Morrigan Morrigan is offline
Midnight Rider
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Quebec, Canada
Posts: 58 Morrigan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
Yes, seems like it... I just received a test email I had sent yesterday now.
Oh, well, if anyone ask... it's not me. <looks around suspiciously>
(Actually, it isn't, I never touched that resolv.conf file before and didn't change the DNS, heh).

Thanks again for your help. Now I need to get cranking on enabling pop3 (which is what I was asked to do, but as I went to check it out I noticed the other problem so I resolved to get that fixed first) on the IMAP mail server...

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > Qmail: CNAME_lookup_failed_temporarily

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap