I am new to email servers and after some time and hard work I managed to configure a mail server, all the certs, all the ports etc... Everything is working really fine! And now I was requested to create an internal subdomain so that the email accounts from this subdomain can only send an receive internal email.
Just let me clarify:
[email protected]
can send and receive emails from/to anybody, including Gmail or Outlook accounts.
[email protected]
can send and receive emails from/to anybody, including Gmail and Outlook accounts.
[email protected]
can send and receive emails from/to anybody, including Outlook and Gmail accounts.
BUT!
[email protected]
can only send and receive emails from/to [email protected]
, [email protected]
, [email protected]
or even [email protected]
or whatever from the same domain/subdomain. But someone with an @internal.example.com
account should not be able to send or receive emails from GMail, Outlook or @company.com
.
I found the way to create Sieve Filters to automatically discard external emails sent TO internal accounts but now I need to block any email sent FROM @internal.example.com
accounts to external email address.
I am using Postfix as MTA and I think this can be achieved with it but, as I said, I am new to email servers. I did my research and couldn't success. So, I guess is time to ask for some help and I hope you can help me on that.