Moving Alternate Storage to another disk.

2018-12-31 Thread bOnK

Hello,

Dovecot 2.3.4_3 on FreeBSD 11.2.

I am using mdbox Alternate Storage since about two years without any 
problems.
However, the disk containing this storage is almost full and I have to 
move this data to another disk, probably zpool.


Would it be okay to do the following?
1) Shut down dovecot (and mail server) so no new mail comes in.
2) Copy/move all files in ALT location to new disk, using shell commands 
like cp/mv/cpdup.

3) Change the path to ALT in dovecot-conf mail_location.
4) Change the 'dbox-alt-root' soft-links in each users main (INBOX) 
directory to point to this new location.

5) Start up dovecot and mail server.

Am I missing something or maybe there is a better way?

--
Thanks, and have a nice new year.
bOnK


Re: Moving Alternate Storage to another disk.

2019-01-03 Thread bOnK

Okay, thank you.

On 3-1-2019 11:25, Urban Loesch via dovecot wrote:

Hi,

if you have the new disk installed on the same server you can try:

- mount new disk for example in /mnt/temp
- rsync -vaWH all files + directories from the old to the new disk
- stop dovecot so no changes will happen on disks
- make a final rsync again -> should not take many time
- umout the old disk
- mount new disk to the original "alt-storage" path, so you don't have 
to change each soft-link in each users directory.

- start dovecot

Not tested, but in theory it should work.

Best
Urban

Am 31.12.18 um 15:02 schrieb bOnK:

Hello,

Dovecot 2.3.4_3 on FreeBSD 11.2.

I am using mdbox Alternate Storage since about two years without any 
problems.
However, the disk containing this storage is almost full and I have 
to move this data to another disk, probably zpool.


Would it be okay to do the following?
1) Shut down dovecot (and mail server) so no new mail comes in.
2) Copy/move all files in ALT location to new disk, using shell 
commands like cp/mv/cpdup.

3) Change the path to ALT in dovecot-conf mail_location.
4) Change the 'dbox-alt-root' soft-links in each users main (INBOX) 
directory to point to this new location.

5) Start up dovecot and mail server.

Am I missing something or maybe there is a better way?





Re: Dovecot v2.2.36.1 released

2019-02-05 Thread bOnK

On 5-2-2019 17:06, Larry Rosenman wrote:
for some reason Aki's posts are not making it to my GMail account from 
this list.


Any idea why?


Authentication-Results: cloud.webmeneer.net; dmarc=fail (p=reject dis=none) 
header.from=open-xchange.com



mdbox Inconsistency in map index

2017-03-04 Thread bOnK

After a (power)crash two accounts have been corrupted.
I tried to rescue things by running force-resync multiple times, but 
that didn't work out.
Searching the archives, I found a recent suggestion (by Timo) to delete 
the index files, but I'm not sure which files to delete and what the 
consequences will be.
When I deleted ``storage/dovecot.map.index'' in an unimportant account 
of my own, things only grew worse and I decided to delete the account 
and start fresh...


Something I obviously don't want to do with the other account as it 
belongs to a client with about 2.5G mails (856 m.* files), which we 
don't want to lose.


I have observed the following behavior in the logs:
When a new mail arrives:
(The second line below is always the same, however there's no mail with 
uid 12819 according to doveadm search uid 12819)
Mar 04 11:43:28 lda(user): Warning: mdbox /var/mail/user/storage: 
Inconsistency in map index (117,1060 != 117,1883660)
Mar 04 11:43:28 lda(user): Error: Log synchronization error at 
seq=117,offset=1546660 for /var/mail/user/storage/dovecot.map.index: 
Extension record inc drops number below zero (uid=12819, diff=-1, orig=0)
Mar 04 11:43:28 lda(user): Warning: fscking index file 
/var/mail/user/storage/dovecot.map.index
Mar 04 11:43:28 lda(user): Info: 
msgid=: saved 
mail to INBOX
Mar 04 11:43:28 lda(user): Warning: mdbox /var/mail/user/storage: 
Inconsistency in map index (117,1060 != 117,1883784)
Mar 04 11:43:28 lda(user): Warning: fscking index file 
/var/mail/user/storage/dovecot.map.index
Mar 04 11:43:28 lda(user): Warning: mdbox /var/mail/user/storage: 
rebuilding indexes
Mar 04 11:43:28 lda(user): Warning: fscking index file 
/var/mail/user/storage/dovecot.map.index
Mar 04 11:43:28 imap(user): Error: 
/var/mail/user/mailboxes/INBOX/dbox-Mails/dovecot.index reset, view is 
now inconsistent
Mar 04 11:43:28 imap(user): Info: IMAP session state is inconsistent, 
please relogin. in=2011 out=108358 deleted=0 expunged=0 trashed=0


When user logs in next (might be from another box/MUA)
Mar 04 11:44:36 imap-login: Info: Login: user=, method=PLAIN, 
rip=82.95.XX.XX, lip=37.97.XX.XX, mpid=14884, TLS, 
session=
Mar 04 11:44:37 imap(user): Warning: mdbox /var/mail/user/storage: 
Inconsistency in map index (117,1060 != 117,1884336)
Mar 04 11:44:37 imap(user): Warning: fscking index file 
/var/mail/user/storage/dovecot.map.index
Mar 04 11:44:37 imap(user): Warning: mdbox /var/mail/user/storage: 
rebuilding indexes
Mar 04 11:44:37 imap(user): Error: 
/var/mail/user/mailboxes/INBOX/dbox-Mails/dovecot.index reset, view is 
now inconsistent
Mar 04 11:44:37 imap(user): Info: IMAP session state is inconsistent, 
please relogin. in=331 out=178391 deleted=0 expunged=0 trashed=0
Mar 04 11:44:37 imap(user): Warning: mdbox /var/mail/user/storage: 
Inconsistency in map index (117,1060 != 117,1884396)
Mar 04 11:44:37 imap(user): Warning: fscking index file 
/var/mail/user/storage/dovecot.map.index
Mar 04 11:44:37 imap(user): Warning: fscking index file 
/var/mail/user/storage/dovecot.map.index
Mar 04 11:44:37 imap-login: Info: Login: user=, method=PLAIN, 
rip=82.95.XX.XX, lip=37.97.XX.XX, mpid=14886, TLS, 
session=


Besides the nuisance of getting kicked of every time a new mail arrives, 
user cannot delete mails (as in: move to Trash).


TL;DR: which files to delete and what will be the consequences?

--
b.


Re: dovecot wiki...

2016-03-15 Thread bOnK

On 15-3-2016 14:05, Andrew McGlashan wrote:

How can I stop this if it is normal dovecot wiki


Turn of JavaScript.

--
bOnK