开发者

how to secure sendmail on Centos for sending mails only from web app

开发者 https://www.devze.com 2023-01-05 05:16 出处:网络
We are using sendmail to send mails from our web app and we do not need to receive e开发者_如何学运维mails. Only our machine should be able to send emails from the sendmail server.

We are using sendmail to send mails from our web app and we do not need to receive e开发者_如何学运维mails. Only our machine should be able to send emails from the sendmail server.

What's the best way to make sure sendmail is running secure on our server. Again, we only need to be able to send mails using php's mail() function, nothing more.


The simplest solution is probably just shut down port 25 via iptables.

Sendmail should still send mail out, but iptables will block any incoming connections, so there will be no way for anyone outside to send mail to local users.

0

精彩评论

暂无评论...
验证码 换一张
取 消