Linux ci e-mail SendMail

Source: Internet
Author: User
Tags apache php

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.