I've got a web application (bugzilla) in apache that must use sendmail.cf . If this attempts to use sendmail I recieve the mistake:

/etc/mail/sendmail.cf: line : cannot open: Permission refused

the net application is within group "apache"

Permissions for sendmail seem like:

-rw-r--r-- 1 root root 58624 2008-03-29 05:27 sendmail.cf

Exactly what do the permissions for sendmail.cf need to seem like to be able to be utilized by apache but nonetheless be secure enough to lock out everybody else.

Set the consumer as root and also the group as apache: chown root:apache sendmail.cf

You ought to have another .cf apply for local distribution, usually known as (something similar to) submit.cf - this can possess a slightly different batch of configurations particularly for Delivering mail (whereas sendmail.cf would be the part for RECEIVING mail). The submit.cf is protected to become globally readable, because (theoretically) all processes around the box ought to be reliable to transmit email.