Difference between revisions of "Ubuntu"

Jump to navigation Jump to search
2,408 bytes added ,  15:16, 21 February 2010
→‎Exchange Server: Added "OS DNS Setup"
(→‎Initial Setup: Added OS Install, Post OS Install etc)
(→‎Exchange Server: Added "OS DNS Setup")
Line 90: Line 90:
# '''A record''' - Standard DNS record
# '''A record''' - Standard DNS record
#* EG <code> mail.sandfordit.com [A] -> 158.25.34.124 </code>
#* EG <code> mail.sandfordit.com [A] -> 158.25.34.124 </code>
#* <code> 158.25.34.124 </code> is the static IP address assigned by your ISP.  You'll need to set-up a NAT on your router (often oddly called a virtual server in domestic routers) to map incoming mail on TCP 25 to your email server's actual address (EG <code> 158.25.34.124:25 -> 192.168.10.100:25 </code>.
#* <code> 158.25.34.124 </code> is the static IP address assigned by your ISP.  You'll need to set-up a NAT on your router (often oddly called a virtual server in domestic routers) to map incoming mail on TCP 25 to your email server's actual address (EG <code> 158.25.34.124:25 -> 192.168.1.150:25 </code>.
 
=== OS DNS Setup ===
In order to get round the fact that your exchange server won't have the same IP (or name even) on the public internet as it will on your internal network, a DNS server is installed on the exchange server to provide MX record resolution.  Procedure assumes DNS (Bind) is already installed.
 
Terminology...
* '''Private''' = Home or internal network IP address and network name (eg <code>192.168.1.150</code> and <code>mail.home.int</code>)
* '''Public''' = Global internet, ISP assigned IP address and registered domain name (eg <code>158.25.34.124</code> and <code>mail.sandfordit.com</code>)
 
Add the IP('s) of the DNS servers you use for resolution on your other machines to your local DNS server's list of forwarders (so that your exchange server forwards DNS resolution requests for unknown names to your normal DNS servers), edit <code>/etc/bind/named.conf.options</code>
<pre>
options {
        directory "/var/cache/bind";
        query-source address * port 53;
 
        forwarders {
                192.168.1.1; 158.25.30.10;
        };
 
        auth-nxdomain no;    # conform to RFC1035
};
</pre>
 
Edit <code>/etc/resolv.conf</code> to force the server to use its local DNS server for resolution
nameserver 127.0.0.1
 
Restart bind using <code> /etc/init.d/bind9 restart </code> and check you can resolve external addresses properly.
 
Now create the internal zone that will eventually contain the local MX record for your exchange server, append the following to <code> /etc/bind/named.conf.local </code>, using your publicly registered domain name
<pre>
zone "sandforit.com"  {
    type master;
    file "/etc/bind/db.sandfordit.com";
};
</pre>
 
Lastly create the database file for you DNS domain <code>/etc/bind/db.sandfordit.com</code>, using your publicly registered domain name and private (internal) IP address for your exchange server...
<pre>
;
; BIND data file for mydomain.com
;
$TTL    604800
@      IN      SOA    mail.sandfordit.com. admin.sandfordit.com. (
                        070725        ; Serial
                        604800        ; Refresh
                          86400        ; Retry
                        2419200        ; Expire
                        604800 )      ; Negative Cache TTL
;
@      IN      NS      mail
        IN      MX      10 mail
        IN      A      192.168.1.150
mail    IN      A      192.168.1.150
</pre>
 


=== Zimba Install ===
=== Zimba Install ===

Navigation menu