LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-22-2005, 06:54 PM   #1
icarusfall
LQ Newbie
 
Registered: Feb 2005
Location: London, UK
Distribution: Debian Sarge, Ubuntu Breezy
Posts: 10

Rep: Reputation: 0
BIND9/Postfix Problems


OK, forgive a slightly complicated question from a total noob. I am trying to run a mail server with webmail capability from my server. My server is Debian Sarge running Postfix with Courier IMAP and Courier POP3, Postfix is using MySQL to identify the users and virtual domains. The webmail is SQwebmail. This was all working fine and dandy until I started fiddling around with BIND on the server. I followed some instructions I found to install BIND and run it out of a chroot jail. This didn't seem to go quite according to plan (in the process I deleted my /etc/resolv.conf file, I think this might be relevant information), but that wouldn't have mattered, but now it seems that Postfix is not delivering the mail any more, and the queue's just getting longer. I get the following error in my mail.log file:

postfix/virtual[2439]: fatal: gethostbyname: Resource temporarily unavailable

After googling around on gethostbyname, it seems that this is a DNS problem, so my assumption is that this could be fixed by undoing the damage I did with the bind. However, because I followed instructions to move /etc/bind to /var/lib/named/etc/, it seems I can't just reinstall bind9, as the command apt-get remove bind9 gives:

Stopping domain name service: namedrndc: connect failed: connection refused

So...to be honest, I'm a bit stuck. All I really want to do is to get postfix working again, and to do that I need to fix this gethostbyname problem, but I'm really not sure how to go about this. Does anyone have any suggestions? I'd be eternally grateful.

Thanks
 
Old 08-22-2005, 07:55 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,072

Rep: Reputation: 956Reputation: 956Reputation: 956Reputation: 956Reputation: 956Reputation: 956Reputation: 956Reputation: 956
It seems like your box now has problems translating names to IP addresses.

Try:
ping www.google.com

If the answer is:
PING www.l.google.com (64.233.167.104): 56 data bytes
64 bytes from 64.233.167.104: icmp_seq=0 ttl=237 time=63.2 ms

Stop here and wait for another answer. I don't know

else...

If you get an "unknown host" message or similair:
Fix the resolve problem.
Kill the DNS server on your machine by killing bind9
Edit the /etc/resolv.conf file, and put at least one line in:

nameserver your.isp.nameserver.ip

If you don't know what your ISP's name server is, enter:

nameserver 165.87.194.244

That one will work as well

At least you should have a workable system now, and you can explore what the rest of your problems is. You don't really need to run bind9 unless you have a LAN and you want to be able to look up local DNS addresses. Otherwise using your ISP's DNS is good enough in 90% of all cases.

jlinkels
 
Old 08-23-2005, 01:56 AM   #3
icarusfall
LQ Newbie
 
Registered: Feb 2005
Location: London, UK
Distribution: Debian Sarge, Ubuntu Breezy
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you very much indeed for your help, I ran apt-get remove bind9, and although it came back with an error the first time, the second time it said "bind9 not installed", so can I assume that bind9 is killed?
 
Old 08-23-2005, 07:08 AM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,072

Rep: Reputation: 956Reputation: 956Reputation: 956Reputation: 956Reputation: 956Reputation: 956Reputation: 956Reputation: 956
Do

"ps ax | grep bind"

to see if there is any bind process running.

If there is, note the PID (first column) and do:

"kill nnnn"

where "nnnn" is the PID.

I am not sure whether apt-get kills running processes if it uninstalls the package.

Enter all commands without quotes

jlinkels
 
Old 08-23-2005, 09:31 AM   #5
icarusfall
LQ Newbie
 
Registered: Feb 2005
Location: London, UK
Distribution: Debian Sarge, Ubuntu Breezy
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you very much for your help, that's very kind of you. I now have postfix running fine, so I'm extremely grateful.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Postfix problems elitenoob Linux - Newbie 2 05-30-2005 11:31 PM
problems setting up bind9 hwa Linux - Networking 2 04-10-2005 10:47 PM
Postfix on 10.1 problems barrys Mandriva 0 10-27-2004 10:02 AM
Postfix Problems Ronw Mandriva 4 02-26-2004 01:20 PM
problems with postfix for RH 8.0 mongoose Linux - Distributions 1 03-11-2003 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration