I had an issue where either postfix or dovecot did not have permission to create user directories in /var/mail.
Doing ls -l '/var/mail' showed me that the owner and group was root root.
1 root root 10 May 27 13:48 /var/mail -> spool/mail
I tried changing owner and group to postfix, and then dovecot, and both times when I did a ls -l the owner and group remained as root. (this is while logged in as root).
Somebody recommended the chmod needed to be 644, so I changed it to that, and still, the server wouldn't create the user directories in the mail folders.
In the meantime, I changed chmod to 777 and everything started working, but now I have a big security concern.
Why didn't the owner and group change from root when I told it to?
Who should own /var/mail? and what chmod does it need?