Hi, i've been looking for some scripts to backup my DA exim user and forwards accounts into a NON DA qmail server, but i cannot seem to find anything like that. So i've started to write one myself and I am in need of some help since i am not exactly familiar with EXIM.
Server 1( Directadmin with EXIM)
Server 2( NON DA Qmail)
Server 3( NON DA QMAIL BACKUP EMAIL SERVER)
My plan is to write a script that will extract all users and forwards in server 1 and server 2, transfer over to server 3 to be added as backup automatically. Currently, i've already written something for Qmail -> Qmail back, and i am in the process of writting one for EXIM to QMAIL. What this script does is that at every 24 hours interval, server 1 and server 2 will execute a script that will extract the details of the email user accounts and forwards and store them into a file in a directory. After that, Server 3 will FTP into directory to retrieve these files. Server 3 will then update the retrieved information so as to act as backup. Thus, if any of server 1 or server 2 goes down, email will be routed to MX2 which will be sent to server 3. Users will then be able to log in to server 3 to check they emails as per normal.
From what i have found out, every detail of exim's users and email forwards can be found in /etc/virtual (correct me if i am wrong). The problem with it is that the passwords for the pop3/imap accounts are encrypted and there is no way i'll be able to add it into my qmail server via the ~vpopmail/bin/vadduser command.
Does anybody knows of a way i can extract the password or at least use the encrypted password to be converted to something that qmail can recognize?
Server 1( Directadmin with EXIM)
Server 2( NON DA Qmail)
Server 3( NON DA QMAIL BACKUP EMAIL SERVER)
My plan is to write a script that will extract all users and forwards in server 1 and server 2, transfer over to server 3 to be added as backup automatically. Currently, i've already written something for Qmail -> Qmail back, and i am in the process of writting one for EXIM to QMAIL. What this script does is that at every 24 hours interval, server 1 and server 2 will execute a script that will extract the details of the email user accounts and forwards and store them into a file in a directory. After that, Server 3 will FTP into directory to retrieve these files. Server 3 will then update the retrieved information so as to act as backup. Thus, if any of server 1 or server 2 goes down, email will be routed to MX2 which will be sent to server 3. Users will then be able to log in to server 3 to check they emails as per normal.
From what i have found out, every detail of exim's users and email forwards can be found in /etc/virtual (correct me if i am wrong). The problem with it is that the passwords for the pop3/imap accounts are encrypted and there is no way i'll be able to add it into my qmail server via the ~vpopmail/bin/vadduser command.
Does anybody knows of a way i can extract the password or at least use the encrypted password to be converted to something that qmail can recognize?