docs:tips_n_tricks:dovecot.html
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docs:tips_n_tricks:dovecot.html [27.10.2017 15:26 CEST] – [Monitoring] peter | docs:tips_n_tricks:dovecot.html [01.02.2019 13:36 CET] (current) – [Remediation] peter | ||
---|---|---|---|
Line 12: | Line 12: | ||
doveadm replicator status < | doveadm replicator status < | ||
//< | //< | ||
+ | |||
+ | Run | ||
+ | |||
+ | doveadm replicator status ' | ||
+ | |||
+ | to find failing mailboxes. | ||
Times shown are the time passed since last fast/full sync. | Times shown are the time passed since last fast/full sync. | ||
Line 18: | Line 24: | ||
Accepts a username pattern as well, but works without it. | Accepts a username pattern as well, but works without it. | ||
- | | + | |
triggers a new full sync. (Needs to be called twice sometimes?) | triggers a new full sync. (Needs to be called twice sometimes?) | ||
- | :!: '' | + | <note tip>'' |
Credits: | Credits: | ||
* https:// | * https:// | ||
+ | |||
+ | ==== Deduplication ==== | ||
+ | |||
+ | Sometimes, root cause of replication troubles seem to be duplicated emails. Those might be cleaned up in mailboxes //INBOX// and //Spam// for account // | ||
+ | |||
+ | <code bash deduplicate.sh> | ||
+ | while doveadm deduplicate -u user@example.com mailbox INBOX OR mailbox Spam | ||
+ | do | ||
+ | fgrep -c Message-ID: example.com/ | ||
+ | echo "++++ `date` +++++" | ||
+ | done | ||
+ | </ | ||
+ | |||
+ | This will run forever ans should be stopped when numbers do not change any more. | ||
==== Monitoring ==== | ==== Monitoring ==== | ||
//This solution is for nagios-like monitoring systems// | //This solution is for nagios-like monitoring systems// | ||
Line 75: | Line 94: | ||
{{entry> | {{entry> | ||
{{entry> | {{entry> | ||
- | {{entry>dovect}} | + | {{entry>dovecot}} |
docs/tips_n_tricks/dovecot.html.1509110792.txt.gz · Last modified: 27.10.2017 15:26 CEST by peter