[Dovecot] Maildir Skeleton

Charles Marcus CMarcus at Media-Brokers.com
Tue Aug 7 19:45:59 EEST 2007


>> That's no problem either. The question is: Are you looking for an automated
>> process or does "cp -a template_maildir/ /srv/mail/newuser/" the job?

> It should be automated.
> 
> A possible solution would be a cronjob, which checks every few minutes if
> there is a new user without a maildir. But this requires that the user
> hasn't logged on before the cronjob is executed.
> 
> Another approach is to check every maildir for an existing .Spam folder and
> a .dovecot.sieve file and create both if they don't exist.
> 
> If dovecot couldn't do this by itself, I'm going to realize it with a cronjob.

Why not just do this with a post-logon script?

http://wiki.dovecot.org/PostLoginScripting

-- 

Best regards,

Charles


More information about the dovecot mailing list