Hi,
I am using Dovecot v 2.2.32 and Sendmail 8.15.2
My "folder" config on Dovecot is : mbox:/var/spool2/%u/mail:LAYOUT=fs:INBOX=/var/spool/mail/%u But in fact, any email arriving into the mailbox, stays in Sendmail into the file location (by default) : /var/spool/mail/user1 and any folder created, can be reached via Dovecot and is located to /var/spool2/user1
If I want to backup the user1's emails, I need to backup the "dovecot" location ( /var/spool2/user1) but also the Sendmail file location ( /var/spool/mail/user1) If I don't do that, I loose fresh emails which are still into the Sendmail directory, which are not copied into the Dovecot location.. Sounds weird
I would expect to backup only my Dovecot directory and my email client should see only the Dovecot directory I would expect to have small sendmail email file user ( /var/spool/mail/user1 ) and i should't car about these files. Everything should be copied automatically into my Dovecot location
what do you think ?
Best regards, Stéve
Hi,
I am using Dovecot v 2.2.32 and Sendmail 8.15.2
My "folder" config on Dovecot is : mbox:/var/spool2/%u/mail:LAYOUT=fs:INBOX=/var/spool/mail/%u But in fact, any email arriving into the mailbox, stays in Sendmail into the file location (by default) : /var/spool/mail/user1 and any folder created, can be reached via Dovecot and is located to /var/spool2/user1
If I want to backup the user1's emails, I need to backup the "dovecot" location ( /var/spool2/user1) but also the Sendmail file location ( /var/spool/mail/user1) If I don't do that, I loose fresh emails which are still into the Sendmail directory, which are not copied into the Dovecot location.. Sounds weird
I would expect to backup only my Dovecot directory and my email client should see only the Dovecot directory I would expect to have small sendmail email file user ( /var/spool/mail/user1 ) and i should't car about these files. Everything should be copied automatically into my Dovecot location
what do you think ?
I think that if you would know more about sendmail, dovecot and linux, you would not think this is strange ;) What does it even matter having to copy multiple locations. That is why we have computers, to do such things automatically for us.
Hi Stephane,
On 20.05.21 08:44, Stephane Magnier wrote:
I am using Dovecot v 2.2.32 and Sendmail 8.15.2
My "folder" config on Dovecot is :*mbox:/var/spool2/%u/mail:LAYOUT=fs:INBOX=/var/spool/mail/%u* But in fact, any email arriving into the mailbox, stays in Sendmail into the file location (by default) : /var/spool/mail/user1 and any folder created, can be reached via Dovecot and is located to /var/spool2/user1
I would recommend to change your Sendmail setup. IMHO you should configure it so that it uses Maildir instead of mbox.
Please have a look at the Wiki: https://wiki2.dovecot.org/LDA/ https://wiki2.dovecot.org/LDA/Sendmail
Or use LMTP instead (which I prefer): https://doc.dovecot.org/configuration_manual/protocols/lmtp_server/
And your Dovecot config could then be something like this:
mail_location = maildir:/var/spool2/%u/Maildir
All the mails and folders in _one_ place.
HTH and regards, Markus
participants (3)
-
Marc
-
Markus Winkler
-
Stephane Magnier