Sahil Tandon wrote:
>
>
> 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>
>
>
>
Thx !!
Obviously, user01 cannot read main.cf which is 740 premission.
But how come user01 run sendmail either as root or postfix at command line?
Simply speaking, send email by "mail" command at console. Thx!!
Best,
Jacky
--
View this message in context:
http://www.nabble.com/Does-main.cf-need-world-readable--tp22406763p22407130.html
Sent from the Postfix mailing list archive at Nabble.com.