Debian disable the internal mail completely

debian

I discovered recently that my server has been attempting to send 1000 emails a day (my limit) because of the internal mail system, where it'd be attempting to send actual emails to @ rather then using the internal mail that linux has.

Since I don't use this feature at all, how can I completely (either system-wide or per-user) disable this internal mail system to prevent it from happening?

Running Debian 8 with EXIM4

Best Answer

Debian comes by default with exim mail server, you can configure how the mailserver should work with the command

dpkg-reconfigure exim4-config

if you don't want the server to send remote emails you can choose the setting

local delivery only; not on a network