Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th January 2013, 16:22
daseagle daseagle is offline
Junior Member
 
Join Date: Oct 2011
Posts: 19
Thanks: 5
Thanked 0 Times in 0 Posts
Default Relocating mail storage folder in Centos 6.3 with dovecot and ispconfig

Hello!

I have a Centos 6.3 server which is running fine, thanks to the combined efforts of falko and till

Now, I need a bit of info regarding some customisation.

1. My users generate huge amounts of e-mail data, which they all want to keep on the server as well. Now, the main drive is a 75 gb/15krpm scsi, which while fast, is not big enough.

I added two more 2 TB drives, one for storage and another for backup, all formatted and mounted, under /Storage and /Backup.

As far as I can tell, mail is being stored in /var/vmail/domain.tld/user. Is there any way in which I can relocate this to the drive mounted under /Storage?

Also new e-mail domains created via ispconfig will have to store their stuff there automagically.

2. I have a ton of mails saved from the old hosting enviroment. Is there any way in which I can import/copy that data to their user folders and make it to show up in Squirrelmail?

-------------

For the first question, there probably is some setting in a .conf that regulates mail storage - I just need a bit of direction. The second, I have no idea if it would work or not.
Reply With Quote
Sponsored Links
  #2  
Old 18th January 2013, 11:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by daseagle View Post
As far as I can tell, mail is being stored in /var/vmail/domain.tld/user. Is there any way in which I can relocate this to the drive mounted under /Storage?

Also new e-mail domains created via ispconfig will have to store their stuff there automagically.
If you use LVM, you could add the drive to LVM and then extend the volume where your mail folders are located (see http://www.howtoforge.com/linux_lvm ).

Quote:
Originally Posted by daseagle View Post
2. I have a ton of mails saved from the old hosting enviroment. Is there any way in which I can import/copy that data to their user folders and make it to show up in Squirrelmail?
If the old emails are located on an IMAP server, you could use tools such as imapcopy, imapsync, or IMAP TOOLS (you can find tutorials for each here on HowtoForge).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 19th January 2013, 20:30
daseagle daseagle is offline
Junior Member
 
Join Date: Oct 2011
Posts: 19
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Regarding mail storage relocation: Is there any way I can do this without using LVM?

Thanks for the info regarding imap mail import, done it and it works beautifully.
Reply With Quote
  #4  
Old 21st January 2013, 19:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

You could stop your mail services (Postfix, Dovecot), rename /var/vmail to /var/vmail_bak, create an empty /var/vmail directory and mount the drive to /var/vmail. Then copy the content of /var/vmail_bak to /var/vmail and start Postfix and Dovecot again.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

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
Dual server with ISPConfig 3 but with errors alphaman36 Installation/Configuration 8 23rd August 2012 12:59
ISPConfig 3 Single server issues on POP3/IMAP/ MyDNS vk1003 Installation/Configuration 7 17th July 2012 15:25
ISPConfig3 won't start after update Cracklefish Installation/Configuration 15 28th February 2012 14:11
SquirrelMail login not working glenneh Installation/Configuration 13 9th April 2011 20:01
Ispconfig 3 can't send/receive mail ShadoweElf Installation/Configuration 3 21st December 2010 16:33


All times are GMT +2. The time now is 08:36.


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