[Dovecot] Questions about single intance storage

Timo Sirainen tss at iki.fi
Wed Dec 7 16:15:35 EET 2011


On 7.12.2011, at 12.25, Yann Dupont wrote:

> Other problem I'm thinking of, because I'd like to use SIS on our production servers ; but right now I think I can't .
> 
> We have lots of users (+5000 teachers/engineers) on our first setup, +70000 students on our 2nd setup.
> 
> The user base is on LDAP, and move on a daily basis. When a user leave the university, he has right to use mailbox for a certain time and then we close the account.
> 
> Right now, we archive and then delete the mailbox directories (we don't use special dovecot mecanism : we migrated from another system not long time ago and we had special scripts for that).
> 
> If we use SIS, what happen to the attachements ? The usage count will never go to 0, and the attachements will stay there forever.
> 
> In that situation, I think we have no means to correct the attachement usage count ?

You'll need to change the deletion script then. Run:

doveadm expunge -u user mailbox '*' all

before doing rm -rf for the user's mails. And in the archiving step you should do it with dsync with mail_attachment_dir disabled in the destination storage, so the the attachments get written to the archive directly instead of only referencing SIS.




More information about the dovecot mailing list