Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have the following (already given) scenario: net topology

The primary question is - how to setup IMAP and SMTP server on the Lion for the "mydomain.com". Lion suggesting to use the ".private" domain for the server not directly in the internet, but in the mail-server config i shoudl enter domain for what i need handle emails - so i'm confused a bit...

Can someone post a step-by-step instructions, or at least point me to some helpful docs? I'm pretty new in Lion-server config...

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

This is a very common setup. In general, never use .private and .local since you end up (eventually) in a world of hurt and doing it "right" isn't that hard.

Basically, you will tell the world that your mail server resides on the public IP address (or set up it's own real routable internet IP address and have the Proxy/Firewall forward traffic to the internal fixed IP 10.1.1.20)

Then, you will add two zones to your internal DNS so that all queries for mail.whatever.com resolve to 10.1.1.20 and a reverse zone resolves the IP to the name.

This way your clients will get the right address when on the local LAN or VPN in, but can still access the server from the public internet when DNS gives the public address.

Also look out for your server certificates. Most people issue certificates for the public IP address and have a profile to allow internal clients to trust a self-signed cert for when they hit the server locally.

There are no silver bullets here - the choice you make to have a more complicated routing will complicate your SSL and other server setup steps, but this is a common situation for people deploying lion server so I've seen it work well in most cases.

share|improve this answer
    
Thank you very much! Is somewhere any usefull guide with step-by-step instructions - for the most simple setup? (will try this one for DNS: dummies.com/how-to/content/…) –  kobame Mar 28 '12 at 10:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.