Mic*_*Mao 0 security linux firewall smtp telnet
请考虑以下事项:
192-168-1-106:~ michael$ telnet <remote_server_ip> 25
Trying <remote_server_ip>...
Connected to li*****.linode.com.
Escape character is '^]'.
220 mindinscription.net ESMTP Postfix (Ubuntu)
quit
221 2.0.0 Bye
Connection closed by foreign host.
Run Code Online (Sandbox Code Playgroud)
这很糟糕吗?如何保护端口 25 免受恶意攻击者的攻击?我已经设置了防火墙,但不太确定在这种情况下该怎么做。
基本上,我想使用此服务器仅将电子邮件作为警报消息发送,而不接收任何外部电子邮件。
非常感谢提前的帮助。
如果您不希望通过 SMTP 接收电子邮件,那么您可以 (a) 阻止防火墙上的端口 25,或 (b) 配置您的 MTA,使其不侦听端口 25 上的传入连接。后一种选择是很多方法都是更好的解决方案,但具体如何实现取决于您的 MTA。看起来您正在运行 Postfix,所以这可能会有所帮助:
http://www.postfix.org/postconf.5.html#inet_interfaces
| 归档时间: |
|
| 查看次数: |
7144 次 |
| 最近记录: |