How to force mail to queue at sender? (For Migration)

I am migrating to another server. Since this involves transfering about 10GB of data this could take a while.

I've got everything figured out (eg dns with low ttl's etc) but I can't quite figure out how to handle the email. What i'd like to do is cause all email to queue at the SENDING server (where they get those messages "Email delayed: will try again in 4 hours"). How can I make that happen?

Initial ideas:
1. remove the mx record completely (but that will just make a destination unknown?)

2. change the mx record to point to an address eg 0.0.0.0

3. Somehow configure sendmail on my server to no respond (stop it?)


Or can anyone think of a more elegant approach? I can't direct all email to the new server immediately because when I copy the files across any new mail will be overwritten!

I suppose an alternative is to accept email to my server but NOT to deliver it locally. Just queue it. Thing is once I run a queue runner will the email then get delivered locally or will it THEN look up in the mailertable where to get sent? How do I get sendmail to queue inbound email without delivering it locally?

Anyhelp overcoming this last hurdle would be very very much appreciated!

Thanks,
Daniel

 

 

 

 

Top