且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何阻止电子邮件发送

更新时间:2023-12-04 09:56:28

可以使用提供此类过滤功能的本地SMTP服务器或过滤接口(拒绝无效邮件)来完成此操作:

  • 在本地网络中的计算机上设置SMTP服务器.
  • 配置服务器以使用您的邮件提供商的一个或多个帐户转发所有邮件.
  • 配置所有邮件客户端以使用您的SMTP服务器发送邮件.
  • 配置SMTP服务器的过滤器.
  • 可选配置路由器或防火墙,以拒绝从所有到SMTP端口25的传出连接本地地址,而不是SMTP服务器的本地地址,以避免绕过服务器.
This can be done using a local SMTP server providing such filtering capabilities or a filtering interface (invalid mails are rejected):

  • Setup the SMTP server on a machine in your local network.
  • Configure the server to forward all mails using one or more accounts of your mail provider(s).
  • Configure all mail clients to use your SMTP server for outgoing mail.
  • Configure the filters of the SMTP server.
  • Optional configure your router or firewall to deny outgoing connections to SMTP port 25 from all local addresses except those of your SMTP server to avoid bypassing your server.


是的,最终我得到了一些提示,指出了如何解决它,可以通过制作CGi类型的应用程序来解决.是一个相关的解决方案.
yes finally got some hint how it could be tackled.it can be tackled by making a CGi kind of application.that would be a relevant solution.