Backup from EXIM to QMAIL server

genexis

Verified User
Joined
Mar 25, 2006
Messages
35
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?
 
It's unlikely DA is going to switch to unencrypted passwords. Perhaps you can extract the passwords from the /etc/virtual/example.com/passwd file and put them in the right place in your qmail system. If both servers us the same password encryption method, then that might work.

Otherwise you'd have to (depending on which pop/imap programs you use, figure out how to change them to use different password encoding, and after making the change on the one you decide to change, recode all the passwords; you won't be able to find conversion scripts since the encodes are one-way.
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 main accounts can get email, too, and some users actually use that email. In those cases the information is probably in /etc/passwd and the passwords in /etc/shadow (which is only readable by root).

Jeff
 
Hi, i just found out that my qmail server and exim server uses the same encryption. I guess this solves my problem, just that extra coding will be needed.
 
Back
Top