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 127.0.0.1::25, so If I understand correclty now it accepts mails only from localhost.
Is that all or should I do sth extra?

Thanx,
Mike

Question information

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

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

Cheers,
Antonio

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

Thanks Antonis Kanouras, that solved my question.