Hi Chandran,

Here's what I do:

1) Install Qmail according to link update from testing & development as you see fit (https://www.qmailtoaster.org)

2) Dump mysql database on old machine and copy to new machine
mysql_file=/home/vpopmail/etc/vpopmail.mysql
if [ -f $mysql_file ]; then
  mysql_host=`cut -d\| -f1 < $mysql_file`
  mysql_port=`cut -d\| -f2 < $mysql_file`
  mysql_user=`cut -d\| -f3 < $mysql_file`
  mysql_password=`cut -d\| -f4 < $mysql_file`
  mysql_database=`cut -d\| -f5 < $mysql_file`
fi
mysqldump -u $mysql_user -p$mysql_password -h $mysql_host $mysql_portparm $mysql_database > ./vpopmail.sql

3) rsync the following directories old server to new server...squirrelmail, spamassassin, tcprules.d if you need them.
/home/vpopmail/domains
/var/lib/squirrelmail
/usr/share/squirrelmail
/etc/spamassassin/*.cf
/etc/spamassassin/.spamassassin
/etc/tcprules.d
/var/qmail/users

4) Import mysql database in new machine
mysql -uroot -p vpopmail < ./vpopmail.sql

5) Copy any file in /var/qmail/control/ that you want. (usually not necessary)

6) Copy any run setting that you want. (usually not necessary)

7) Make sure if you use testing and development repos (DomainKeys dropped in development) to check run authentication run settings (export SMTPAUTH="!+cram")

8) stop and start qmail

On 1/28/2019 9:24 PM, Chandran Manikandan wrote:
Hi Biju,

Thanks for your help and steps.

Can i use the qt-backup script to take all the backup in old server?
Then move this compress file into new server to qt-restore command.

Anyone have any idea about this?

And one more doubt.

Can i use the same procedure for Hard disk upgrade from old hard disk to new hard disk in the same machine or any other simple step there?

Thanks in advance.


On Fri, Jan 25, 2019 at 6:18 PM Biju Jose <b...@whitesindia.com <mailto:b...@whitesindia.com>> wrote:

    1. Setup new server

    2. Create a new domain ( vadddomain) and import the MySQL table of
    that domain from the old server.

    3. RSync the mail folder from the old to the new

    rsync -arvz -e 'ssh -p 8022' –progress
    r...@oldserver.com:/home/vpopmail/domains/domain1.com/
    <http://domain1.com/> /home/vpopmail/domains/domain1com

    4. Change the DNS for domain1 to point to the new server.

    5. Repeat for the other domains.

    Best Regards

    Biju

    *From:*Chandran Manikandan [mailto:tech2m...@gmail.com
    <mailto:tech2m...@gmail.com>]
    *Sent:* 25 January 2019 15:32
    *To:* qmailtoaster-list@qmailtoaster.com
    <mailto:qmailtoaster-list@qmailtoaster.com>;
    qmailtoaster-list-h...@qmailtoaster.com
    <mailto:qmailtoaster-list-h...@qmailtoaster.com>
    *Subject:* [qmailtoaster] Re: Email server migration

    Hi Friends,

    Could anyone help me the server migration.

    On Thu, Jan 17, 2019 at 11:27 AM Chandran Manikandan
    <tech2m...@gmail.com <mailto:tech2m...@gmail.com>> wrote:


        Hi Folks,

        I am planning to migrate email and web server from one machine
        to another machine.

        I have installed qmailtoaster and  web server  on COS6.6 64
        bit server machine.

        And configure 4 domains email accounts, alias and 4 domain web
        server with virtual host.

        I have installed letsencrypt self-signed certificate for email
        and web server on COS 6.6.4 machine.

        I am planning to migrate the email and web server with https
        on COS 7 64 bit server latest version.

        Could any one help me the steps for the new machine.

        1. COS 7 latest version installation steps

        2. Qmailtoaster installation steps

        3. web server installation steps with virtual host

        4. multiple domain, email accounts,alias migrate to new
        server(Backup and restore)

        5. multiple domain websites migrate to new server

        Appreciate any one help me.

        Thanks in advance

--
        *Thanks,*

        *Manikandan.C*

        *System Administrator*


--
    *Thanks,*

    *Manikandan.C*

    *System Administrator*



--
*Thanks,*
*Manikandan.C*
*System Administrator*

--
Eric Broch
White Horse Technical Consulting (WHTC)

Reply via email to