Transferring client accounts from old sever to new

damn

Verified User
Joined
Nov 30, 2004
Messages
101
Hello,

I have read the valuable information on transferring accounts over:
here http://help.directadmin.com/item.php?id=57

I have essentially done a few accounts manually and this works fine, especially given I have different versions of FreeBSD & DA on the boxes.

My question is regarding mail.

If I backup a client account, move it, restore it, what about mail being delivered in the mean time? My plan was to kill exim, backup 10 accounts, move those accounts, restore, adjust DNS, wait for correct resolution, then once everything is pointed at the new box fire exim back up on the old box and repeat.

I tried this, but trusty DA started exim again on me! How can I temporarily stop DA from starting exim. Or is there a better way than I have suggested?
 
# perl -pi -e 's/exim=ON/exim=OFF/' /usr/local/directadmin/data/admin/services.status
# /usr/local/etc/rc.d/exim stop
 
You can safely turn of exim for the time it takes to move all sites if you wish; all mailservers should keep retrying email for up to four days.

Jeff
 
You could also add the following route to your exim.conf. All incoming mails in the meantime will be forwarded..

hub_route:
driver = manualroute
transport = remote_smtp
route_list = * new.server.ip
 
# perl -pi -e 's/exim=ON/exim=OFF/' /usr/local/directadmin/data/admin/services.status

Okay so we are editing the services.status file replacing ON with OFF I assume I can reverse that to put it back to normal once done?

Mail servers should wait if they are configured as per RFC.

You could also add the following route to your exim.conf. All incoming mails in the meantime will be forwarded..

hub_route:
driver = manualroute
transport = remote_smtp
route_list = * new.server.ip

Interesting - I had not considered this one. I can think of somewhere else I could use this. I have some clients with MS Exchange, and I wanted to relay the mail through my box mainly for RBL filtering & spam assassin, and not broadcasting their IP via a MX record.
 
Or turn it off through the admin control panel. That way DA won't turn it back on until you turn it back on through the control panel.

Jeff
 
Back
Top