How to change location of Maildir/ in postfix mail system
- by adesh
I'm using Postfix with imap and pop servers running on ubuntu linux. I want to change the the location of Maildir folder from user's home directory to some other shared folder so that all mail is in one place.
I also have problem sending local mails to users who does not have a home directory (e.g. www-data), the system users created by default. I'm getting the following error.
postfix/local[32123]: DCE1D221BBD: to=<www-data@********>, orig_to=<www-data>, relay=local, delay=33, delays=33/0/0/0.12, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /var/www/Maildir/tmp/1382169296.P32123.********: Permission denied)
I'd like to have a folder structure similar to this: /all-mail/<user-name>/<mail-goes-here>