Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th May 2013, 15:20
Odendaal1 Odendaal1 is offline
Junior Member
 
Join Date: May 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question Importing existing mail into ISPConfig 3

Good day,

Is there perhaps a way to import existing mail messages into a new ISPConfig installation?

I have an Ubuntu web server with mail setup on the server. There is no control panel installed and everything gets done through the terminal. The email is located in some kind of flat file configuration in each users folder on the server.

I inherited this server with the configuration and would like to move to ISPConfig but I cannot lose the existing emails on the server. Can someone please give me some advice on how I can get this setup into the 21st century where it is manageable?
Reply With Quote
Sponsored Links
  #2  
Old 8th May 2013, 15:30
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,420
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

Do you know if your old server uses Maildir or mbox format as storage? If you are not sure, please post a "ls" from the directory were the mails are stored.

1) If its maildir format, then you can copy the maildir right into the maildir folder of the ispconfig email account.
2) If its mbox, then there are scripts in the internet to convert to maildir, e.g. the script mb2md
3) If your old server provides imap, then you can use the application imapsync to copy the emails. This is indepandant of the local mail storage format and should work with any imap capable server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following 2 Users Say Thank You to till For This Useful Post:
commentator (10th May 2013), Turbanator (10th May 2013)
  #3  
Old 8th May 2013, 15:39
Odendaal1 Odendaal1 is offline
Junior Member
 
Join Date: May 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I assume that it is Maildir as that is the name of the folder located in the user folder. I also know that the server is setup for imap so it should provide me with that option as well.

So, if I backup the mail (user folders), reinstall the server and install ISPConfig I can simply restore the backups to the newly created maildir folders of ISPConfig?

Now that sounds like a solution I can live with. Thanks for your quick reply.
Reply With Quote
  #4  
Old 8th May 2013, 16:10
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,420
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

Quote:
So, if I backup the mail (user folders), reinstall the server and install ISPConfig I can simply restore the backups to the newly created maildir folders of ISPConfig?
Yes. After you copied the folders, change the user and group of all files and folders to "vmail".
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 27th May 2013, 21:28
herbie herbie is offline
Member
 
Join Date: Sep 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

I may need to do the same thing as I'm thinking of replacing my older 'perfect mailserver' setup with a new ispconfig box. There's about 100 users.

copy recursive old /home/vmail/domain to new /var/vmail/domain

Should I set the mail domain in ISPconfig beforehand?
What about the users & passwords? How could I import those into the ISPconfig setup? Or must I enter those one by one afterwards?
Reply With Quote
Reply

Bookmarks

Tags
email

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
installing squirrelmail on Debian with ispconfig3 saco721 Installation/Configuration 18 1st April 2011 17:57
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 02:59
Hosting multiple websites and webmail dmwcool Installation/Configuration 8 30th March 2010 03:15
procmail can't write Hellbound General 27 8th June 2009 21:51
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 08:27


All times are GMT +2. The time now is 22:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.