moving servers

Discussion in 'Installation/Configuration' started by illuder, Jun 28, 2021.

  1. illuder

    illuder Member HowtoForge Supporter

    i use ispconfig for only 3 main websites.
    i recently upgraded from a VM to a dedicated server.
    I reinstalled ispconfig in the new server, backed up the websites, scp to new server, and restored the backup of the website (all wordpress) and DBs. The websites work well.

    I have copied the vmail directory over to the new server, but i cannot find the email boxes in the new server panel.
    I could backup the emails in the old sever , move it to the new server and restore, i think.
    is there an easier way? the files are already in the new server.
    ===
    There is no manual backup button in the email backups, only daily/weekly/monthly. I selected all to daily. How do I force the cron to start backing up the email?
    ===
    PS. I am certain the migration tool would have done all of this, but I did not see the value in spending EUR59 for merely moving 3 sites.

    Tx
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Have you created in ISPConfig panel on the new server the mailbox accounts?
    Why post ISPConfig question on Linux forum?
    For migrating e-mails there is imapsync by Giles Lamiral, https://imapsync.lamiral.info/
    Also old howto: https://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapcopy
    True, but migration tool would have migrated also the e-mail accounts and e-mail contents.
     
    ahrasis likes this.
  3. illuder

    illuder Member HowtoForge Supporter

    Apologies, i didnt realise it was on the linux forum :(...i normally scour the ispconfig forums religiously, and thought I was still on that thread when posting..

    Thank you for the imapsync link.. i did look at it, but through there was an easier method as per an ISP Config vmail move post i came across dated 2013.

    >>yes I have created the domains and only one email account to test, albeit with new password..so I was hoping to 'copy and paste' the mail accounts, passwords, and contents via a script or backup/restore. Is this a pre-requisite? Do i need to create all email addresses? then what to do?

    How do i force the backup of the mailboxes in the old server so perhaps i could move the backup files to the new server and restore, as I did with the web?

    Are you saying that there is no way to save the email contents, even with imapsync?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You can just copy over /var/vmail with scp or rsync. But you'll have to ensure that both servers use the same IMAP daemon as the maildir structure differs Courier vs. Dovecot. And of course, the ispconfig database must be the same, as all mailboxes exist in the ispconfig database and the smtp, pop3 and imap daemons read the data from this database.
     
  5. illuder

    illuder Member HowtoForge Supporter

    how do i get the ispconfig db from the old server?
    which db is it?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The database name is dbispconfig. But if I understand you correctly, you moved already websites to the new server, which probably means that you already used the ISPConfig UI on the new system. Then you can't copy the ISPConfig database anymore as the new db is not empty and copying would destroy the current config on the new system.
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You can create the mailboxes on the new server, tnen copy the /var/vmail/<directory> from old to tthe new, the old e-mails should be there after this.
    No. Where was there any text that could be interpreted to mean that?
     
  8. illuder

    illuder Member HowtoForge Supporter

    Well noted.
    Yes, I have the websites up and running properly inthe new server. Everything is working perfect, except that the mailboxes are not there.

    >>noted, will try and provide feedback..
    sorry, could have misread and misinterpreted earlier.
     
  9. illuder

    illuder Member HowtoForge Supporter

    good day
    just an update that I have successfully moved the website, the email servers and it's working beautifully.

    i'm currently getting the sub-domains up and running.
    I'm struggling a little.
    the subdomain was created and DNS added (without redirect)
    https://bolotalk.com/demo works
    but
    https://demo.bolotalk.com redirects to https://bolotalk.com
     
  10. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Are bolotalk.com and demo.bolotalk.com two separate websites?
     
  11. illuder

    illuder Member HowtoForge Supporter

    no, i setup a subdomain... it shows the
    demo.bolotalk.com
    in Dependent sub- / aliasdomains

    PS. I just added an R=310,L redirect in the subdomain of /demo/

    the demo directory is unver /web/demo/
     
  12. illuder

    illuder Member HowtoForge Supporter

  13. illuder

    illuder Member HowtoForge Supporter

  14. illuder

    illuder Member HowtoForge Supporter

Share This Page