Re: Set up an internal mail server
Sensei can correct me if I'm wrong, but I think you are looking at the domain thing the wrong way. For an email to be delivered it will have to have a domain, but it doesn't have to be a public (real) one. Also, your local machines will have to have their first DNS choice set up to be your server, not a public DNS.
And your server will also have to have DNS service running, so that it keeps all emails sent to your local domain.
Always sit down to think and follow to flow of information:
1. A machine in your network will send an email to user@mydomain.local
2. Your machines will have your server as DNS server, and will ask him where is mydomain.local. The reply will be your local server IP and the message will be sent there.
3. The mailserver running on your server will be configured to accept mydomain.local and will accept the message and deliver it to the user mailbox.
4. For all other DNS queries of your machines, your server will just forward them to the public servers you specify, and the local machines will get their reply.
That should be the line of thought in my opinion. The domain doesn't need to be public or registered if your only need is to work locally.
Darko.
-----------------------------------------------------------------------
Ubuntu 18.04 LTS 64bit
Bookmarks