Re: Running own mail server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You need to setup "name servers" you can do that on your box, and then
in your domain account you can set the name servers as
ns.yourdomain.com, typically you need two IP addresses for two name
servers, however if you do not want to do that you can get a secondary
name server from one of the free dns hosting services, like
http://www.xname.org/ and there are others you can google them but the
names excape me.

THIS SHOULD NOT BE TAKEN AS GOSPEL, and there are others on here MUCH
MUCH better at this then I am, but this should get you started.  You
will need BIND/DNS server installed on the box.


/etc/named
zone "yourdomain.com" {
       type master;
       file "/var/named/yourdomain.com.named";
       allow-update { none; };
};


/var/named/yourdomain.com.named
$TTL 86400
@       IN      SOA     ns.yourdomain.com. youradminemail.yourdomain.com. (
                       2005112208        ; serial, todays date +
todays serial #
                       10800       ; refresh, seconds
                       3600         ; retry, seconds
                       604800       ; expire, seconds
                       86400 )         ; minimum, seconds
               NS      ns.yourdomain.com.
               NS      ns1.yourdomain.com.
               MX      10 mail.yourdomain.com.    ; Primary Mail Exchanger
               MX      20 mail2.yourdomain.com.    ; Secondary Mail Exchanger

yourdomain.com.      IN      A       216.75.15.233   ; Nohost

mail    IN      A       xxx.xxx.xxx.xxx
mail2     IN      A       xxx.xxx.xxx.xxx
ns IN     A       xxx.xxx.xxx.xxx
ns2 IN A yyy.yyy.yyy.yyy
;end of the file

/var/named/xxx.xxx.xxx.in-addr.arpa
$ttl 38400
xxx.xxx.xxx.in-addr.arpa. IN      SOA     ns.yourdomain.com.
youradminemail.yourdomain.com. (
                       1104865919
                       10800
                       3600
                       604800
                       38400 )
xxx.xxx.xxx.in-addr.arpa. IN      NS      ns.yourdomain.com.
xxx.xxx.xxx.in-addr.arpa. IN      NS      ns2.yourdomain.com.
xxx.xxx.xxx.in-addr.arpa.      IN      PTR     ns.yourdomain.com.
xxx.xxx.xxx.in-addr.arpa.      IN      PTR     ns2.yourdomain.com.
xxx.xxx.xxx.in-addr.arpa.      IN      PTR     mail.yourdomain.com.
xxx.xxx.xxx.in-addr.arpa.      IN      PTR     mail2.yourdomain.com.


/var/named/xxx.xxx.xxx.in-addr.arpa
$TTL 86400
@       IN      SOA     ns.yourdomain.com. youradminemail.yourdomain.com. (
                       44      ; serial, todays date + todays serial #
                       10800   ; refresh, seconds
                       3600            ; retry, seconds
                       604800  ; expire, seconds
                       86400 )         ; minimum, seconds
               NS      ns.yourdomain.com.
               NS      ns2.yourdomain.com.
3       in      ptr     yourdomain.com.

the dots after the domain name is not a mistake.





On 11/3/06, Edward Dekkers <edward@xxxxxxxxxxxxxxxxxxxx> wrote:
Hey there guys,

for years I've run fetchmail to grab mail from my isp in multidrop mode.

Now, my area is finally ADSL enabled. The ISP I'm going with gives out
free static IP addresses. I've also bought a domain name which is
currently parked.

I'm pretty sure I can get the sendmail part sorted, but DNS has me
confused. At the domain name site, I can put in two name server fields.

Originally I thought I could just run DNS here on my Linux box. But
apparently from what I understand of the reading I'm doing I'd need two
servers to do this.

Other readings I'm doing are telling me to use my ISP's DNS servers and
have them set up the records for me.

At this stage I do not know whether that will cost money or not.

Some whispers around the traps tell me there's free DNS hosting services
all over the net.

All in all I'm very confused.

Could someone tell me what step 1 would be to get this going?

Thanks
Ed.


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list




--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux