Skip to main content

Migrating Account - How to Reject email on old server

Comments

8 comments

  • cPanelMichael
    Hello :) The method you used to reject email should be suitable for what you are attempting to accomplish. You could also create an account level filter in cPanel that uses a "Fail with Message" action. This would allow you to bounce the emails with a specific message (e.g. Domain is moving, please resend later). Thank you.
    0
  • southernson
    Thanks for the reply - that could work too!
    0
  • southernson
    I'm just trying to think outside the box. I was wondering if it might be possible to set up the original server as a 'backup' mail server. Would that hold email until the new server was online and functioning correctly and the DNS updates?
    0
  • cPanelMichael
    You may want to consider just leaving the mail server active, and then copying over any emails stored on the source server after propagation occurs. You could use a utility such as IMAPSync: [url=http://linux.die.net/man/1/imapsync]imapsync(1) - Linux man page
    0
  • southernson
    Hi Michael, Thanks for that. Unfortunately I am a WHM customer (I don't have root level access to the server). I was wondering if it's possible to do this another way? ie - could I just do a FTP transfer of all the files in /mail/new directory and dump them on the new server. Would this potentially work? (I realise there's a risk of double-up so users may get 2 copies of the same email, but that wouldn't be too bad really - it's missing emails that I'm more worried about). If this works, I might consider writing some sort of application or script that could do this in bulk for multiple cPanel sites. Thanks & Regards Adam.
    0
  • cPanelMichael
    Yes, that solution should work, however you may need to contact your web hosting provider on the destination server and have them repair the ownership/permissions on the maildir files that you copy via FTP using a command such as: /scripts/mailperm $username
    Thank you.
    0
  • southernson
    Hi Michael, OK - thanks for that. I'll give that a try and see how it works. If you're looking for new ideas to improve cPanel, may I suggest an addin that can 'collect' email from another server automatically with the same email addresses for helping with migration? (Maybe something where you run manually, specify the other server's IP address, username and password). :-) Best Regards Adam
    0
  • cPanelMichael
    [quote="southernson, post: 1641572">If you're looking for new ideas to improve cPanel, may I suggest an addin that can 'collect' email from another server automatically with the same email addresses for helping with migration? (Maybe something where you run manually, specify the other server's IP address, username and password). :-)
    Feel free to open a feature request if you feel that would improve the product: Submit A Feature Request Thank you.
    0

Please sign in to leave a comment.