
22nd July 2008, 00:49
|
|
Senior Member
|
|
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 30 Times in 20 Posts
|
|
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!
|

22nd July 2008, 07:00
|
|
Senior Member
|
|
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 30 Times in 20 Posts
|
|
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?
|

22nd July 2008, 14:39
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
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).
|

22nd July 2008, 16:13
|
|
Senior Member
|
|
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 30 Times in 20 Posts
|
|
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?
Last edited by wpwood3; 23rd July 2008 at 06:33.
|

23rd July 2008, 18:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Quote:
Originally Posted by wpwood3
Thanks Falko.
Could I create a co-domain instead?
|
Yes, you can do that.
Quote:
Originally Posted by wpwood3
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
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
|

23rd July 2008, 18:48
|
|
Senior Member
|
|
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 30 Times in 20 Posts
|
|
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?
Last edited by wpwood3; 23rd July 2008 at 18:51.
|

24th July 2008, 17:42
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
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.
|
|
The Following User Says Thank You to falko For This Useful Post:
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 17:31.
|
|
Recent comments
16 hours 10 min ago
21 hours 14 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 17 hours ago
1 day 17 hours ago
1 day 22 hours ago
2 days 5 hours ago
2 days 6 hours ago
2 days 7 hours ago