1.问题
最近搭建系统集成系统(jenkins),问题跟踪系统(bugzilla)配置SMTP发送邮件时,jenkins发送邮件功能OK,bugzilla发送邮件提示 Couldn't connect to smtp
2.解决
根据各种检索到的解决方案,均无答案,后来回到redhat网络连接本身上来,通过多次检索,发现redhat对于网络还存在其他的设定, httpd_can_network_connect属性默认为off,需要开启才能正常处理网络连接问题。执行如下语句后,bugzilla邮件发送功能即OK。
setsebool httpd_can_network_connect on
参考:https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Booleans-Configuring_Booleans.html