PDA

View Full Version : qmail to postfix is there a way to convert


grandpagenocide
4th October 2007, 18:59
Ok I have an email server that is on its last legs and to make it worse its running qmail. What I would like to do is change it over to postfix (so its compatible with ISPConfig). Is there a way to import clients current email over to postfix?

mlz
4th October 2007, 19:07
Is qmail setup for Maildir? If so, create user under postfix and copy the contents of the maildir to the users maildir folder... There might be a script out there that does it, but it's pretty straightforward.

catdude
4th October 2007, 19:08
Ok I have an email server that is on its last legs and to make it worse its running qmail. What I would like to do is change it over to postfix (so its compatible with ISPConfig). Is there a way to import clients current email over to postfix?

If the clients are already defined on the ISPConfig machine, you could always put together a simple script that uses scp or rsync to copy Maildir contents from the qmail machine to the postfix machine. Just be sure to set appropriate ownership of the files in the Maildirs on the postfix machine after doing the copying.

grandpagenocide
5th October 2007, 07:34
thanks guys ill start looking at it tommorow, not sure if its set up for maildir, but for a moment i was thinking this was going to be alot more difficult :D just as a duh question, its in /var/mail right? And I am assuming I have to rename each file to "web1_admin" for example?

falko
5th October 2007, 14:22
/var/mail would be mbox, not Maildir. If it's Maildir, there's a Maildir in each user's homedir.

grandpagenocide
7th October 2007, 18:45
thanks falko, so i now know they dont use maildir. can the files in var/mail be transfered the same way as the ones in mail dir?

falko
8th October 2007, 18:26
The difference is this: with mbox, all emails of a user are stoered in a single file. With Maildir, each mail is stored in a separate file. The formats are not compatible.

To convert Maildir to mbox, take a look here: http://www.hawkwings.net/2006/01/05/maildir-to-mbox-conversion/