Forum Moderators: bakedjake
postfix defaults to 600 permissions on /var/mail/mailboxes
is there anyway i can allow world read access (chmod o+r) to allow rsync running as a non-root user to read the mailboxes. everytime i try this, postfix overwrites the permissions back to 600
i can not find anywhere in master.cf or main.cf
does anyone have any suggestions? or should i first run rsync as root to copy all mailboxes to another directory, and then chmod o+r?
many thanks
Sorry, I don't recall the name of the program in my distro.
Admittedly, the options available are a little tricky. You could run your backups as root in its crontab. Not an ideal situation, since root isn't *supposed* to run crons of that nature, but that's what you have to do sometimes. The other option is to run the backups as the postfix user. Looking at my system, it looks like postfix doesn't have a proper shell. You can always change that and make it so that it's a "real" user that can interact with the system. Again, not a fantastic solution.
The best way to get around this sort of predicament is really to do full-system backups using dump. It's straight-forward and reliable, and can be restored to nearly any other *NIX system.
My 0.02,
MM