[Dovecot] Maildir Skeleton

Udo Rader udo.rader at bestsolution.at
Tue Aug 7 20:40:31 EEST 2007


On Tue, 2007-08-07 at 19:22 +0200, Sebastian Ganschow wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Charles Marcus schrieb:
> > 
> > Why not just do this with a post-logon script?
> > 
> > http://wiki.dovecot.org/PostLoginScripting
> 
> This would only work, if the user logs in before he gets the first mail.

Hmm, dovecot is all about retrieving received mail. If you need things
to be done before a user retrieves mail initially, you _need_ to do it
either via postfixadmin (don't know that piece) or using the LDA you are
using to route the mail to the fitting (virtual) user.

procmail for example could make you happy here (man procmailex).

major drawback however for all those operations is that things are
checked over and over again for each mail received.

another (more sane) option would be to write the list of newly created
users into a file/database/... and have a cronjob loop over this list,
create the skeleton things you need and finally remove the user if the
creation was successfull. Yet keep in mind that cron jobs are executed
once a minute at most, so the time between creating the user and the
cronjob running might cause some mails getting in before your user has
been correctly "initialized".

-- 
Udo Rader

bestsolution.at EDV Systemhaus GmbH
http://www.bestsolution.at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070807/f77dbe91/attachment.bin 


More information about the dovecot mailing list