Dovecot default folder structure
Wouter Hanegraaff
w.hanegraaff at openoffice.nl
Thu Apr 9 07:39:45 UTC 2009
Hi,
Laurent Dinclaux schreef:
> Hello,
>
> is it possible to define a default folder structure with dovecot?
Are you using Maildir? You could use adduser.local to do so, for example:
# Arguments to this script are: username uid gid home-directory
username=$1
uid=$2
gid=$3
maildir=$4/Maildir
maildirmake $maildir
maildirmake -f Sent $maildir
echo 'Sent' >> $maildir/subscriptions
chown -R $username.$gid $maildir
Regards,
Wouter
--
http://www.openoffice.nl Open Office - Linux Office Solutions
Wouter Hanegraaff w.hanegraaff at openoffice.nl +31(0)20 421 4059
jabber/google talk: wouter at openoffice.nl
More information about the ubuntu-server
mailing list