I recently tried to open a mail server for our company. For some reasons it was better to make mail server separate from other server(s) in data center, so we plugged another server to our local network and built up the mail server. As you can see in the picture, we have a DNS server to manage the domain and our only valid IP. The IP has set correctly and main website is up, but mail server is not.
Please have a look at this image:
I know that I should have MX records for the entire domain that points to mail server, for example mail.work.com and I did it. I also made an A record for the mail.work.com witch is pointing to actual mail server with internal IP address, like 192.168.x.xxx . Now it works in the local network itself, I can manage my inbox, sent items, and anything else expected by a mail server, the problem is, mail server is not accessible form the internet, and it's logical! Cause the A record, points to a local network machine, not a valid IP address. Now my question is, how can I make my mail server public on the internet? (I researched and got something like if you put a CName record with the A record it should work, is that true? I'm sorry I'm not a network master, but I've got to ask some one!)