解决CentOS下无法发送邮件的问题 + selinux
来源:互联网 发布:京东抢券软件安卓 编辑:程序博客网 时间:2024/06/05 07:18
In the newer Fedoras (and perhaps other Linux installations). SELinux is set to enforce by default, one of the areas you'll notice this causing issues is with mail (whether connecting via port 25 to SMTP, or using PHP mail().
The solution to both of these scenarios is as follows:
To allow PHP/Apache to connect to port 25 issue the following commands as root:
setsebool -P httpd_can_network_connect=1
To allow PHP mail() to work issue the following command as root:
setsebool -P httpd_can_sendmail=1
This should fix both issues.
The solution to both of these scenarios is as follows:
To allow PHP/Apache to connect to port 25 issue the following commands as root:
setsebool -P httpd_can_network_connect=1
To allow PHP mail() to work issue the following command as root:
setsebool -P httpd_can_sendmail=1
This should fix both issues.
阅读全文
0 0
- 解决CentOS下无法发送邮件的问题 + selinux
- 解决CentOS下无法发送邮件的问题
- TD无法发送邮件问题的解决
- 解决CentOs下SeLinux拦截nginx读取文件的问题
- 解决万网主机下 WORDPRESS 无法发送邮件的问题
- 解决Domino双网卡无法发送Internet邮件的问题
- centos 无法发送邮件的解决办法
- Linux服务器下PHPMailer发送邮件失败问题的解决
- Windows7下解决飞秋无法发送文件的问题
- 解决 debian 系统下 无法使用 mutt 发送邮件
- MediaWiki无法发送邮件问题的解决($wgSMTP 及邮箱设置)
- 2个方法解决LINODE VPS无法发送邮件的问题
- TL-WR541G+无法发送邮件,无法发帖的问题
- yii2 无法发送邮件的解决 can not send email
- CentOS 5.3下架设LAMP时遇到SELinux权限问题,导致无法打开页面
- 解决Pushlet无法发送中文的问题
- Odoo10 关于无法发送QQ邮件的问题(501)
- 【解决】CentOS防火墙无法启动的问题
- 安卓TextView文字悬浮阴影效果实现
- 测试java
- UVa 1592 Database
- 通过串口log信息解决无限重启问题——空指针异常
- 2017开学训练第五周周中总结
- 解决CentOS下无法发送邮件的问题 + selinux
- 机器学习中的正则化
- Spring源码学习之认识AOP
- slf4j配置实例
- kafka可靠性
- jsp使用session对象模拟在线考试系统
- token android.os.BinderProxy@163442e0 is not valid; is your activity running
- InteliJ IDEA用Maven搭建Mybatis框架
- jQuery学习_动作效果(隐藏、显示、切换,滑动,淡入淡出,以及动画)