where are stored attachments

Aki Tuomi aki.tuomi at dovecot.fi
Wed Aug 29 08:45:16 EEST 2018


Based on this you are not using SIS, so I wonder if those are some old
emails when you were using SIS?

Can you provide an example corpus of such mail? You can use e.g.

https://www.dovecot.org/tools/dbox-anonymize.pl
https://www.dovecot.org/tools/maildir-obfuscate.pl
https://www.dovecot.org/tools/mbox-anonymize.pl
https://www.dovecot.org/tools/mdbox-obfuscate.pl

to obfuscate the mail.

Aki

On 29.08.2018 08:39, Poliman - Serwis wrote:
> Sure, here it is:
> root at s1:~# doveconf -n
> # 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf
> # Pigeonhole version 0.4.13 (7b14904)
> # OS: Linux 4.4.0-134-generic x86_64 Ubuntu 16.04.5 LTS
> auth_mechanisms = plain login
> disable_plaintext_auth = no
> listen = *,[::]
> log_timestamp = "%Y-%m-%d %H:%M:%S "
> mail_max_userip_connections = 100
> mail_plugins = " quota"
> mail_privileged_group = vmail
> passdb {
>   args = /etc/dovecot/dovecot-sql.conf
>   driver = sql
> }
> plugin {
>   quota = dict:user::file:/var/vmail/%d/%n/.quotausage
>   sieve = /var/vmail/%d/%n/.sieve
>   sieve_max_redirects = 25
> }
> postmaster_address = postmaster at s1.poliman.net
> <mailto:postmaster at s1.poliman.net>
> protocols = imap pop3
> service auth {
>   unix_listener /var/spool/postfix/private/auth {
>     group = postfix
>     mode = 0660
>     user = postfix
>   }
>   unix_listener auth-userdb {
>     group = vmail
>     mode = 0600
>     user = vmail
>   }
>   user = root
> }
> service imap-login {
>   client_limit = 1000
>   process_limit = 512
> }
> service lmtp {
>   unix_listener /var/spool/postfix/private/dovecot-lmtp {
>     group = postfix
>     mode = 0600
>     user = postfix
>   }
> }
> ssl_cert = </etc/postfix/smtpd.cert
> ssl_key = </etc/postfix/smtpd.key
> ssl_protocols = !SSLv3
> userdb {
>   driver = prefetch
> }
> userdb {
>   args = /etc/dovecot/dovecot-sql.conf
>   driver = sql
> }
> protocol imap {
>   mail_plugins = quota imap_quota
> }
> protocol pop3 {
>   mail_plugins = quota
>   pop3_uidl_format = %08Xu%08Xv
> }
> protocol lda {
>   mail_plugins = sieve quota
>   postmaster_address = postmaster at s1.poliman.net
> <mailto:postmaster at s1.poliman.net>
> }
> protocol lmtp {
>   mail_plugins = quota sieve
>   postmaster_address = postmaster at s1.poliman.net
> <mailto:postmaster at s1.poliman.net>
> }
>
>
> 2018-08-29 7:37 GMT+02:00 Aki Tuomi <aki.tuomi at dovecot.fi
> <mailto:aki.tuomi at dovecot.fi>>:
>
>     Can you provide output of doveconf -n?
>
>
>
>     ---
>     Aki Tuomi
>     Dovecot oy
>
>     -------- Original message --------
>     From: Poliman - Serwis <serwis at poliman.pl <mailto:serwis at poliman.pl>>
>     Date: 29/08/2018 08:20 (GMT+02:00)
>     To: Aki Tuomi <aki.tuomi at dovecot.fi <mailto:aki.tuomi at dovecot.fi>>
>     Cc: dovecot <dovecot at dovecot.org <mailto:dovecot at dovecot.org>>
>     Subject: Re: where are stored attachments
>
>     Sorry, I have checked before I wrote first post. Based on docs -
>     the path should be in /etc/dovecot/dovecot.conf or
>     /etc/dovecot/conf.d/10-mail.conf (I have Ubuntu 16.04 LTS). I have
>     some familiar lines in 10-mail.conf:
>     #mail_attachment_dir =
>     #mail_attachment_min_size = 128k
>     #mail_attachment_fs = sis posix
>     #mail_attachment_hash = %{sha1}
>
>     but all these lines are commented out. So - in theory - dovecot
>     does not store attachments anywhere but when I log into i.e.
>     Roundcube, I have there mails with attachments. In Maildir/cur I
>     see formatted files related with specific emails. These with
>     attachments have specific hash at the bottom of content. As we
>     could suppose they are hashed by sha1. But still no idea where are
>     real files, which I can download after login to mailbox.
>
>
>     2018-08-28 18:38 GMT+02:00 Aki Tuomi <aki.tuomi at dovecot.fi
>     <mailto:aki.tuomi at dovecot.fi>>:
>
>         Check your configuration
>
>
>
>         ---
>         Aki Tuomi
>         Dovecot oy
>
>         -------- Original message --------
>         From: Poliman - Serwis <serwis at poliman.pl
>         <mailto:serwis at poliman.pl>>
>         Date: 28/08/2018 16:40 (GMT+02:00)
>         To: dovecot <dovecot at dovecot.org <mailto:dovecot at dovecot.org>>
>         Subject: where are stored attachments
>
>         Hi! I would like to know where are stored attachments for
>         mails stored in /var/vmail/domain.com/user/Maildir
>         <http://domain.com/user/Maildir> ? Specific email has only
>         hash included at the bottom of message.
>
>         -- 
>         /Pozdrawiam / Best Regards
>         /
>         /Piotr Bracha/
>
>
>
>
>     -- 
>     /Pozdrawiam / Best Regards
>     /
>     /Piotr Bracha/
>
>
>
>
> -- 
> /Pozdrawiam / Best Regards
> /
> /Piotr Bracha/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20180829/fd31f16a/attachment.html>


More information about the dovecot mailing list