Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Serving my own mail using dynamic DNS

Status
Not open for further replies.

d3funct

MIS
Jul 13, 2000
313
US
I have an account with dyndns.org to be my dynamic DNS host for my AT&T Cable Internet account IP (Since AT&T doesn't want to give me a static IP). I want to be able to serve my own mail on my Linux RH 7.3 system, is this possible. How do I go about doing it? Any help or links would be appreciated.

Spasibo Meekness: Uncommon patience in planning a revenge that is worth while.
-- Ambrose Bierce
 
One of the thing's ive noticed with the broadband solutions ive had where they claim they dont offer static IP's is that if you dont have any major downtime, and your MAC address doesnt change, your IP doesnt either. I own 12 different domains and handle mail for them all on my DSL modem, and its actually not that hard, i use zoneedit to manage my domain records and it works out really good. Only time ive had to change IPs locally is when i was being attacked, so i changed the MAC in my router, got a new IP and it took 24 hrs for the new IP to propigate.
 
Well I had the same thought concerning my IP not changing too often (it had been the same for about 6 months), when the other day I noticed my NIC had received a new IP (and my box has been up for 3 months so it had nothing to do with a reboot or any downtime.) Which is why I chose to use the dyndns.org services, all you do is choose a hostname and choose one of their domains, add your IP address to their DNS and then update their system at regular intervals. This ensures that I can get to my box using the hostname lookup even if the IP changes.
But what I want to know is how I set up so that my box receives e-mail sent to it (i.e., me@myhost.dyndns.org), what do I need to change in my sendmail.cf file to get my system to collect e-mail sent to me at my address? Meekness: Uncommon patience in planning a revenge that is worth while.
-- Ambrose Bierce
 
d3funct - When configuring Sendmail, your supposed to edit the *.mc file and run it through the m4 macro processor to generate a new sendmail.cf. Your not supposed to edit the sendmail.cf file directly, but if you just want to get a very basic mail server up and running, then just open sendmail.cf in a text editor (vi) and look for the line that starts with Cw. Change whatever is after the Cw to the name of the domain that you want to host mail for (Cwfoo.org). Do the same for DM (DMfoo.org). Restart the Sendmail service and that should do it. Make sure your MX records from your DNS provider are working okay.


ChrisP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top