Courier-imap & squirrelmail: Maildir structure problem.
Hello,
I've got a webmail server based upon a courier-imap (& courier-imap-ssl) server and an apache2 that redirects on the Squirrelmail
php pages. Everything is OK except i cannot get the Maildir structure i want (By tuning parameters in the different configuration
files, i have many structures except the one i wish) as described following:
<mail_user_root>/<domains_folder>
<account_folder>
Maildir/
inbox/
cur/
new/
tmp/
sent-mail/
cur/
new/
tmp/
trash/
cur/
new/
tmp/
drafts/
cur/
new/
tmp/
So, this is the structure i want to use for my virtual accounts. My system accounts are already organized according to a such
structure.
My question: how should i configure imap and squirrelmail to obtain this?
My configuration files are:
+ /etc/courier-imap & /etc/courier-imap-ssl:
# INBOX.Outbox
#
# OUTBOX=.Outbox
MAILDIRPATH=Maildir
Note: I don't know the meaning of the two commented parameters. Concerning the third one, i cannot get its behavior too.
+ /etc/userdb/<domains_file>
account pop3pw=cryptpass|imappw=cryptpass|uid=mail_user_uid|mail=<mail_user_root>/<domains_folder>/<account_folder>/Maildir/|home=<mail_user_home>|gid=65534
+ /etc/squirrelmail/config.php
$domain = trim(implode('', file('/etc/'.(file_exists('/etc/mailname')?'mail':'host').'name')));
$imapServerAddress = 'localhost';
$imapPort = 143;
$useSendmail = false;
$smtpServerAddress = 'localhost';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$pop_before_smtp = false;
$imap_server_type = 'courier';
$invert_time = false;
$optional_delimiter = '.';
$default_folder_prefix = 'INBOX.';
$trash_folder = 'trash';
$sent_folder = 'sent-mail';
$draft_folder = 'drafts';
$default_move_to_trash = true;
$default_move_to_sent = true;
$default_save_as_draft = true;
$show_prefix_option = false;
$list_special_folders_first = true;
$use_special_folder_color = true;
$auto_expunge = true;
$default_sub_of_inbox = false;
$show_contain_subfolders_option = false;
$default_unseen_notify = 2;
$default_unseen_type = 1;
+ /etc/squirrelmail/config_default.php
$trash_folder = 'INBOX.Trash';
$sent_folder = 'INBOX.Sent';
$draft_folder = 'INBOX.Drafts';
$auto_expunge = true;
$delete_folder = false;
Note: it's the installation default configuration file. Until now i don't dare to change it and i would do if necessary only.
I would like the one who answer tries to do this didactly because there's no many infos about this topic on google.
Thanks a lot,
Stevan Kanban
Reply to: