Praedor Tempus wrote:
> 
> I installed postfix last night and have since switched my smtp server
> to local via postfix.
> 
> This gets me to hostname, which has cornfused me for a while which may
> play some role here in running a real-life mailserver.
> 
> I have never really changed my hostname from the default
> localhost.localdomain because when I've tried, it plays holy hell with
> my connectivity.  As it is, my local dhcp server assigns me a hostname
> (for instance right now: d152-154.hmbg.utah.edu).  If I want to run a
> mailserver from my box through a dynamic IP, do I merely place whatever
> name I desire (looking at dydns.com I see I the different options if I
> pay) into the main.cf file for postfix and not mess with my actual
> hosts file?  Or do I add entries to hosts, network.opts, and main.cf so
> that I can have <whatever I desire>.dydns.com (for instance)?
> 
> What are the rules for hostname that would allow me to name my box
> whatever without breaking my internet connectivity?  Do I have to setup
> masquerading?  Or is it simpler than that?
> 
> praedor
> 

Praedor,

I think you are on the right path with postfix. There are a few short
cuts out there for mail servers with dhcp assigned ip addresses, i.e.
dydns.com but setting up the real thing is the way to go. I have a
similar situation, and here is my solution (of course, there are many
methods for doing what you want). Run your own name server, and make a
MX resource record for your mail server. Change localhost to your FQDN,
and enter that in the postfix config file (main.cf). After you get your
dhcp pump, giving ip, nameservers, and mask info, you will need to edit
"/etc/resolv.conf" and add your dns server as a primary nameserver
(127.0.0.1 is the best entry). Also add "search your.domain.com" as the
first domain to search. You can keep the other values written to the
resolv.conf file by your ISP dhcp server. Just make sure your stuff is
first. I am using two nics om my mail server so i do not need to create
a "cname" record in my dns zone files. If you are only using one nic,
you might need to create a alias (cname) for your long host name (the
one given to you by your isp) back to the hostname you want your mail
delivered to.

The nameserver is key here. Do not rely on your isp to keep records
current. Play with this methodology, something will click for you. (you
do own your own domain name, right?). 

Clear as mud, eh?

craig woods

-- 
  2:20pm  up  3:26,  1 user,  load average: 0.78, 0.52, 0.23

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to