Re: Only some of my sent emails are stored in sent-folder

2024-06-21 Thread Nils via dovecot

On 6/21/24 15:43, Daniel Lange via dovecot wrote:

Hi Nils,

Am 21.06.24 um 15:09 schrieb Nils via dovecot:

Looks like there is no IMAP access at all for the second mail.


[German UI Thunderbird]
Menu Bearbeiten -> Konten-Einstellungen -> [choose your main identity] 
-> Weitere Identitäten -> [Choose one] -> Bearbeiten -> Kopien & 
Ordner -> tick "Eine Kopie speichern unter" and choose a Sent mail 
folder that you like -> click "Ok"


[English UI Thunderbird]
Menu Edit -> Account Settings -> [choose your main identity] -> Manage 
Identities -> [Choose one] -> Edit -> Copies & Folders -> tick "Place 
a copy in" and choose a Sent mail folder that you like -> click "OK"


Kind regards,
Daniel


Sehr vielen Dank, Daniel!
Thank you very much, Daniel!

I can't believe it. I'd never thought that it would fall back to "Sent 
on local folders" instead of the account-setting. All the emails I've 
been searching for on the server were stored locally.


When I migrated to a new server, I've changed the name of the mail 
server. I didn't had to recreate my accounts in Thunderbird. I just 
edited the server name and had to store all the passwords again. Still, 
that must have been enough to trigger Thunderbird to change that setting 
to a fallback. I'm pretty sure that I didn't change that setting, when I 
was creating the identities. Until now, I didn't even notice that 
Thunderbirds Identity-Editor had more than one tab.


Ich bin so froh, dass Du dieses Rätsel gelöst hast!
I'm so glad that you've solved this mystery.
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Only some of my sent emails are stored in sent-folder

2024-06-21 Thread Nils via dovecot

On 6/21/24 14:46, Aki Tuomi wrote:

You need to enable the plugin
mail_plugins = $mail_plugins notify mail_log
Aki


Thank you very much, that helped a lot.


It seems that thunderbird isn't even trying to save those mails.


Test 1 From = em...@server.tld
Jun 21 12:56:05 SERVER postfix/submission/smtpd[45028]: connect from 
PROVIDER[IPV6_ADDRESS]
Jun 21 12:56:06 SERVER postfix/submission/smtpd[45028]: 2983EC0CA8: 
client=PROVIDER[IPV6_ADDRESS], sasl_method=PLAIN, 
sasl_username=em...@server.tld
Jun 21 12:56:06 SERVER postfix/cleanup[45031]: 2983EC0CA8: 
message-id=<49d73ced-269c-4f05-b89d-614097627...@server.tld>
Jun 21 12:56:07 SERVER amavis[40800]: (40800-05) Passed CLEAN 
{AcceptedInbound}, AM.PDP-SOCK [IPV6_ADDRESS] [IPV6_ADDRESS] 
 -> , Queue-ID: 2983EC0CA8, 
Message-ID: <49d73ced-269c-4f05-b89d-614097627...@server.tld>, 
mail_id: 9mB76WgPvzIT, Hits: 0.976, size: 756, 1096 ms
Jun 21 12:56:07 SERVER opendkim[1081]: 2983EC0CA8: DKIM-Signature 
field added (s=key1, d=SERVER.TLD)
Jun 21 12:56:07 SERVER postfix/qmgr[1792]: 2983EC0CA8: 
from=, size=453, nrcpt=1 (queue active)

Jun 21 12:56:07 SERVER dovecot: lmtp(45035): Connect from local
Jun 21 12:56:07 SERVER dovecot: 
lmtp(recipi...@server.tld)<45035>: save: 
box=INBOX, uid=8141, 
msgid=<49d73ced-269c-4f05-b89d-614097627...@server.tld>, size=1439
Jun 21 12:56:07 SERVER dovecot: 
lmtp(recipi...@server.tld)<45035>: sieve: 
msgid=<49d73ced-269c-4f05-b89d-614097627...@server.tld>: stored mail 
into mailbox 'INBOX'
Jun 21 12:56:07 SERVER postfix/lmtp[45034]: 2983EC0CA8: 
to=, relay=SERVER.de[private/dovecot-lmtp], 
delay=1.2, delays=1.2/0.01/0.01/0.01, dsn=2.0.0, status=sent (250 
2.0.0  u1CbE2d4dWbrrwAAVy37qw Saved)
Jun 21 12:56:07 SERVER dovecot: lmtp(45035): Disconnect from local: 
Logged out (state=READY)

Jun 21 12:56:07 SERVER postfix/qmgr[1792]: 2983EC0CA8: removed
*Jun 21 12:56:07 SERVER dovecot: 
imap(em...@server.tld)<44972>: save: 
box=Sent, uid=246, 
msgid=<49d73ced-269c-4f05-b89d-614097627...@server.tld>, size=436
Jun 21 12:56:07 SERVER dovecot: 
imap(em...@server.tld)<44972>: 
Disconnected: Logged out in=636 out=8876 deleted=0 expunged=0 
trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0*
Jun 21 12:56:12 SERVER postfix/submission/smtpd[45028]: disconnect 
from PROVIDER[IPV6_ADDRESS] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 
data=1 quit=1 commands=8


Test 2 From = al...@server.tld
Jun 21 12:56:22 SERVER postfix/submission/smtpd[45028]: connect from 
PROVIDER[IPV6_ADDRESS]
Jun 21 12:56:22 SERVER postfix/submission/smtpd[45028]: D523BC0CA8: 
client=PROVIDER[IPV6_ADDRESS], sasl_method=PLAIN, 
sasl_username=em...@server.tld
Jun 21 12:56:22 SERVER postfix/cleanup[45031]: D523BC0CA8: 
message-id=<5a512675-5b1d-4532-811d-5911c82c5...@server.tld>
Jun 21 12:56:23 SERVER amavis[40604]: (40604-06) Passed CLEAN 
{AcceptedInbound}, AM.PDP-SOCK [IPV6_ADDRESS] [IPV6_ADDRESS] 
 -> , Queue-ID: D523BC0CA8, 
Message-ID: <5a512675-5b1d-4532-811d-5911c82c5...@server.tld>, 
mail_id: 9UshOCYrnVmj, Hits: 0.976, size: 768, 1063 ms
Jun 21 12:56:23 SERVER opendkim[1081]: D523BC0CA8: DKIM-Signature 
field added (s=key1, d=SERVER.TLD)
Jun 21 12:56:23 SERVER postfix/qmgr[1792]: D523BC0CA8: 
from=, size=463, nrcpt=1 (queue active)

Jun 21 12:56:23 SERVER dovecot: lmtp(45035): Connect from local
Jun 21 12:56:23 SERVER dovecot: 
lmtp(recipi...@server.tld)<45035>: save: 
box=INBOX, uid=8142, 
msgid=<5a512675-5b1d-4532-811d-5911c82c5...@server.tld>, size=1453
Jun 21 12:56:23 SERVER dovecot: 
lmtp(recipi...@server.tld)<45035>: sieve: 
msgid=<5a512675-5b1d-4532-811d-5911c82c5...@server.tld>: stored mail 
into mailbox 'INBOX'
Jun 21 12:56:23 SERVER postfix/lmtp[45034]: D523BC0CA8: 
to=, relay=SERVER.de[private/dovecot-lmtp], 
delay=1.1, delays=1.1/0/0/0.01, dsn=2.0.0, status=sent (250 2.0.0 
 gOLQOnd4dWbrrwAAVy37qw Saved)
Jun 21 12:56:23 SERVER dovecot: lmtp(45035): Disconnect from local: 
Logged out (state=READY)

Jun 21 12:56:23 SERVER postfix/qmgr[1792]: D523BC0CA8: removed
Jun 21 12:56:29 SERVER postfix/submission/smtpd[45028]: disconnect 
from PROVIDER[IPV6_ADDRESS] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 
data=1 quit=1 commands=8


Looks like there is no IMAP access at all for the second mail.
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Only some of my sent emails are stored in sent-folder

2024-06-21 Thread Nils via dovecot

On 6/20/24 22:40, Nils via dovecot wrote:
Lots of the emails I send aren't stored in the sent folder. It seems 
that it mostly (but not always) work for sent emails where the main 
email-address (the one that is also used as login name) is used as 
sender. It never seems to work when an alias is used as sender name.


There isn't any entry in the mail.err log and nothing that looks 
suspicious to me in the regular mail.log.


I didn't notice it at first, because I usually don't check my sent 
folder that much, but I it seems to have started when I migrated to 
the new server a few weeks ago.


Any idea what could be the reason for it?

Kind regards,
Nils


I've copied the file "/etc/dovecot/conf.d/10-logging.conf.ucf-dist" to 
"/etc/dovecot/conf.d/10-logging.conf" and changed it's content to:



mail_debug = yes

# mail_log plugin provides more event logging for mail processes.
plugin {
  mail_log_events = delete undelete expunge copy mailbox_delete 
mailbox_rename save mailbox_create mailbox_rename flag_change

  mail_log_fields = uid box msgid size flags from subject
}


I've restarted dovecot, but the verbosity level of the logs didn't 
change. The events "delete" and "save" are not being logged for mails.


Could someone please tell me how to change the verbosity level of the 
dovecot logs?

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Only some of my sent emails are stored in sent-folder

2024-06-21 Thread Nils via dovecot

Thank you very much for your reply.

On 6/21/24 07:21, Alex via dovecot wrote:

For Thunderbird I suggest going to "Copies & Folders" of the account and 
replacing
"Place a copy in" with "Bcc these email addresses" option.
Then if you want outgoing mails to be in the Sent folder on IMAP server,
move them there with a Sieve filter.
I understand that this would be a very safe solution. It's a very good 
idea for a workaround.

Storing sent mails over IMAP is unreliable because it is not the same connection
as you use for SMTP. It is always possible that you manage to send the mail out
but fail to connect to IMAP or disconnect from the network before the message
is fully stored there.
Yes, that's very reasonable. But wouldn't a problem like that show up in 
the log files?

The default of storing messages over IMAP looks to me like a historical solution
that evolved by users switching from using TUI clients that stored mails
in the Sent folder using "Fcc" mechanism on the remote *nix machines
to accessing these same *nix machines over IMAP sometimes.
In this case it makes sense to store mails into the same folder.
But now that email servers are accessed exclusively over IMAP
and not remote shell, Bcc to self looks like a better solution.
I get what you mean. You have one protocol/access for sending and 
storing the message.


Still it wouldn't satisfy my curiosity. Not to find out why the problem 
is occurring only with emails that have an alias as the sender in the 
"From" field, would be a pity.

___
dovecot mailing list --dovecot@dovecot.org
To unsubscribe send an email todovecot-le...@dovecot.org

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Only some of my sent emails are stored in sent-folder

2024-06-21 Thread Nils via dovecot

Thanks a lot for your input Joseph.

On 6/21/24 01:42, Joseph Tam via dovecot wrote:

Sounds to me like some mail reader filtering rule.

Ordinarily, dovecot does not handle the capture of outgoing mail,  Most
of the time, it's the mail reader (MUA) that files outgoing messages to a
sent-mail folder, and less commonly, the MTA will do it.
I considered that, but it started happening when I migrated to a new 
server while still using the same MUA. I know, that it's easy to confuse 
correlation with causality, but when a problem starts occurring the 
moment you change a component, it's mostly a good idea to start looking 
there.
Also, I was hoping that dovecot would provide better logging options 
than Thunderbird. So that I'd be able to see if the command for saving 
those mails even reaches dovecot.

Mail readers probably employ their own logic to determine what belongs
in the sent mail folder: it could be all outgoing mail, it could be redirected
based on some role filter.
That would be a very good explanation for some of the problems but not 
for all.


require "fileinto";
require "imap4flags";
if header :contains "List-ID" [ "dovecot.dovecot.org" ] {
    fileinto "dovecot-user";
    setflag "\\Seen";
    stop;
}

This could have been a reason, why the mails I sent to this mailing list 
do not appear in my Sent folder. But then I would expect them to be in 
the folder "dovecot-user", where they aren't either.
Also there are other mails, using an alias as "From" address, where none 
of my filters would apply and they aren't stored to the sent folder as well.

If you have a repeatable case, check it against your filter rule set.  If it's
inconsistent (the same message does and does not make it into your sent
mail folder), you can look at other causes.
Yes, I have repeatable cases. Any email I send, using an alias as "From" 
address, will be sent successfully but not stored. No matter what 
content it may have. Emails send to the same recipient with exactly the 
same content will be stored to the sent folder when the "From" address 
is the main email address.


Still, there is no filter rule that would apply to that. Additionally, I 
only use "fileinto" actions in my filter rules. If it were one of them, 
the Email would have been stored somewhere else. I tried the 
aforementioned testcase, using a unique string as content. Running a 
full text search for that string on the servers mailbox folder only 
showed the one email that was not using the alias as sender name.

Joseph Tam

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Only some of my sent emails are stored in sent-folder

2024-06-20 Thread Nils via dovecot

On 6/20/24 22:40, Nils via dovecot wrote:
Lots of the emails I send aren't stored in the sent folder. It seems 
that it mostly (but not always) work for sent emails where the main 
email-address (the one that is also used as login name) is used as 
sender. It never seems to work when an alias is used as sender name.


There isn't any entry in the mail.err log and nothing that looks 
suspicious to me in the regular mail.log.


I didn't notice it at first, because I usually don't check my sent 
folder that much, but I it seems to have started when I migrated to 
the new server a few weeks ago.


Any idea what could be the reason for it?

Kind regards,
Nils


I spent some more time checking. I think I might made a mistake when I 
said that some of the emails, where the main email-address is used as 
sender, are not saved into the Sent folder.


After carefully double-checking, it seems to be that:

 * All emails that have the main email-address (that is used as
   login-name) as "From" value are stored to the "Sent"-folder
 * All emails that have an alias as "From" value are not store to the
   "Sent"-folder

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Only some of my sent emails are stored in sent-folder

2024-06-20 Thread Nils via dovecot

On 6/20/24 23:15, Christopher Wensink via dovecot wrote:
If you using Thunderbird I would try repairing the folder, (under 
properties) or compact folders.  That fixes a lot of issues for us.


The only other thought I had was maybe the UID of your use for the 
sent folder was different from the old to the new server, and the mail 
is still trying to be copied to the old uid?


Chris


Thank you for your hints, Chris. I didn't know that Thunderbird had a 
repair option. Sadly it didn't work this time, but I will keep it in 
mind for the future.


I'm not exactly sure if I understand you correctly. Do you mean the 
filesystem uid as in user-id/owner of the folder or is there something 
that I don't know of.

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Only some of my sent emails are stored in sent-folder

2024-06-20 Thread Nils via dovecot

On 6/20/24 23:00, Marc wrote:

Maybe reindex the mailbox and see if the messages turn up?

Yes, thanks for the good idea. Not sure if I did it right:

doveadm force-resync -u em...@server.tld Sent

It didn't show an error,  but the emails didn't appear.

I've already searched for the email files on the server and they weren't 
there.

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Only some of my sent emails are stored in sent-folder

2024-06-20 Thread Nils via dovecot

On 6/20/24 22:47, Marc wrote:

using outlook?

I also had this, and when I searched for this, I found lots of people have had 
this and it is a known issue since many years. (They recommend creating new 
profile)


Thank you very much for your fast response, Marc.

I use Thunderbird (currently 115.12.0). I was suspicious of my client 
too, but I manage accounts on other servers with that client too and 
they seem to work without problems (although I don't use aliases there). 
I'm gonna prepare another client and check that.


I definitely don't know if it's a dovecot issue, but I thinks it's a 
good place to start looking, since dovecot is managing the mailboxes. 
Can I increase the verbosity in a way that saving an email into a folder 
would be logged?

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Only some of my sent emails are stored in sent-folder

2024-06-20 Thread Nils via dovecot
Lots of the emails I send aren't stored in the sent folder. It seems 
that it mostly (but not always) work for sent emails where the main 
email-address (the one that is also used as login name) is used as 
sender. It never seems to work when an alias is used as sender name.


There isn't any entry in the mail.err log and nothing that looks 
suspicious to me in the regular mail.log.


I didn't notice it at first, because I usually don't check my sent 
folder that much, but I it seems to have started when I migrated to the 
new server a few weeks ago.


Any idea what could be the reason for it?

Kind regards,
Nils





Test 1 using main email address (NOT STORED IN SENT FOLDER)
Jun 20 20:10:28 SERVER postfix/submission/smtpd[5156]: connect from 
INTERNET_PROVIDER[IPV6_ADDRESS]
Jun 20 20:10:28 SERVER postfix/submission/smtpd[5156]: 3B8B0C0DA8: 
client=INTERNET_PROVIDER[IPV6_ADDRESS], sasl_method=PLAIN, 
sasl_username=recipi...@server.tld
Jun 20 20:10:28 SERVER postfix/cleanup[5161]: 3B8B0C0DA8: 
message-id=
Jun 20 20:10:28 SERVER amavis[5197]: (05197-01) Passed CLEAN 
{AcceptedInbound}, AM.PDP-SOCK [IPV6_ADDRESS] [IPV6_ADDRESS] 
 -> , Queue-ID: 3B8B0C0DA8, 
Message-ID: , mail_id: 
nv7qsKFzK11D, Hits: 0.975, size: 702, 463 ms
Jun 20 20:10:28 SERVER opendkim[1081]: 3B8B0C0DA8: DKIM-Signature field 
added (s=SERVER.TLD, d=SERVER.TLD)
Jun 20 20:10:28 SERVER postfix/qmgr[1792]: 3B8B0C0DA8: 
from=, size=402, nrcpt=1 (queue active)

Jun 20 20:10:28 SERVER dovecot: lmtp(5228): Connect from local
Jun 20 20:10:28 SERVER dovecot: 
lmtp(recipi...@server.tld)<5228>: sieve: 
msgid=: stored mail 
into mailbox 'INBOX'
Jun 20 20:10:28 SERVER postfix/lmtp[5227]: 3B8B0C0DA8: 
to=, relay=SERVER.TLD[private/dovecot-lmtp], 
delay=0.55, delays=0.54/0/0/0.01, dsn=2.0.0, status=sent (250 2.0.0 
 cL5iLbSMdGZsFAAAVy37qw Saved)
Jun 20 20:10:28 SERVER dovecot: lmtp(5228): Disconnect from local: 
Logged out (state=READY)

Jun 20 20:10:28 SERVER postfix/qmgr[1792]: 3B8B0C0DA8: removed
Jun 20 20:10:28 SERVER dovecot: imap-login: Login: 
user=, method=PLAIN, rip=IPV6_ADDRESS, 
lip=2a01:4f8:10a:e50::2, mpid=5248, TLS, 
session=
Jun 20 20:10:29 SERVER dovecot: 
imap(recipi...@server.tld)<5248>: 
Disconnected: Logged out in=496 out=637 deleted=0 expunged=0 trashed=0 
hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun 20 20:10:33 SERVER postfix/submission/smtpd[5156]: disconnect from 
INTERNET_PROVIDER[IPV6_ADDRESS] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 
data=1 quit=1 commands=8



Test 2 using alias email address (NOT STORED IN SENT FOLDER)
Jun 20 20:10:41 SERVER postfix/submission/smtpd[5156]: connect from 
INTERNET_PROVIDER[IPV6_ADDRESS]
Jun 20 20:10:42 SERVER postfix/submission/smtpd[5156]: 184A5C0DAD: 
client=INTERNET_PROVIDER[IPV6_ADDRESS], sasl_method=PLAIN, 
sasl_username=em...@server.tld
Jun 20 20:10:42 SERVER postfix/cleanup[5161]: 184A5C0DAD: 
message-id=
Jun 20 20:10:42 SERVER amavis[5196]: (05196-02) Passed CLEAN 
{AcceptedInbound}, AM.PDP-SOCK [IPV6_ADDRESS] [IPV6_ADDRESS] 
 -> , Queue-ID: 184A5C0DAD, 
Message-ID: , mail_id: 
ySF-pJQA8aRl, Hits: 0.975, size: 716, 607 ms
Jun 20 20:10:42 SERVER opendkim[1081]: 184A5C0DAD: DKIM-Signature field 
added (s=key1, d=SERVER.TLD)
Jun 20 20:10:42 SERVER postfix/qmgr[1792]: 184A5C0DAD: 
from=, size=408, nrcpt=1 (queue active)

Jun 20 20:10:42 SERVER dovecot: lmtp(5228): Connect from local
Jun 20 20:10:42 SERVER dovecot: 
lmtp(recipi...@server.tld)<5228>: sieve: 
msgid=: stored mail 
into mailbox 'INBOX'
Jun 20 20:10:42 SERVER dovecot: lmtp(5228): Disconnect from local: 
Logged out (state=READY)
Jun 20 20:10:42 SERVER postfix/lmtp[5227]: 184A5C0DAD: 
to=, relay=SERVER.TLD[private/dovecot-lmtp], 
delay=0.69, delays=0.68/0/0/0.01, dsn=2.0.0, status=sent (250 2.0.0 
 KCs+LcKMdGZsFAAAVy37qw Saved)

Jun 20 20:10:42 SERVER postfix/qmgr[1792]: 184A5C0DAD: removed
Jun 20 20:10:47 SERVER postfix/submission/smtpd[5156]: disconnect from 
INTERNET_PROVIDER[IPV6_ADDRESS] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 
data=1 quit=1 commands=8



Test 3 using main email address (stored in sent-folder)
Jun 20 20:30:24 SERVER postfix/submission/smtpd[5813]: connect from 
INTERNET_PROVIDER[IPV6_ADDRESS]
Jun 20 20:30:25 SERVER postfix/submission/smtpd[5813]: 3F2C1C0DAD: 
client=INTERNET_PROVIDER[IPV6_ADDRESS], sasl_method=PLAIN, 
sasl_username=em...@server.tld
Jun 20 20:30:25 SERVER postfix/cleanup[5818]: 3F2C1C0DAD: 
message-id=<603d7b61-d8d1-4099-bbc2-f0d2e9c77...@server.tld>
Jun 20 20:30:26 SERVER amavis[5197]: (05197-02) Passed CLEAN 
{AcceptedInbound}, AM.PDP-SOCK [IPV6_ADDRESS] [IPV6_ADDRESS] 
 -> , Queue-ID: 3F2C1C0DAD, 
Message-ID: <603d7b61-d8d1-4099-bbc2-f0d2e9c77...@server.tld>, mail_id: 
KDDY0Tv2B0Ut, Hits: 0.975, size: 704, 1096 ms
Jun 20 20:30:26 SERVER opendkim[1081]: 3F2C1C0DAD: DKIM-Signature field 
added (s=key1, d=SERVER.TLD)
Jun 20 20:30:26 SERVER postfix/qmgr[1792]: 3F2C1C0DAD: 
from=, size=398, nrcpt=1 (queue active)

Jun 20 20:30:26 SERVER dovecot: lmtp(5824): Connect from local
Jun 20 

Re: doveadm backup empties the remote host? SERIOUSLY???

2024-04-29 Thread Nils via dovecot

On 4/27/24 16:30, Nils via dovecot wrote:
I have a file backup and since that backup, new emails have been 
received. Also, not all of the emails were deleted - many folders 
weren't affected. Additionally I was able to restore a few of the 
deleted emails with ext4magic.


So now I have three sources:

1. MAIN (new dovecot) contains the emails in the folders that weren't
   deleted and the emails received after the incident.
2. BACKUP (of mail directory) contains all emails from last backup date
   (including those still in the folders that weren't deleted).
3. RECOVER (directory) contains deleted email files that were recovered.

How can I join these sources into MAIN,

 * without deleting any emails from MAIN (for example those that have
   been received today) and
 * with only reading and not writing into BACKUP and RECOVER?

Is there any more or less convenient way to achieve that?
If not, can I just dump all the files together and make dovecot 
recreate the indexes?

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Will doveadm-import automatically detect if a message already exists or 
could I end up with duplicates? Or is it unnecessary to worry about that 
because of the unique filename each message has?

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: doveadm backup empties the remote host? SERIOUSLY???

2024-04-27 Thread Nils via dovecot

On 4/27/24 12:31, Aki Tuomi via dovecot wrote:

Yeah. Backup command, without -R backs to location, not from location.
  
Mailman archive is athttps://www.dovecot.org/mailman3/mailman3/lists/
  
Aki

___
dovecot mailing list --dovecot@dovecot.org
To unsubscribe send an email todovecot-le...@dovecot.org
I have a file backup and since that backup, new emails have been 
received. Also, not all of the emails were deleted - many folders 
weren't affected. Additionally I was able to restore a few of the 
deleted emails with ext4magic.


So now I have three sources:

1. MAIN (new dovecot) contains the emails in the folders that weren't
   deleted and the emails received after the incident.
2. BACKUP (of mail directory) contains all emails from last backup date
   (including those still in the folders that weren't deleted).
3. RECOVER (directory) contains deleted email files that were recovered.

How can I join these sources into MAIN,

 * without deleting any emails from MAIN (for example those that have
   been received today) and
 * with only reading and not writing into BACKUP and RECOVER?

Is there any more or less convenient way to achieve that?
If not, can I just dump all the files together and make dovecot recreate 
the indexes?

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: doveadm backup empties the remote host? SERIOUSLY???

2024-04-27 Thread Nils via dovecot

On 4/26/24 14:04, Aki Tuomi wrote:
We have migration guide, see 
https://doc.dovecot.org/admin_manual/migrating_mailboxes/

Aki


regarding this guide:
I am supposed to set up doveadm service on the old server and then call
"doveadm backup -Ru username tcp:host:port"
on the new server? So the reason that doveadm deleted everything 
yesterday was that I forgot the -R option?


"The doveadm backup command forces the destination to look exactly like 
the source, deleting mails and mailboxes if necessary."
Why did doveadm backup create (empty) mailboxes on the new server, when 
I mistakably used it in the wrong direction?


-

Had to switch of the email server for over 10 hours yesterday. any 
messages might not have reached me. is there a mailman archive?

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


doveadm backup empties the remote host? SERIOUSLY???

2024-04-26 Thread Nils via dovecot
Sure it's my own fault - no discussion about that, but seriously? How 
dangerously unintuitive it that?


I found it when I was searching for a good practice to migrate a mail 
server with rsync and I mistakably assumed it works in the same 
direction as rsync.


Luckily i have a backup from all mails except today's.

Please, someone tell me what's the best procedure to migrate dovecot.
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org