2 DA servers where to put main website?

rldev

Verified User
Joined
May 26, 2004
Messages
1,003
I'm not sure this belongs here. How do some of you have your main website setup?

I have 2 DA servers setup. I want to keep my email and website on it's own DA server on a different network then my users. I'm not certain how to handle this since my admin/reseller account on the main DA server serves my clients. These 2 servers have dns synced. Am I making any sense?
 
A little sense. DirectAdmin is designed to run on a single server (except for the DNS, which you say you've already got working).

But you can certainly have your reseller account on one server and your site on another.

Jeff
 
How would you do that? Since my reseller domain is the company domain? I know it is no problem using a sub-domain on the new server, but I do not want to use a sub-domain. And since dns is synced, it will not allow me to setup the same domain on the new server.
 
You don't have to have a domain associated with your reseller account. Set up your web site on one server and your reseller account on the other. You may be asked for a domain when setting up the reseller account but you can then just log into your reseller account and delete the domain.

What I don't understand is if both of these are your servers why do you have a reseller account setup at all for yourself? All your users can just under the admin account.
 
Thanks Floyd.

"What I don't understand is if both of these are your servers why do you have a reseller account setup at all for yourself? All your users can just under the admin account."

They are both the admin/reseller account. Is there some other way I am missing?
 
I guess I am not understanding what your problem is. Let's go over it again.

You have 2 servers each with their own DA license.
Your web site is on one of them.
Your customers are on the other one under the admin account.

I don't understand the problem. The two servers don't have anything to do with each other except that it looks like you have the dns synced.

You said:
I want to keep my email and website on it's own DA server on a different network then my users.

No problem there. Just put your web site on the one server.

I'm not certain how to handle this since my admin/reseller account on the main DA server serves my clients.

Handle what? Your web site and email have nothing to do with the other server.
 
New accounts are setup under my sites name servers. This account is currently setup on the same server as my customers. I want to move my site, email, etc to the new daserver which is not populated and in a different datacenter.


"Handle what? Your web site and email have nothing to do with the other server."


Of course they do. My account is already setup on the populated server. Are you saying I can delete this account and create it on the new server? If so, how do I bypass the DA dns check?
 
My account is already setup on the populated server.

That is a key point that we did not know about before. But I think what you really meant to say was "My web site is already setup on the server with the other customer accounts."

So now your real question is how to move your existing website from one server to another.

You don't have to delete it. Just make a backup of it and then remove entry for your site from the named.conf file and then restore the backup on the new server. Then make sure the ip gets changed to the ip of the new server.

I have never used the Multi Server Setup for dns before so I don't know how that works.
 
That's correct. I will have to be quick as I do not want to screw up dns for people. Thanks.
 
I'm exaggerating a bit. But the name server records for the hosted domains are tied into my dns record.
 
But the name server records for the hosted domains are tied into my dns record

Nameserver records are stored at the root nameservers through your registrar.

But regardless the restored backup should contain all of your dns. And its in memory. You can delete your dns records and as long as named does not get reloaded the dns will still work.

I also said:
remove entry for your site from the named.conf

But you should not have to even do that since you are restoring a backup not adding it new.
 
Well I did it. I have one problem. Mail is no longer routing for my domain.

It says

Unknown User" and it is pointing properly to the new server.

Here is a server mail transcript.

[root@host2 log]# echo $string | /usr/sbin/sendmail -v [email protected]
[email protected]... Connecting to mail.rocksolidnet.com. via esmtp...
220 web-host-servers.com ESMTP Exim 4.66 Tue, 17 Apr 2007 15:36:33 -0500
>>> EHLO host2.rsinternet.com
250-web-host-servers.com Hello host2.rsinternet.com [209.239.35.23]
250-SIZE 20971520
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
>>> MAIL From:<[email protected]> SIZE=1
250 OK
>>> RCPT To:<[email protected]>
>>> DATA
550 "Unknown User"
503 valid RCPT command must precede DATA
>>> RSET
250 Reset OK
/root/dead.letter... Saved message in /root/dead.letter
Closing connection to mail.rocksolidnet.com.
>>> QUIT
221 web-host-servers.com closing connection
 
What do the exim logs on the new server have to say? mainlog and rejectlog.
 
Reject Log:

007-04-17 15:36:33 H=host2.rsinternet.com [209.239.35.23] F=<[email protected]> rejected RCPT <[email protected]>:
2007-04-17 15:49:15 H=host2.rsinternet.com [209.239.35.23] F=<[email protected]> rejected RCPT <[email protected]>:
2007-04-17 15:49:27 H=(www.newwebsite.com) [12.180.200.181] F=<[email protected]> rejected RCPT <[email protected]>:
2007-04-17 15:57:09 H=host2.rsinternet.com [209.239.35.23] F=<[email protected]> rejected RCPT <[email protected]>:

MainLog:

2007-04-17 15:49:15 H=host2.rsinternet.com [209.239.35.23] F=<[email protected]> rejected RCPT <[email protected]>:
2007-04-17 15:49:15 H=host2.rsinternet.com [209.239.35.23] incomplete transaction (RSET) from <[email protected]>
2007-04-17 15:49:27 failed to expand condition "${perl{save_virtual_user}}" for virtual_user router: Undefined subroutine &main::save_virtual_user called.

2007-04-17 15:49:27 H=(www.newwebsite.com) [12.180.200.181] F=<[email protected]> rejected RCPT <[email protected]>:
2007-04-17 15:49:27 H=(www.newwebsite.com) [12.180.200.181] incomplete transaction (QUIT) from <[email protected]>
2007-04-17 15:57:09 failed to expand condition "${perl{save_virtual_user}}" for virtual_user router: Undefined subroutine &main::save_virtual_user called.

2007-04-17 15:57:09 H=host2.rsinternet.com [209.239.35.23] F=<[email protected]> rejected RCPT <[email protected]>:
2007-04-17 15:57:09 H=host2.rsinternet.com [209.239.35.23] incomplete transaction (RSET) from <[email protected]>
2007-04-17 16:03:09 exim 4.66 daemon started: pid=707, -q15m, listening for SMTP on port 25 (IPv4) port 587 (IPv4)
2007-04-17 16:03:29 failed to expand condition "${perl{save_virtual_user}}" for virtual_user router: Undefined subroutine &main::save_virtual_user called.

2007-04-17 16:03:29 H=host2.rsinternet.com [209.239.35.23] F=<[email protected]> rejected RCPT <[email protected]>:
2007-04-17 16:03:29 H=host2.rsinternet.com [209.239.35.23] incomplete transaction (RSET) from <[email protected]>


Maybe bad permissions somewhere?
 
Here is your problem I think:

failed to expand condition "${perl{save_virtual_user}}" for virtual_user router: Undefined subroutine &main::save_virtual_user called.

Do you have something like that in your exim.conf file? I don't have it in mine.
 
Back
Top