How do you do. I have tried to use SiS to deduplicate attachments in mail storage. Unsuccesful. When goes mail with reasonable size, and SiS try to start, I have receive error, when this mail must be delivered for group of receivers (i.e. through aliases). Below is error log, valuable parts of mail addresses masked by X and Y chars Aug 6 16:11:12 mailsrv dovecot: lmtp(xxxxx): AL1SNrkyw1VPBAAABJcpmA: msgid=<2015080614471325760993 at chinacoalchem.com> (from zsy at chinacoalchem.com): saved mail to INBOX This receiver has received mail. But next one does not. And to receive I must restart _sendmail_ (not dovecot!). I must restart sendmail as many times as there were recipients in envelope. Aug 6 16:11:12 mailsrv dovecot: lmtp(yyyy): Error: read(/usr/share/smbusers/xxxxx/mail/attachments /e4/3d/e43db6e8af6fb1df4a08f9c1f3f31e93e61781c4c1d2395e04dd96a583aa-01bd5236b932c3554f04000004972998[base64 :19 b/l]) failed: Stream is smaller than expected (0 < 4080128) Aug 6 16:11:12 mailsrv dovecot: lmtp(yyyy): Error: read(attachments-connector(/usr/share/smbusers/xxxxx/mail/storage/m.35)) failed: read(/usr/share/smbusers/xxxxx/mail/attachments/e4/3d/e43db6e8af6f b1df4a08f9c1f3f31e93e61781c4c1d2395e04dd96a583aa-01bd5236b932c3554f04000004972998[base64:19 b/l]) failed: Stream is smaller than expected (0 < 4080128) Aug 6 16:11:12 mailsrv dovecot: lmtp(yyyy): Error: copy: i_stream_read(attachments-connector(/usr/share/smbusers/xxxxx/mail/storage/m.35)) failed: read(/usr/share/smbusers/xxxxx/mail/attachments/e4/ 3d/e43db6e8af6fb1df4a08f9c1f3f31e93e61781c4c1d2395e04dd96a583aa-01bd5236b932c3554f04000004972998[base64:19 b/l]) failed: Stream is smaller than expected (0 < 4080128) Aug 6 16:11:12 mailsrv dovecot: lmtp(yyyy): Error: read(attachments-connector(/usr/share/smbusers/xxxxx/mail/storage/m.35)) failed: read(/usr/share/smbusers/xxxxx/mail/attachments/e4/3d/e43db6e8af6f b1df4a08f9c1f3f31e93e61781c4c1d2395e04dd96a583aa-01bd5236b932c3554f04000004972998[base64:19 b/l]) failed: Stream is smaller than expected (0 < 4080128) (uid=0, box=INBOX) Aug 6 16:11:12 mailsrv dovecot: lmtp(yyyy): AL1SNrkyw1VPBAAABJcpmA: msgid=<2015080614471325760993 at chinacoalchem.com> (from zsy at chinacoalchem.com): save failed to INBOX: Internal error occurred. Refer to server log for more information. [2015-08-06 16:11:12] Why LMTP, when try to deliver mail to local user yyyy tries to look up into a home directory of local user xxxxx? All these and similar home directories has a 'mail' subdir, which keeps mail and rights on this subdir is 0700. To avoid this completely misunderstood occassion, I have temporary set mail_attachment_min_size to 2048kb - but now I cannot receive advantage from SiS. -- ? ?????????. ?????? ????? ?????????????? (AchilovRN at granch.ru) ??????? ?????????? ?? ?????? ?????????? ??? ??? "?????", ???: +7 (383) 233-35-12, ???. 107 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2606 bytes Desc: ?????????????????????????????????? ?????????????? S/MIME URL: <http://dovecot.org/pipermail/dovecot/attachments/20150806/df00192b/attachment-0001.p7s>
On 08/ 6/15 07:15 AM, ?????? ????? ?????????????? wrote:> > I have tried to use SiS to deduplicate attachments in mail storage... > > Aug 6 16:11:12 mailsrv dovecot: lmtp(yyyy): Error: > read(/usr/share/smbusers/xxxxx/mail/attachmentsYou forgot to post your "doveconf -n" configuration. It looks like your attachment storage includes the username in the path. That won't work. The path should be global, e.g. /usr/share/mail/attachments, and readable/writable by the dovecot process. SiS deduplicates the attachments regardless of username since the same attachment might be sent/received by multiple users. SiS will save a single copy in the global path and transparently link it to the users' mailboxes.
10/08/15 19:35, Oscar del Rio ?????:> > You forgot to post your "doveconf -n" configuration. > It looks like your attachment storage includes the username in the path. > That won't work. > The path should be global, e.g. /usr/share/mail/attachments, and > readable/writable by the dovecot process. > > SiS deduplicates the attachments regardless of username since the same > attachment might be sent/received by multiple users. SiS will save a > single copy in the global path and transparently link it to the users' > mailboxes.Thank you for reply. I had have understood this already, when spent some time for thinking about which ways available for SiS to deduplicate attachments without access to FS and kernel. Of course, is there the only way - keep attachments in big one pile and link it to user's mail. It is not for me. When I'll set mail_attachment_fs=posix will dovecot stores attachments for each user? I.e. when mail group info aliased to users aaa, bbb and ccc, will dovecot store attachments separately for aaa at granch.ru, bbb at granch.ru, ccc at granch.ru or it again try to keep it in aaa's mail directory and link to another two? -- ? ?????????. ?????? ????? ?????????????? (AchilovRN at granch.ru) ??????? ?????????? ?? ?????? ?????????? ??? ??? "?????", ???: +7 (383) 233-35-12, ???. 107 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2606 bytes Desc: ?????????????????????????????????? ?????????????? S/MIME URL: <http://dovecot.org/pipermail/dovecot/attachments/20150813/3206107c/attachment.p7s>