On Mar 8, 2009, at 11:47 PM, Jacky Chan wrote:
I found when I set main.cf to 740, owner is root and group is postfix.
[11:41:55][use...@nx1:~]# echo "testing" | mail -s "testing" root
[11:41:58][use...@nx1:~]# send-mail: fatal: open /etc/postfix/main.cf:
Permission denied
Does main.cf need world readable? If so, the setting in main.cf will
be
world readable also.
Why does it happen? Since man.cf should be loaded to memory when
Postfix
start, it should not have file access.
You are running the Postfix sendmail(1) command neither as 'root' nor
as 'postfix'; but instead, as 'user01'. If you want to submit mail to
Postfix this way, do you see why 740 is incorrect?
--
Sahil Tandon <sa...@tandon.net>