Postfix mailbox location
Christopher Chan
christopher.chan at bradbury.edu.hk
Thu Sep 10 01:35:34 UTC 2009
Wade Smart wrote:
> After getting my fetchmail to work properly (thanks guys :D)
> postfix produced an error:
>
> postfix/local: status = bounced (cannot update mailbox
> /home/wadesmart/data/wadesmart/Maildir for user wadesmart.)
>
> My mail was in /home/wadesmart/Maildir on my old system.
> Now my old home is mounted as /data and my mail is located at
> /data/wadesmart/Maildir.
>
> I was reading the postfix manual and it says "Optional pathname of a
> mailbox file relative to a local(8) user's home directory."
> Im reading that to mean I cant put my mail where it is at - correct?
> So can I not have it outside my /home directory?
>
Yes you can. Change your MAIL or MAILDIR env var to point to the new
location.
Edit ~/.bashrc and add the following line to the very end of the script:
export MAIL="/data/wadesmart/Maildir/"
export MAILDIR="/data/wadesmart/Maildir/"
More information about the ubuntu-users
mailing list