Domain Hosting

This page describes the basic setup for domains hosted by Monkeycosm.net

Basic domain setup

Each hosted domain will have a directory created of the form ~/example.com/. This directory contains all the files related to the domain. ~example.com/configs/ contains config files relevant to the domain for your reference.

Mail

~/example.com/configs/mail is a copy of your domain’s virtusertable. This lists all the email addresses for the domain and where they go. A file showing some examples of what is available is below.

# These addresses must exist at your domain.
# By default they are sent to monkeycosm.net, this can be changed.
abuse@example.com        abuse@monkeycosm.net
postmaster@example.com   postmaster@monkeycosm.net
hostmaster@example.com   hostmaster@monkeycosm.net
webmaster@example.com    webmaster@monkeycosm.net

# deliver mail to Alice@example.com to the local user Alice
Alice@example.com   Alice

# send mail to bob@example.com to bob@example.com, which can be
#   at another server.
Bob@example.com   bob@example.net

# send all mail @example.com to the local user username.
#   you can also route this to another domain or mail server.
@example.com       alice

# deny mail to name@example.com with the error message
#   "no such user"
Curtis@example.com   error:nouser no such user

# for references to specific error messages see the following
# http://www.sendmail.com/sm/open_source/docs/configuration_readme/
# http://www.faqs.org/rfcs/rfc821.html
# http://www.faqs.org/rfcs/rfc1893.html 

# For more details see the alias and virtusertable sections of
# http://www.sendmail.com/sm/open_source/docs/configuration_readme/

See also Reading and Sending Email.

DNS

~/example.com/configs/named is the DNS config for your domain. It is a Bind zone config file. Below is an example.

//See http://www.zytrax.com/books/dns/ch8/ as a reference for the format.

@    IN    SOA    ns-d.monkeycosm.net. hostmaster.monkeycosm.net. (
                      2010120101      ; serial,todaysdate+todaysserial#
                      8h              ; refresh
                      1h              ; retry
                      1w              ; expire
                      1d )            ; minimum
                  ;

     NS    ns-d.monkeycosm.net.
     NS    ns-e.monkeycosm.net.
     MX    10 mx-d.monkeycosm.net.

@ 	TXT	"v=spf1 a mx a:monkeycosm.net ~all"

@               A       216.218.230.78
www             A       216.218.230.78

See Also

Website Hosting

http://www.sendmail.com/sm/open_source/docs/configuration_readme/

Comments are closed.