#1  
Old 10th May 2013, 09:55
Hans-Linux Hans-Linux is offline
Junior Member
 
Join Date: Apr 2013
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default Default Maildir structure

OS: Debian 6
ISPConfig version: 3.0.5.2
Mail: Dovecot

New Installation.

I need to change the default IMAP Maildir layout generated for new mail accounts and subdirectories to:

Maildir-|
______|./INBOX.Draft
______|./INBOX.Junk
______|./INBOX.Sent
______|./INBOX.Trash
______|/cur
______|/new
______|/tmp


How can I do this?

Thanks in advance

Hans
Reply With Quote
Sponsored Links
  #2  
Old 11th May 2013, 08:54
tahunasky tahunasky is offline
Member
 
Join Date: Jul 2012
Location: Buenos Aires
Posts: 84
Thanks: 1
Thanked 8 Times in 8 Posts
Default

Hi,

You can specify and INBOX path in dovecots.conf file:

mail_location = maildir:~/Maildir:INBOX=~/Maildir/.INBOX

Then you set the rest of the folders up in the email client as dovecot only cares about INBOX, cur, new, tmp.

For example, in windows live mail, you say where to store the emails that are sent, deleted, drafts and junk. So the client actually sends the email to the imap SENT folder when you send and email, or by default in windows live mail SENT ITEMS. Same with TRASH, or default DELETED ITEMS.

You also do this with the webmail clients. In squirrelmail you can change the locations in the config file /config/config.php. eg:
$default_folder_prefix = '';
$trash_folder = 'Trash';
$sent_folder = 'Sent';
$draft_folder = 'Drafts';

or in your case:
$default_folder_prefix = '';
$trash_folder = 'INBOX.Trash';
$sent_folder = 'INBOX.Sent';
$draft_folder = 'INBOX.Drafts';

Last edited by tahunasky; 11th May 2013 at 08:58.
Reply With Quote
  #3  
Old 13th May 2013, 07:20
Hans-Linux Hans-Linux is offline
Junior Member
 
Join Date: Apr 2013
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks for the information.

We have to about 2,000 IMAP accounts to create and then transfer stored mails from an external hosting provider to these new IMAP accounts. The users use Evolution and Thunderbird on very low end diskless Gentoo systems. The sub accounts below /maildir/ should be automatically created when the user connect the first time with his Evolution or Thunderbird mail client and create the aforesaid directory structure, including /.INBOX.Junk.
It can be easily be done with IRedMail, but requires a dedicated mail server, hardware and administration.
Reply With Quote
  #4  
Old 13th May 2013, 09:20
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,573
Thanks: 792
Thanked 4,980 Times in 3,901 Posts
Default

ISPConfig uses Maildirs without prefixes. I recommend thyt you convert the maildir structure during migration to the one that ispconfig uses. This should be possible as batch job with a script.

A prefix "INBOX" is typical for courier imap systems, on dovecot systems you dont have a prefix.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 14th May 2013, 00:13
tahunasky tahunasky is offline
Member
 
Join Date: Jul 2012
Location: Buenos Aires
Posts: 84
Thanks: 1
Thanked 8 Times in 8 Posts
Default

I would also just stick with the default maildir structure. If you intend sticking with ispconfig, do the conversion now and then you dont have to worry about it again if upgrading or transferring to a new server.
It will also look better in Thunderbird/evolution, as the sent/junk/trash folder will all be top level and not hidden under INBOX.

Last edited by tahunasky; 14th May 2013 at 00:18.
Reply With Quote
  #6  
Old 23rd May 2013, 16:18
Hans-Linux Hans-Linux is offline
Junior Member
 
Join Date: Apr 2013
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
ISPConfig uses Maildirs without prefixes. I recommend thyt you convert the maildir structure during migration to the one that ispconfig uses. This should be possible as batch job with a script.

A prefix "INBOX" is typical for courier imap systems, on dovecot systems you dont have a prefix.
Converting the Maildir structure is easy. The problem is to convert nearly 2000 Evolution clients.

Will have to dig around and try to modify the configuration scripts.
Reply With Quote
  #7  
Old 5th June 2013, 06:34
Hans-Linux Hans-Linux is offline
Junior Member
 
Join Date: Apr 2013
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default [SOLVED] Default Maildir structure

Modified mail_plugin.inc.php:
line 132 to: if(!is_dir($data['new']['maildir'].'/.INBOX.Sent')) {
line 135 to: $app->system->maildirmake($maildomain_path,$mail_config['mailuser_name'],'INBOX.Sent');

line 137 to: if(!is_dir($data['new']['maildir'].'/.INBOX.Drafts')) {
line 140 to: $app->system->maildirmake($maildomain_path,$mail_config['mailuser_name'],'INBOX.Drafts');

line 142 to: if(!is_dir($data['new']['maildir'].'/.INBOX.Trash')) {
line 145 to: $app->system->maildirmake($maildomain_path,$mail_config['mailuser_name'],'INBOX.Trash');

line 147 to: if(!is_dir($data['new']['maildir'].'/.INBOX.Junk')) {
line 150 to: $app->system->maildirmake($maildomain_path,$mail_config['mailuser_name'],'INBOX.Junk');
Reply With Quote
Reply

Bookmarks

Tags
default, imap, layout, maildir

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
Intel 82815 Video Card & Ubuntu 8.10 harvey527 Kernel Questions 8 5th November 2010 14:51
Vhosts...conf not synced to changes crypted General 50 24th April 2010 00:54
amavis: (!!)WARN: all primary virus scanners failed, considering ba jariasca Installation/Configuration 13 20th April 2010 17:34
Admin Program for Virtual Users and Domains Postfix courier etc...(Ubuntu 8.04)? the1rob HOWTO-Related Questions 11 4th August 2009 04:54
Exim MTA dazblade Server Operation 4 16th July 2007 18:42


All times are GMT +2. The time now is 03:59.


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