Cannot create log file and send emails
Moderators: Developer, Contributor
Re: Cannot create log file and send emails
Now the same question again, hope you understand it now.
Does sending work if you don't use SMTP?
Check settings PHPMAILER_METHOD_MAIL and PHPMAILER_METHOD_SENDMAIL
Does sending work if you don't use SMTP?
Check settings PHPMAILER_METHOD_MAIL and PHPMAILER_METHOD_SENDMAIL
Re: Cannot create log file and send emails
atrol wrote:Now the same question again, hope you understand it now.
Does sending work if you don't use SMTP?
Check settings PHPMAILER_METHOD_MAIL and PHPMAILER_METHOD_SENDMAIL
If i run with PHPMAILER_METHOD_SENDMAIL i receive this error:
"Could not execute: /usr/sbin/sendmail"
If i run with PHPMAILER_METHOD_MAIL i receive this:
"Could not instantiate mail function."
Re: Cannot create log file and send emails
Yes, i have installed and configured sendmail.atrol wrote:Do you have mail or sendmail installed on your system?
Are you able to start mail or sendmail from command line?
I can send emails via command line between users.
Edit:
I changed config_inc.php to $g_phpMailer_method = PHPMAILER_METHOD_SENDMAIL and received this error "Could not execute: /usr/sbin/sendmail"
By default sendmail configuration files are located at /etc/mail
How can I change the mantis to point to the folder /etc/mail instead /usr/sbin/sendmail?
Re: Cannot create log file and send emails
What do you wet when entering the following command
Code: Select all
type sendmailRe: Cannot create log file and send emails
sendmail is /usr/sbin/sendmailatrol wrote:What do you wet when entering the following commandCode: Select all
type sendmail
Re: Cannot create log file and send emails
No. It's all right...atrol wrote:Do you get any errors or warnings in web server log?
Re: Cannot create log file and send emails
In my maillog i have thisatrol wrote:Any error or warning in mail log?
"localhost sendmail[32626]: NOQUEUE: SYSERR(apache): can not chdir(/var/spool/clientmqueue/): Permission denied"
I followed this link: http://stackoverflow.com/questions/1280 ... send-email, I saw the permissions and they are ok.
Only I didn't do the part of SELinux, i don't know what it does and it seems risky. Whenever I change my SELinux, my VM is unbootable.
Re: Cannot create log file and send emails
Sorry for double post but i solved the problem.
I did this:
and httpd is not allowed to use sendmail.
So I used this command:
Tested and i received all the emails.
Thanks for the support, no doubt that was a big help.
I did this:
Code: Select all
#to see Selinux Booleans
getsebool -a | grep mailCode: Select all
#allow_postfix_local_write_mail_spool --> on
#httpd_can_sendmail --> off
#logging_syslogd_can_sendmail --> off
Code: Select all
setsebool -P httpd_can_sendmail on Thanks for the support, no doubt that was a big help.