Hi!
I'm using Raspbian 9.4.
At this moment I have configured and working Postfix+Dovecot.
I'm using Maildir as mailbox.
Postfix:
/etc/postfix/main.cf
home_mailbox = Maildir/
With this configuration the emails is stored on /home/user/Maildir.
But I'm looking to change this to a different drive from system. Ex:/media/data/Mail/user/Maildir.
Anyone can help me to solve this?
I've tryed a different ways like editting postfix file with: virtual_mailbox_maps + path.
But it did not works.
Any help will be apreciate.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dovecot's mail_location can be taken from a database query, as can Postfix's obviously.
If all you're looking to do is to move the mail location, then simply copying the files to a new path, and adding a symlink (so the old paths work) is all that's necessary.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I'm using Raspbian 9.4.
At this moment I have configured and working Postfix+Dovecot.
I'm using Maildir as mailbox.
Postfix:
/etc/postfix/main.cf
home_mailbox = Maildir/
Dovecot:
/etc/dovecot/conf.d/10-mail.conf
mail_location = maildir:~/Maildir
With this configuration the emails is stored on /home/user/Maildir.
But I'm looking to change this to a different drive from system. Ex:/media/data/Mail/user/Maildir.
Anyone can help me to solve this?
I've tryed a different ways like editting postfix file with: virtual_mailbox_maps + path.
But it did not works.
Any help will be apreciate.
Dovecot's mail_location can be taken from a database query, as can Postfix's obviously.
If all you're looking to do is to move the mail location, then simply copying the files to a new path, and adding a symlink (so the old paths work) is all that's necessary.