LinuxQuestions.org
Review your favorite Linux distribution.
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 03-02-2007, 08:12 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
2 websites and a e-mail on a single server


I have a customer that wants me to migrate a website from his current web hosting provider and also setup a mail server to host his e-mail from the same web hosting company. Later down the road he wants to add another website to his current infrastructure. My questions is can I put both domains and e-mail on this one server and how many public IP's will I need? any how to would help thanks

Last edited by metallica1973; 03-02-2007 at 08:13 AM.
 
Old 03-02-2007, 08:36 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
apache can host as many domains as you wish without any additional ip addresses at all, using the virtualhosts functionality. additionally you can host multiple domains on most MTA's without anything special, you simply say that you'll accept more than one domain. there are extra steps to define where mail goes and such, but if it's actually for the same people, you'll probably want that mail to integrate to a common mailbox anyway.

btw, hope you got that ssl stuff sorted out, certainly passed what i'm experienced in really...
 
Old 03-02-2007, 08:51 AM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
As far as the SSL stuff and EAP-PEAP stuff, I put it on the back burner for now. I start taking statistics and Calculus and it is slowly killing me. This client that I am dealing with wants me to put everything on this one box and I was a little hesitant. I am used to separating bigger applications on separate boxes. I know that he doesnt have any databases on the backend so I think that it will be straight forward. His e-mail as well. To put it in a nutshell would this be the correct steps for setting this up:

1 - Get his account info to his web hosting company.

2 - Setup his linux box with Apache (all is a DMZ)

3 - copy his website files from his web hosting company to the local linux box running Apache.

4 - redirect the DNS queries from his web hosting company to point to his local web server.

5 - Setup his linux box with Postfix, Sendmail, or whatever.

6 - Redirect his mx records queries to his local e-mail MTA

7 - harden the box

Two more questions:

How can I implement this in a testing environment before I go live with it?

Secondly, he and his 15 employees who use Microsoft Outlook, Can I use Postfix, Sendmail and etc to work with Microsoft Outlook. I have seen OpenXchange, Scalix, and others and there is a plugin for Outlook to work. Help

P.S

Dude, thanks for everything. In time you will truly begin to appreciate a true metal band like Metallica. Forget those poser grung rock bands. they suck.

Last edited by metallica1973; 03-02-2007 at 09:04 AM.
 
Old 03-02-2007, 10:02 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Personally i have no experience, and no interest in exchange-u-like servers. i've heard very very good things abotu Zimbra too, and the likes of them may well end up replacing the conventional SMTP / POP3 stuff within some parts of business. but i stick with the standards really...

outlook can certainly use arbitrary pop3 / imap4 / smtp servers, just a case of telling them to via a paperclip or naughty yet loveable puppy. you should generally be able to configure all required services to a level of production before going live, and also presumably migrate one service at a time. as such i'd certainly suggest doing http stuff first, then point the dns records to the new server. remember that email doesn't use standard DNS A records, but MX records, so you can move www.example.com and example.com to point to the web server without any chance of affecting the email side at all, as long as there are still MX records untouched.

one thing i find useful is one of those web developer extensions for firefox, where you can craft the http headers as you see fit. by doing this you can go to http://test.example.com or just http://12.34.56.78 but tell the actual http request to want site1.example.com or www.example.com and get the exact site back but without changing the live site. but essentially, the apache side revolves around the virtualhost directive, and is actually very simple.

i swear i'd rather eat my own teeth than listen to grunge (except nirvana, natch).
 
Old 03-02-2007, 10:43 AM   #5
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
One more stupid question:

I can do all of this with his current static ip or should i have get another ip for this web/e-mail server?

regards
 
Old 03-03-2007, 07:16 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
all you need to care about is that traffic can hit that box. after that it's all down to the applications handlign the higher layer data. if you have an mx record pointing to a publicaly routable ip on a dsl router, and that's port forwarded to a dmz server on a private class c subnet, then that's fine.
 
Old 03-03-2007, 12:27 PM   #7
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
you are the man
 
  


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
Delete a single E-mail / multiple mbox files mgichoga Debian 0 02-18-2007 08:42 PM
Single port open, multiple websites with Apache sardaukar_siet Linux - Server 4 02-12-2007 03:04 AM
Getting (replicas)three mails for single mail- mahabooba Linux - Security 2 01-25-2006 01:05 AM
Websites and their mail server using linux elainepearl Linux - General 1 07-23-2003 02:31 AM

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

All times are GMT -5. The time now is 11:31 AM.

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