[Dovecot] Automatic expire on post-login

Antonio Perez-Aranda aperezaranda at yaco.es
Wed Nov 24 12:31:53 EET 2010


I can't use a cronjob because is a customer requeriment and the time
to expunge over 200.000 accounts over nfs can take a log time.

2010/11/24 Robert Schetterer <robert at schetterer.org>:
> Am 24.11.2010 09:57, schrieb Antonio Perez-Aranda:
>> I need to clear two folder from Maildir at login.
>>
>> Exatly, delete all mails older than 30 days on Trash and 1 day on spam folder.
>>
>> I'm using dovecot 2.0 and I think about use a post-login script
>> calling doveadm -u $user expunge but post-login scripts in dovecot 2.0
>> are very complex
>
> i dont think you should do/can it with  post-login script, this would
> produce heavy overload, as you connect much times i.e in an imap seesion
> but i may fail here...
>
>>
>> Is there possible to get the environment vars like on dovecot 1.2 ?
>>
>> I think this action must be done by expire plugin, but it isn't the
>> work method if as I understand after read wiki2.dovecot.org about
>> expire plugin, It run only with a cronjob.
>
> i do it with cron and expire plugin
> --
> Best Regards
>
> MfG Robert Schetterer
>
> Germany/Munich/Bavaria
>


More information about the dovecot mailing list