Re: where are stored attachments
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@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@s1.poliman.net mailto:postmaster@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 = mailto:postmaster@s1.poliman.net } protocol lmtp { mail_plugins = quota sieve postmaster_address = postmaster@s1.poliman.net mailto:postmaster@s1.poliman.net }
2018-08-29 7:37 GMT+02:00 Aki Tuomi
mailto:aki.tuomi@dovecot.fi>: Can you provide output of doveconf -n? --- Aki Tuomi Dovecot oy -------- Original message -------- From: Poliman - Serwis <serwis@poliman.pl <mailto:serwis@poliman.pl>> Date: 29/08/2018 08:20 (GMT+02:00) To: Aki Tuomi <aki.tuomi@dovecot.fi <mailto:aki.tuomi@dovecot.fi>> Cc: dovecot <dovecot@dovecot.org <mailto:dovecot@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@dovecot.fi <mailto:aki.tuomi@dovecot.fi>>: Check your configuration --- Aki Tuomi Dovecot oy -------- Original message -------- From: Poliman - Serwis <serwis@poliman.pl <mailto:serwis@poliman.pl>> Date: 28/08/2018 16:40 (GMT+02:00) To: dovecot <dovecot@dovecot.org <mailto:dovecot@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/
Sure, I can provide. What is SIS? How did you determine I don't use it (I still learn)? :) These links: https://www.dovecot.org/tools/maildir-obfuscate.pl https://www.dovecot.org/tools/dbox-anonymize.pl gives 403.
How to run mbox-anonymize.pl? I suppose I should download it to mailserver.
2018-08-29 7:45 GMT+02:00 Aki Tuomi aki.tuomi@dovecot.fi:
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@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@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 =
2018-08-29 7:37 GMT+02:00 Aki Tuomi aki.tuomi@dovecot.fi:
Can you provide output of doveconf -n?
Aki Tuomi Dovecot oy
-------- Original message -------- From: Poliman - Serwis serwis@poliman.pl Date: 29/08/2018 08:20 (GMT+02:00) To: Aki Tuomi aki.tuomi@dovecot.fi Cc: dovecot dovecot@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@dovecot.fi:
Check your configuration
Aki Tuomi Dovecot oy
-------- Original message -------- From: Poliman - Serwis serwis@poliman.pl Date: 28/08/2018 16:40 (GMT+02:00) To: dovecot dovecot@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 ? 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*
--
*Pozdrawiam / Best Regards* *Piotr Bracha*
Should work now.
Aki
On 29.08.2018 08:50, Poliman - Serwis wrote:
Sure, I can provide. What is SIS? How did you determine I don't use it (I still learn)? :) These links: https://www.dovecot.org/tools/maildir-obfuscate.pl https://www.dovecot.org/tools/dbox-anonymize.pl gives 403.
How to run mbox-anonymize.pl http://mbox-anonymize.pl? I suppose I should download it to mailserver.
2018-08-29 7:45 GMT+02:00 Aki Tuomi
mailto:aki.tuomi@dovecot.fi>: 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/dbox-anonymize.pl> https://www.dovecot.org/tools/maildir-obfuscate.pl <https://www.dovecot.org/tools/maildir-obfuscate.pl> https://www.dovecot.org/tools/mbox-anonymize.pl <https://www.dovecot.org/tools/mbox-anonymize.pl> https://www.dovecot.org/tools/mdbox-obfuscate.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@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@s1.poliman.net <mailto:postmaster@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@s1.poliman.net <mailto:postmaster@s1.poliman.net> } protocol lmtp { mail_plugins = quota sieve postmaster_address = postmaster@s1.poliman.net <mailto:postmaster@s1.poliman.net> } 2018-08-29 7:37 GMT+02:00 Aki Tuomi <aki.tuomi@dovecot.fi <mailto:aki.tuomi@dovecot.fi>>: Can you provide output of doveconf -n? --- Aki Tuomi Dovecot oy -------- Original message -------- From: Poliman - Serwis <serwis@poliman.pl <mailto:serwis@poliman.pl>> Date: 29/08/2018 08:20 (GMT+02:00) To: Aki Tuomi <aki.tuomi@dovecot.fi <mailto:aki.tuomi@dovecot.fi>> Cc: dovecot <dovecot@dovecot.org <mailto:dovecot@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.co <http://10-mail.co>nf (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@dovecot.fi <mailto:aki.tuomi@dovecot.fi>>: Check your configuration --- Aki Tuomi Dovecot oy -------- Original message -------- From: Poliman - Serwis <serwis@poliman.pl <mailto:serwis@poliman.pl>> Date: 28/08/2018 16:40 (GMT+02:00) To: dovecot <dovecot@dovecot.org <mailto:dovecot@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/
-- /Pozdrawiam / Best Regards / /Piotr Bracha/
participants (2)
-
Aki Tuomi
-
Poliman - Serwis