Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd July 2008, 01:49
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Question Need help to "virtual host" one of my domains

I have a Windows web server (Server-B) that currently has DNS and mail handled by someone else. Let's say the domain is allparts.com

I also have a linux server (Server-A) running ISPConfig, CentOS, Postfix and Dovecot (Perfect Server) that handles my other domains. Let's say the domain here is myshop.com

What I want to do is change the nameservers at my domain registrar to point allparts.com to Server-A's name servers and set up mail on Server-A for allparts.com users to use. Basically, I want to dump the virtual hosting I am using for Server-B and do it all on Server-A. I can't eliminate Server-B because the web apps I run there are only Windows based.

I know how to handle changing the nameservers. What I am unsure of is getting the email configured so users can send and receive email since the web server is not located on Server-A and the allparts.com users don't have accounts on Server-A.

Hopefully, all of this makes sense...
Can someone sketch out what I need to do?
Thanks!
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography
Reply With Quote
Sponsored Links
  #2  
Old 22nd July 2008, 06:19
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Default Hmmm...

After reading and re-reading several of the email related How-to's here it seems like I can take one of these three paths:

1) Use Eliufoo Mahinda's How To Configure ISP Mail Server With Virtual Users/Domains On Centos 5.0 Using Postfix, Dovecot, MySQL, phpMyAdmin, TLS/SSL

2) Use Falco's Virtual Users And Domains With Postfix, Courier And MySQL (CentOS 5.1)

3) Or Joe Topjian's Virtual Hosting with Postfix


I'm not sure which is the better path. Unfortunately, Falco's How-to uses Courier and I have Dovecot.

Why isn't there a How-to for those of us that have the "Perfect Server" configuration? I don't want to risk breaking my ISPConfig 2 setup while I'm trying to add a feature that will be included in ISPConfig 3. This is frustrating.
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography

Last edited by wpwood3; 22nd July 2008 at 06:23.
Reply With Quote
  #3  
Old 22nd July 2008, 08:00
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Default Another thought

Maybe I'm making this too complex by going the virtual user route.
I only have a handful of users to worry about. The easier way may be to just add real users to Server-A and set up email accounts there for them.
dns on Server-A would look like this:
allparts.com and www.allparts.com would have A-records that point to the IP for Server-B
mail.allparts.com would be added as an A-record and MX record on Server-A for mail

If I do that I would still have the full functionality of ISPConfig.
I don't know how this setup would handle users that need to send and receive emails on both domains. ie- joe@allparts.com and joe@myshop.com

I like the potential simplicity but, I'm still not sure how to do all of this properly.

Comments?
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography
Reply With Quote
  #4  
Old 22nd July 2008, 15:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

You cannot use virtual users together with ISPConfig!

I'd simply create a web site for allparts.com in ISPConfig and create your email users with ISPConfig. You don't need to use the allparts.com web site on server A (the DNS records are pointing to server B).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 22nd July 2008, 17:13
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Default

Thanks Falko.

Could I create a co-domain instead? (and point the A-record to server B)
That way each current user on myshop.com would also receive email sent to allparts.com.
So email sent to joe@allparts.com would come to joe@myshop.com. Correct? Otherwise, I can't have 2 users on Server-A with the username of "joe".

Also, how do I setup Postfix on Server-A so applications on Server-B can send mail? Can I simply add the IP of Server-B to the mynetworks variable in main.cf or is there more involved?
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography

Last edited by wpwood3; 23rd July 2008 at 07:33.
Reply With Quote
  #6  
Old 23rd July 2008, 19:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by wpwood3 View Post
Thanks Falko.

Could I create a co-domain instead?
Yes, you can do that.
Quote:
Originally Posted by wpwood3 View Post
Otherwise, I can't have 2 users on Server-A with the username of "joe".
Usually you create the email addresses as aliases, for example joe@domaina.com would go to web1_joe, and joe@domain2.com would go to web2_joe...

Quote:
Originally Posted by wpwood3 View Post
Also, how do I setup Postfix on Server-A so applications on Server-B can send mail? Can I simply add the IP of Server-B to the mynetworks variable in main.cf or is there more involved?
Take a look here: http://www.howtoforge.com/postfix_re...her_mailserver
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 23rd July 2008, 19:48
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Default

I think you misunderstood what I want to do with the email...

Server-A has Postfix on it
Server-B has applications on it that need to be able to send mail but there is no mailserver on Server-B.

I want Server-B to be able to use my mail server on Server-A.

How do I configure Postfix on Server-A to accept and send email that comes from applications on Server-B?

I know I can simply create a valid mail account on Server-A and use smtp to send mail from Server-B to A. Is that the best way?
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography

Last edited by wpwood3; 23rd July 2008 at 19:51.
Reply With Quote
  #8  
Old 24th July 2008, 18:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

You must either program your apps to use SMTP-AUTH (i.e., you create a user account with a password for them on server A), or you add server B's IP address to mynetworks on server A.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
wpwood3 (24th July 2008)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question in "Virtual Users And Domains With Postfix, Courier And MySQL (Fedora 8)" davy_wei HOWTO-Related Questions 11 10th July 2008 00:41
"Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft)" 4integration HOWTO-Related Questions 40 28th September 2007 05:41
Issues with Postfix using "Virtual Users And Domains With Postfix, Courier And MySQL" Kyse HOWTO-Related Questions 15 6th January 2007 16:35
Upgrade question for "Virtual Users And Domains With Postfix, Courier And MySQL" emresumengen HOWTO-Related Questions 3 1st December 2006 16:33
imaplogin: chdir Maildir after "Virtual Users And Domains With Postfix" tutorial sPENKMAN HOWTO-Related Questions 4 14th September 2006 19:49


All times are GMT +2. The time now is 22:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.