Menu

Change path Maildir using Postfix/Dovecot

Sergio
2018-06-28
2018-07-10
  • Sergio

    Sergio - 2018-06-28

    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.

     
  • GingerDog

    GingerDog - 2018-07-10

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.