我最近发现,由于内部邮件系统,我的服务器一直试图每天发送1000封电子邮件(我的限制),它将试图发送实际的电子邮件给@,而不是使用linux的内部mail 。
由于我完全不使用这个function,我怎样才能完全(无论是系统范围还是每个用户)禁用这个内部mail系统来防止它发生?
用EXIM4运行Debian 8
Debian默认使用exim邮件服务器,您可以configuration邮件服务器如何使用该命令
dpkg-reconfigure exim4-config
如果您不希望服务器发送远程电子邮件,则可以select该设置
local delivery only; not on a network
我设法通过configurationEXIM4作为internet site而不是smart host; no local mail来修复它smart host; no local mail smart host; no local mail (在从dpkg-reconfigure exim4-config的步骤中)
除了从destinations for which mail is accepted的destinations for which mail is accepted删除localhost