Set mail server NOT to receive any mail

Asked by Michael Sioutis

So I've set it all up and I can send an email wherever I want to. But since I'll be using my mail server only to send some information about the results of a programm I executed, or the contents of a log file in specific time intervals etc, in a specific mail account of mine, I don't actually want it to receive any mail from the internet.

I ran sudo dpkg-reconfigure exim4-config and removed ::1 from the adresses it should bind to, leaving only localhost.

When doing netstat -na | grep "LISTEN " I see, so If I understand correclty now it accepts mails only from localhost.
Is that all or should I do sth extra?


Question information

English Edit question
Ubuntu exim4 Edit question
No assignee Edit question
Solved by:
Antonis Kanouras
Last query:
Last reply:
Revision history for this message
Best Antonis Kanouras (akanouras) said :

It was already accepting connections from localhost only; ::1 is the IPv6 equivalent of I'd suggest you revert that change, so as not to encounter any issue in the future.


Revision history for this message
Michael Sioutis (trelopedo) said :

Thanks Antonis Kanouras, that solved my question.