LNMP Series Tutorials SendMail cannot send mail problems _linux

Source: Internet
Author: User
Tags vps
These days, the company's a customer site needs to build a forum, of course, using my favorite Discuz x2.5, although some imperfect, but can be upgraded slowly. The forum is installed on the Linux VPS, using the LNMP environment. (Recommended reading: Add a domain name to establish a site) everything is going well, the customer needs to verify the mail registered user I found that the mail could not be sent. The general host I used, directly in DZ background can be opened. Access to relevant information should be SendMail can not send mail caused. So how do we solve it?

The first step, we do not care if the SendMail is installed, the default is installed. Let's unload the SendMail first.

Copy Code code as follows:

Yum-y Remove SendMail


The second step is to reinstall the SendMail component;

Copy Code code as follows:

Yum-y Install SendMail


Some people have to ask, this is not a waste of time, one will be deleted, a will install. No way, in this sense, you have to do so only effect.

The third step, generally the first two steps can be completed, as long as we set DZ background can send mail. To ensure that it can be sent, we can view the sendmail_path= file path in the next php.ini file, which must be/usr/sbin/sendmail correct.

In the final step, we reboot the VPS. Should be no problem, if there is a problem to leave a message to the old left.

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.