Re: Monitoring Dovecot Replication

2021-02-15 Thread Andrea Gabellini
Hello,

here my script. I'm not a professional programmer... ;-)

Andrea

Il 12/02/21 17:53, Steven Varco ha scritto:
> Hi Andrea
>
> It would be great if oyu could post that here, as I (and possibly others) 
> would also be interested. :)
>
> thanks,
> Steven
>

-- 
__
hAS ANYONE SEEN MY cAPSLOCK KEY?
__

TIM San Marino S.p.A.
Andrea Gabellini
Engineering R&D
TIM San Marino S.p.A. - https://www.telecomitalia.sm
Via Ventotto Luglio, 212 - Piano -2
47893 - Borgo Maggiore - Republic of San Marino
Tel: (+378) 0549 886237
Fax: (+378) 0549 886188



--
Informativa Privacy

Questa email ha per destinatari dei contatti presenti negli archivi di TIM San 
Marino S.p.A.. Tutte le informazioni vengono trattate e tutelate nel rispetto 
della normativa vigente sulla protezione dei dati personali (Reg. EU 2016/679). 
Per richiedere informazioni e/o variazioni e/o la cancellazione dei vostri dati 
presenti nei nostri archivi potete inviare una email a priv...@telecomitalia.sm.

Avviso di Riservatezza

Il contenuto di questa e-mail e degli eventuali allegati e' strettamente 
confidenziale e destinato alla/e persona/e a cui e' indirizzato. Se avete 
ricevuto per errore questa e-mail, vi preghiamo di segnalarcelo immediatamente 
e di cancellarla dal vostro computer. E' fatto divieto di copiare e divulgare 
il contenuto di questa e-mail. Ogni utilizzo abusivo delle informazioni qui 
contenute da parte di persone terze o comunque non indicate nella presente 
e-mail potra' essere perseguito ai sensi di legge.

check_dovecot_replication.pl
Description: Perl program


quota_max_mail_size and dsync

2021-02-15 Thread Edgaras Lukoševičius

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:P)
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




Re: quota_max_mail_size and dsync

2021-02-15 Thread Aki Tuomi
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  
> 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:P)
> 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