theology99
asked on
Sendmail error
I am able to send the mail from root user by issuing the command.
mail -s "hello" abc@gmail.com
But not able to send emails through this command from other users.
like apache or other user accounts getting the error.
for apache
sendmail[3690]: NOQUEUE: SYSERR(apache): /etc/mail/sendmail.cf: line 0: cannot open: Permission denied
for other users
sendmail[3690]: NOQUEUE: SYSERR(admin): /etc/mail/sendmail.cf: line 0: cannot open: Permission denied
mail -s "hello" abc@gmail.com
But not able to send emails through this command from other users.
like apache or other user accounts getting the error.
for apache
sendmail[3690]: NOQUEUE: SYSERR(apache): /etc/mail/sendmail.cf: line 0: cannot open: Permission denied
for other users
sendmail[3690]: NOQUEUE: SYSERR(admin): /etc/mail/sendmail.cf: line 0: cannot open: Permission denied
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Similar problems can occur If it's a selinux issue, which would be fixed by:
semanage boolean -l|grep sendmail
httpd_can_sendmail -> off Allow http daemon to send mail
setsebool -P httpd_can_sendmail on
semanage boolean -l|grep sendmail
httpd_can_sendmail -> off Allow http daemon to send mail
setsebool -P httpd_can_sendmail on
ASKER