How to block incoming emails?

**Operating system:Ubuntu **
OS version:20.04

I want to have email server to send email only for admin purpose… I dont want to receive incoming emails…

I have seperate email server for public communication…

How do I setup it?? I want to have only outgoing emails no incoming…

Have someone who has a problem where they can’t receive email set it up. :smile:

I suppose the easiest way would be to create one email address for your own use, and make it so cryptic that no one would ever guess it. Like R1Fh7feN3Z@example.tld, for example.

If you truly want to make it impossible to receive mail, I think you could probably do it in /etc/postfix/main.conf with

inet_interfaces = loopback-only

But I’ve never actually done it. Usually I don’t go out of my way to intentionally break functionality. I do it well enough without trying.

Richard

1 Like

@pratam02,

Don’t want inbound email, two simple steps.

  1. Don’t setup an MX record for the domain. This will keep honest people from attempting to send you email.

  2. Block all email ports from receiving inbound requests. This will prevent inbound email from being received at the firewall level.

You can still send out email with the above configuration.

Hope this helps!

Best Regards,
Peter Knowles | TPN Solutions

1 Like

Lol!

Thanks for starting my week off with a guffaw, Richard.

1 Like

My pleasure.

Richard

That is actually sleek and elegant solution Peter!

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.