Re: [Dovecot] Re: Using mbox INBOX with Maildirs?
Hi,
This is my first time using this group and I have the same question as the subject. I can't seem to get dovecot to read a mbox inbox that is in /var/mail/%u with /home/%u/Maildir as maildir. This just worked on my old server that I am now upgrading to AlmaLinux release 9.3 with dovecot version 2.3.16 (7e2e900c1a). Please help, this upgrade is very painful. Guess I shouldn't have waited 20 years...
On 26/03/2024 00:02 EET Will <aragonx@dcsnow.com> wrote:
Hi,
This is my first time using this group and I have the same question as the subject. I can't seem to get dovecot to read a mbox inbox that is in /var/mail/%u with /home/%u/Maildir as maildir. This just worked on my old server that I am now upgrading to AlmaLinux release 9.3 with dovecot version 2.3.16 (7e2e900c1a). Please help, this upgrade is very painful. Guess I shouldn't have waited 20 years...
It would be helpful if you could provide doveconf -n please, and mail_debug=yes logs.
Aki
Hi again,
Sorry for the incomplete information. Here is the dovecot -n
# 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf # OS: Linux 5.14.0-362.24.1.el9_3.x86_64 x86_64 AlmaLinux release 9.3 (Shamrock Pampas Cat) # Hostname: dcsnow.com auth_mechanisms = plain login first_valid_uid = 1000 login_trusted_networks = 10.1.0.0/16 mail_debug = yes mail_location = maildir:~/Maildir:INBOX=mbox:/var/mail/%u mbox_write_locks = fcntl namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = pam } service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } user = $default_internal_user } ssl_cert = </etc/letsencrypt/live/dcsnow.com-0002/fullchain.pem ssl_key = # hidden, use -P to show it userdb { driver = passwd }
debug:
Mar 26 08:30:39 dcsnow dovecot[45951]: imap(aragonx)<46038><2Q8ydY8UNsQKAQEu>: Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir:INBOX=mbox:/var/mail/aragonx Mar 26 08:30:39 dcsnow dovecot[45951]: imap(aragonx)<46038><2Q8ydY8UNsQKAQEu>: Error: Namespace '': Unknown setting: /var/mail/aragonx Mar 26 08:30:39 dcsnow dovecot[45951]: imap(aragonx)<46038><2Q8ydY8UNsQKAQEu>: Disconnected: Namespace '': Unknown setting: /var/mail/aragonx in=0 out=416 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
On 3/26/2024 2:37 AM, Aki Tuomi via dovecot wrote:
On 26/03/2024 00:02 EET Will<aragonx@dcsnow.com> wrote:
Hi,
This is my first time using this group and I have the same question as the subject. I can't seem to get dovecot to read a mbox inbox that is in /var/mail/%u with /home/%u/Maildir as maildir. This just worked on my old server that I am now upgrading to AlmaLinux release 9.3 with dovecot version 2.3.16 (7e2e900c1a). Please help, this upgrade is very painful. Guess I shouldn't have waited 20 years...
It would be helpful if you could provide doveconf -n please, and mail_debug=yes logs.
Aki
dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org
Will skrev den 2024-03-26 13:32:
Hi again,
Sorry for the incomplete information. Here is the dovecot -n
# 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf # OS: Linux 5.14.0-362.24.1.el9_3.x86_64 x86_64 AlmaLinux release 9.3 (Shamrock Pampas Cat) # Hostname: dcsnow.com auth_mechanisms = plain login first_valid_uid = 1000 login_trusted_networks = 10.1.0.0/16 mail_debug = yes mail_location = maildir:~/Maildir:INBOX=mbox:/var/mail/%u mbox_write_locks = fcntl
https://cs.brown.edu/about/system/accounts/email/dovecot/maildir_migration/
note the comment on / :)
i would just migrade with external tools like imapsync or https://manpages.ubuntu.com/manpages/focal/man1/mb2md.1.html
move all mails over to another folder that is maildir, not mbox when done configure this old mbox to maildir in config
namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = }
https://dovecot.org/list/dovecot/2021-October/123173.html see the syntax for sdbox here, you can have the mbox there for the mails needed to be converted to maildir
Mar 26 08:30:39 dcsnow dovecot[45951]: imap(aragonx)<46038><2Q8ydY8UNsQKAQEu>: Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir:INBOX=mbox:/var/mail/aragonx Mar 26 08:30:39 dcsnow dovecot[45951]: imap(aragonx)<46038><2Q8ydY8UNsQKAQEu>: Error: Namespace '': Unknown setting: /var/mail/aragonx Mar 26 08:30:39 dcsnow dovecot[45951]: imap(aragonx)<46038><2Q8ydY8UNsQKAQEu>: Disconnected: Namespace '': Unknown setting: /var/mail/aragonx in=0 out=416 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
participants (3)
-
Aki Tuomi
-
Benny Pedersen
-
Will