protocol doveadm { plugin { quota_max_mail_size = -1 } } this might work. Alternatively you can define quota_max_mail_size for protocols you need it for.
Aki > On 15/02/2021 16:41 Edgaras Lukoševičius <edgaras.lukosevic...@gmail.com> > wrote: > > > Hello, > > as we have enabled quota_max_mail_size, dsync is now having problems > moving oversized emails between servers. > > Is there a way to configure dovecot (dsync) to allow syncing of emails > larger than quota_max_mail_size but keep limiting clients over > imap/pop/lmtp? > > The error logged is: > > dsync(lo...@domain.tld): Info: imapc(remote.imap.host.tld): Connected to > II.III.III.II:PPP (local II.III.III.II:PPPPP) > dsync(lo...@domain.tld): Warning: Failed to copy source UID=24 mail: > Mail size is larger than the maximum size allowed by server > configuration - falling back to regular saving > dsync(lo...@domain.tld): Error: Mailbox INBOX.Sent: Saving failed: Mail > size is larger than the maximum size allowed by server configuration