[Dovecot] Attachments not removed from single store

Karsten Becker karsten.becker at ecologic.eu
Wed Aug 24 13:32:41 EEST 2011


Hi.

Well, I've the next problem.

I turned on the new attachment de-duplication stuff in the
configuration. If I send an attchment between two accounts on my test
system, the attment gets saved ion the configured mail_attachment_dir.

But... if I delete it from the senders Send folder and the receivers
Inbox (and of course empty Trash afterwards in both cases), the hashes
and the attachment are not deleted in mail_attachment_dir (as I would
expect).

Is this a bug, or have I misunderstood the concept of storing attachments?

Regards
Karsten

------------------------------------------------

> # 2.0.13: /usr/local/dovecot-2.0.13/etc/dovecot/dovecot.conf
> # OS: Linux 2.6.32-33-server x86_64 Ubuntu 10.04.3 LTS ext4
> doveconf: Warning: Dovecot was last started using /etc/dovecot/dovecot.conf, but this config is /usr/local/dovecot-2.0.13/etc/dovecot/dovecot.conf
> auth_cache_negative_ttl = 0
> auth_cache_size = 10 M
> auth_mechanisms = plain login
> base_dir = /usr/local/dovecot/var/run/dovecot
> dict {
>   acl = mysql:/etc/dovecot/dovecot-dict-shared-mailboxes-mysql.conf
>   expire = mysql:/etc/dovecot/dovecot-dict-expire-mysql.conf
>   quota = mysql:/etc/dovecot/dovecot-dict-quota-mysql.conf
> }
> log_timestamp = "%Y-%m-%d %H:%M:%S "
> login_greeting = Company Institute
> mail_attachment_dir = /srv/vmail/attachments
> mail_attachment_hash = %{sha256}
> mail_cache_min_mail_count = 2
> mail_debug = yes
> mail_location = mdbox:/srv/vmail/user-mailboxes/%d/%n
> mail_plugins = acl expire quota
> mailbox_idle_check_interval = 1 mins
> namespace {
>   inbox = yes
>   location = 
>   prefix = 
>   separator = /
>   subscriptions = yes
>   type = private
> }
> namespace {
>   list = children
>   location = mdbox:/srv/vmail/user-mailboxes/%%d/%%n
>   prefix = Users/%%d/%%n/
>   separator = /
>   subscriptions = no
>   type = shared
> }
> namespace {
>   list = children
>   location = maildir:/srv/vmail/public_folders:INDEX=/srv/vmail/user-mailboxes/%d/%n/public_folders-seen:LAYOUT=fs
>   prefix = Folders/
>   separator = /
>   subscriptions = no
>   type = public
> }
> passdb {
>   args = /etc/dovecot/dovecot-mysql.conf
>   driver = sql
> }
> plugin {
>   acl = vfile:/etc/dovecot/global-acls:cache_secs=300
>   acl_shared_dict = proxy::acl
>   expire = Trash
>   expire2 = Trash/*
>   expire3 = Spam
>   expire4 = Spam/*
>   expire5 = Junk
>   expire6 = Junk/*
>   expire_dict = proxy::expire
>   quota = dict:User quota::proxy::quota
>   quota_rule = *:storage=10485760
>   quota_rule2 = Trash:storage=+1048576
>   quota_warning = storage=95%% quota-warning 95 %u
>   quota_warning2 = storage=80%% quota-warning 80 %u
> }
> postmaster_address = postmaster at company.eu
> protocols = imap pop3
> service auth {
>   unix_listener /var/spool/postfix/private/auth_dovecot {
>     group = postfix
>     mode = 0660
>     user = postfix
>   }
>   unix_listener auth-master {
>     mode = 0600
>     user = vmail
>   }
>   user = root
> }
> service dict {
>   unix_listener dict {
>     mode = 0600
>     user = vmail
>   }
> }
> service imap-login {
>   inet_listener imaps {
>     port = 993
>     ssl = yes
>   }
>   process_min_avail = 2
> }
> service imap {
>   vsz_limit = 512 M
> }
> service pop3-login {
>   inet_listener pop3s {
>     port = 995
>     ssl = yes
>   }
> }
> service quota-warning {
>   executable = script /usr/local/bin/quota-warning.sh
>   user = vmail
> }
> ssl = required
> ssl_cert = </etc/postfix/ssl/mail01.compdmz.local.crt
> ssl_key = </etc/postfix/ssl/mail01.compdmz.local.key
> userdb {
>   args = /etc/dovecot/dovecot-mysql.conf
>   driver = sql
> }
> verbose_proctitle = yes
> protocol lda {
>   auth_socket_path = auth-master
>   postmaster_address = postmaster at company.eu
> }
> protocol imap {
>   imap_client_workarounds = delay-newmail tb-lsub-flags tb-extra-mailbox-sep
>   imap_max_line_length = 128 k
>   mail_plugins = acl expire quota imap_acl imap_quota
> }
> protocol pop3 {
>   pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
> }





More information about the dovecot mailing list