I can't Validate SMTP in CentOS 7

General support questions
Post Reply
Posts: 1
Joined: 2019/09/11 07:07:29

I can't Validate SMTP in CentOS 7

Post by marufalam93 » 2019/09/11 07:11:53


I have newly set up a centOS 7 Server. After that installed LAMP(Linux Apache Mysql PHP) there. Then I deployed my project. There is a project which Requires SMTP Validation. That function worked well in our previous server. But After moving to CentOS 7 the validation is not working. Please tell me what config needed to achieve that functionality.

User avatar
Forum Moderator
Posts: 26300
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: I can't Validate SMTP in CentOS 7

Post by TrevorH » 2019/09/11 11:32:08

If you are trying to send mail from apache httpd/php then you need to tell selinux that you want to allow it. Use setsebool -P httpd_can_sendmail true to allow it (and persist over a reboot).
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply