LinuxQuestions.org
Help answer threads with 0 replies.
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 01-26-2005, 10:48 AM   #1
dlublink
Member
 
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 330

Rep: Reputation: 30
The best way to do, Apache, DNS, Mail etc...


Hi All!

I am setting up a server which will host about half a dozen domains to start will be adding from time to time.

Currently I know how to make VirtualHosts in Apache, I know how to make DNS entries in BIND 9, I know how to setup postfix to deliver messages for a single domain to Cyrus, I setup squirrelmail to allow people from that domain to access their mail.

I would like to have users for each domain. And I will need to allow things like
joe@mydomain.net is a different user than joe@anotherdomain.net.

I need some pointers on the best possible wait to go about doing this?

As you can tell I am somewhat of a newbie, so please help me.

Thanks,

David
 
Old 01-26-2005, 02:20 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
I found this tutorial which is Debian based but should work for any distro, some time ago.
 
Old 01-26-2005, 02:34 PM   #3
dlublink
Member
 
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 330

Original Poster
Rep: Reputation: 30
What about Apache? Is there a way to get Apache to look up virtual hosts in a mysql database? And Bind, I found a package called mysql-bind. Anyone try that? Is it anygood?

Thanks

David
 
Old 01-26-2005, 03:05 PM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
With Apache you setup the virtual domains in the httpd.conf . A good tutorial at:
http://www.apachefreaks.com/tutorials/23/1.php
 
Old 01-26-2005, 03:32 PM   #5
dlublink
Member
 
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 330

Original Poster
Rep: Reputation: 30
I know about httpd.conf.

I was hoping there was an easier way to do it that amongst other things, did not involve restarting apache...

David
 
Old 01-26-2005, 03:57 PM   #6
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally posted by dlublink
I know about httpd.conf.

I was hoping there was an easier way to do it that amongst other things, did not involve restarting apache...

David
??????? it only takes a few seconds to restart the server. In Debian it is controlled through /etc/init.d i.e. $ /etc/init.d/apache restart
 
Old 01-26-2005, 07:57 PM   #7
dlublink
Member
 
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 330

Original Poster
Rep: Reputation: 30
A few seconds is an eternity when your friends are having visitors 24/7

 
Old 02-04-2005, 10:33 PM   #8
wtfguy
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
What? Try it. If it usually takes 2 seconds to load the page, it will take three if someone is unlucky enough to request the page while the server is restarting. You won't even get an error. If you want, you could schedule it for between 3:00:00 AM and 3:00:01 AM so nobody notices.
 
Old 02-05-2005, 03:58 PM   #9
Doug Hammond
LQ Newbie
 
Registered: Feb 2003
Distribution: rehdat 8.0
Posts: 14

Rep: Reputation: 0
for the email thing, you can use postfix and vm-pop3d for virtual domain mailboxes.

tutorial here:
http://sonicresolutions.com/tech/how...x_vmpop3d.html

took all of about 15 minutes to setup.
 
Old 02-05-2005, 08:21 PM   #10
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
>> a few seconds is an eternity when your friends are having visitors 24/7
Better if you 'reload'(which is a HUP) than 'restart' to update.
You could also use a proxy server to cache your web pages and allow apache to update behind the scenes.
 
  


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
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
DNS/E-Mail Matir Linux - Software 1 02-16-2005 09:24 AM
fedora core 2 / apache / dns / mail server rioguia Linux - Security 2 01-18-2005 02:01 PM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 06:06 PM
DNS for Mail twistedpair Linux - Networking 4 01-13-2004 05:21 PM

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

All times are GMT -5. The time now is 07:22 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