Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > Mail

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-04-2008, 10:24 AM
Registered User
 
Join Date: Mar 2007
Posts: 27
cmdln is on a distinguished road
Migrating to new machine and dealing with mail and dns lag

I am preparing to migrate to a new machine. I've been burned in the past with DNS. Setting the ttl low ahead of time helps but it only helps so much. With websites when I move I setup a reverse proxy on the old machine and configure it to proxy to the new machine. How can I allow exim to relay mail for a domain but not deliver it locally?

I see
Code:
domainlist local_domains = lsearch;/etc/localdomains

domainlist relay_domains = lsearch;/etc/localdomains : \
    lsearch;/etc/secondarymx
in /etc/exim.conf
Should I just comment the domain out of /etc/localdomains and add it to /etc/secondarymx?

I know if I just disable mail for the domain it will eventually arrive but customers should not have to wait days for a response if it can be avoided.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-05-2008, 04:35 AM
Registered User
 
Join Date: Jan 2005
Location: /dev/null
Posts: 769
nickp666 is on a distinguished road
You could for ease just forward all designated mail to the other server, a router for exim would suffice here (although it may cause some backscatter)

Code:
send_to_gateway:
     driver = manualroute
     transport = remote_smtp
     route_list = * your.newserver.com
Or as a second option without the backscatter, you could set up a static route driver and run verifies to check the end recipients exist on the new machine (more manual config needed in this case though)

Last edited by nickp666; 11-05-2008 at 04:37 AM. Reason: added another option
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
exim , migration , relay

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:16 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc