Difficulty sending e-mails:
2015/3/12 15:54
Tail-f/var/log/maillog:noqueue:syserr (Apache): Can not ChDir (/var/spool/clientmqueue/): Permission denied
sudo chown smmsp:smmsp/var/spool/clientmqueue
SUDO/USR/SBIN/USERMOD-G smmsp-g Apache Apache
Restarting Apache is still not possible.
Maillog Error Change:
Noqueue:syserr (Apache): Can not write to queue directory/var/spool/clientmqueue/(runasgid=48, required=51): Permission Denied
and/var/log/httpd/error_log has no error.
chmod 777 Clientmqueue Mail will be sent.
2015/3/12 18:15
[Email protected] html]# chown Smmsp:smmsp/var/spool/clientmqueue
[Email protected] html]# chmod 2770/var/spool/clientmqueue
[Email protected] html]# chgrp Smmsp/usr/sbin/sendmail
[Email protected] html]# chmod g+s/usr/sbin/sendmail
[Email protected] html]#/usr/sbin/usermod-g smmsp-g Apache Apache
2015/3/6 18:50
Use CI to send email, encounter error: Unable to send email using PHP mail (). Your server might not being configured to send mail using the This method.
sudo yum install postfix, still the same after installation,
Found in log: Program mode requires special privileges, e.g., Root or Trusteduser.
Chmod-r 777 Ugc_ci_framework is also not work;
/etc/php.ini changed to Sendmail.postfix,/etc/init.d/httpd restart restarted Apache PHP configuration effective, log error replaced: sendmail.postfix:fatal:unable To use my own hostname
Outside the framework directly with the PHP mail (), is also program mode requires special privileges, e.g., Root or Trusteduser.
This article comes from "technology is forced out." "Blog, be sure to keep this provenance http://linkindick.blog.51cto.com/2345165/1619974
Linux ci e-mail SendMail