Mail Archive on second disk

jordivn

Verified User
Joined
Nov 4, 2016
Messages
62
Hello,

I would like to configure an archive folder for every user on an seperate disk.
I did try with namespace but i get an permission error.
Someone here which have configured it and would like to share configs?

Code:
namespace Archives {
type = private
disabled = no
hidden = no
list = yes
ignore_on_failure = no
inbox = no
location = maildir:/mnt/archive/%d/%n
prefix = "Archive."
subscriptions = yes
separator = .
mailbox Archive {
auto = no
autoexpunge = 0
autoexpunge_max_mails = 0
comment =
driver =
special_use = \Archive
}
mailbox Archives {
auto = no
autoexpunge = 0
autoexpunge_max_mails = 0
comment =
driver =
special_use = \Archive
}
mailbox "Archived Messages" {
auto = no
autoexpunge = 0
autoexpunge_max_mails = 0
comment =
driver =
special_use = \Archive
}
mailbox "Archived mail" {
auto = no
autoexpunge = 0
autoexpunge_max_mails = 0
comment =
driver =
special_use = \Archive
}
}
 
I'm just brainstorming here because I've never attempted this, but can the "mail" group write to /mnt/archive? That's my first thought, that this would be the necessary piece to ensure that it can create the folders.
 
Tnx for your reply.

Yes it can, it even creates the folders. But when moving emails to the archive folder i get permissions error.
Folder is created with ownership: {mailuser}:mail
 
Hmm that's an good one.. they are all created with only rwx rights for the user, not for the group.
After changing it, Im still getting the permissions error.
 
I would continue to take anything I say with a grain of salt on this topic. That said, I came across this and it made me think of your thread:


Obviously, that's not what you're wanting. However, I couldn't help but think that the result of using this feature might somehow reveal more data about how Dovecot under DA could use an entirely different partition for mail, and that it might reveal some minor detail about how it gets there by observing the end result itself. Which could, perhaps, generate additional thoughts that might give some ideas about how to achieve something more specific like your case.
 
Back
Top