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.