如何防止postfix接收邮件?

我只使用我的服务器发送邮件,因为我使用Zoho在我的域中接收电子邮件。 我想禁止接收任何邮件的后缀,因为垃圾邮件发送者总是试图给我发邮件或使用我作为中继。

只需添加防火墙规则阻止端口25。

你也可以将Postfix绑定到你的main.conf的loopback接口

 inet_interfaces = loopback-only 

http://www.postfix.org/postconf.5.html#inet_interfaces

我认为这样做是一个很好的做法,这样,如果出于某种原因,最终不会成为垃圾邮件源,那么这两种方法之一会被closures。

请阻止防火墙上的端口25或按照本指南进行只发送后缀configuration: https : //www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send -只- SMTP服务器上,Ubuntu的14-04