ISPConfig leaving orphaned attachments w/Dovecot SIS?

Discussion in 'General' started by RealKinetix, Aug 2, 2019.

  1. RealKinetix

    RealKinetix New Member

    Hi all,
    What procedure is ispconfig using to remove IMAP accounts?
    I'm using mdbox storage for users with a mail_attachment_dir for single instance storage. With this type of setup, if users aren't removed in an expunge -> purge -> delete user fashion, their attachments get orphaned in the attachment store forever.
    There's a few references to this issue around, such as https://dovecot.org/list/dovecot/2015-February/099655.html
    Does ISPConfig have any current facility for cleaning up IMAP users properly at removal time? The procedure is apparently supposed to be:
    doveadm expunge -d -u johndoe mailbox '*' all
    doveadm -v purge -u johndoe

    and then remove the user/delete.

    Is this not an issue for others? I think I'm a little surprised I haven't seen this issue show up - perhaps people aren't using SIS or I have some other minor issue preventing attachment cleanup from working properly in my setup?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That's probably the reason why nobody noticed it yet, it's not part of any standard ISPConfig setup. ISPConfig cleans up the maildir but when you store attachments in other locations, then they will not get removed there. Make a bug report at git.ispconfig.org and we have a look into that.
     
  3. RealKinetix

    RealKinetix New Member

    Thanks, Till, I've just done so. Am trying to hack a short-term fix for myself, hopefully will get something working, but I'll update the issue.
     

Share This Page