I want the imap folders created with the email account.


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Email » Dovecot

I want the imap folders created with the email account.Last Modified: Nov 18, 2008, 5:51 pm
By default DA just creates account and lets the email client (like squirrelmail) create any imap folders.

If you want the folders to be created before any client is used, create:

/usr/local/directadmin/scripts/custom/email_create_post.sh

with some example code similar to:

#!/bin/sh
DIR=/home/$username/imap/$domain/$user/Maildir
mkdir -p $DIR/.INBOX.Drafts
mkdir -p $DIR/.INBOX.Sent
mkdir -p $DIR/.INBOX.Trash
echo "INBOX.Drafts" >> $DIR/subscriptions
echo "INBOX.Sent" >> $DIR/subscriptions
echo "INBOX.Trash" >> $DIR/subscriptions
chown -R $username:mail $DIR
exit 0;



then chmod to 755.
You can add/change any other folders you'd like.

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST