Fully Qualified Domain Names?
Ok, so I am trying to setup postfix to work with 2 or more boxes. I am a little confused on what to put where though...
I use one of those cool free Domain Name services that work with Dynamic IP's. It's the no-ip.com one. My Domain name (and website if you are interested) is masterc.no-ip.org
Ok, so with that said...
What do I set on each box for "hostname"? I have named one box "masterc" and the other "cooler" so far (in /etc/hosts). So in my main.cf file do I set:
? If so, then what? How would I setup "masterc" to get mail from "cooler"?
Ok, so assuming I do set that as "cooler" (Cooler will be running the postfix server), then in $mydomain=
do I put:
Also, does "masterc.no-ip.org" count as a FQDN even though I don't actually own "no-ip.org"? I am thinking not since the "masterc." is the indication of a virtual name, but it's resolvable to an actual IP so I am lost (obviously ;) ).
Any info would be greatly appreciated.
My network looks as follows:
I might be wrong on this since I have dial-up as the only opton to connect to the internet.
Your ISP assigns only one IP adddress to you. That is the address of the router. This is the address that no-ip.org forwards all web/email requests to. So your router needs to pass those requests to the right box on your local network.
Your hostnames can be what you want as long as it is behind the router. But if you wanted you could make the two PC names cooler.masterc.no-ip.org and masterC.masterc.no-ip.org. Since you only have authority on the masterC part of the masterC.no-ip.og. You are accually a sub-domain of no-ip.org.
I think that you need to put the server on the other side of the router. Then the severs DSL connection would have the hostname, masterc.no-ip.org. Then run a proxy such as squid to connect the rest on the network to the internet.
I use to work with a guy that has that set up running FreBSD. If you go to www.dweimer.org. Then go to the SWBell DSL Setup link towards the top of the page. He did a little how to.
Hope I did not confuse you. Also let me know how you got it to work.
Wow, first off, thank you for the reply!
That sure sounds A LOT more complicated than I had hoped ;) But you definitely clarified some things for me. The 1 thing that I see that I seem to not have mentioned is that my IP is dynamic. It changes, and that's why I use one of the Dynamic Free DNS sites (no-ip.com has a LInux client that sends my new IP back to their servers when it changes, and then they update their DNS records accordingly).
I'll get to work on all that, and will let you know how things go. Thanks again for the response.
I was thinging the other night while trying to go to sleep (thanks).
I would think that your router would pass the web request on to your server. So your servers name should be cooler.masterC.no-ip.com. Then everything should work great. Since when a web request would be sent to no-ip.com, them they would send it to masterC and the router would send it to cooler.
You would need DNS set up and your DNS server should forward request to your your ISP's DNS servers. You will need to set an MX record for you mail server.
I think this might work, that way you could keep your router.
I cannot speak for postfix, but I run exim with a no-ip address and it works fine. I don't know how similar the conf files are, but I have this line in mine:
primary_hostname = badcomputer.no-ip.com
Can't help with your network, but I can say that no-ip addresses work perfect as FQDN's
Thank you for the follow up tangle, and for your addition bulliver. I think I've got it all setup and working now. Everything does seem to be working all right. If I have any more issues I'll be sure to post back :)
Can you tell me what you did to get it working? Thanks
:D Sorry about that, I actually meant to, I guess I just got side tracked :)
(also, I'm going to be posting a follow up to this about a seperate/related problem, so I really need this info in this thread, thanks for reminding me ;) )
In the main.cf for postfix it documents that $myhostname is your FQDN, which if you use a no-ip type service is:
my FQDN is:
masterc.no-ip.org which goes in my main.cf as:
Futher down it documents a $mydomain which it says is your FQDN without the $myhostname Since I don't own the no-ip.org though, I simply left this commented out. Now to email back and forth from box to box I do have to use this format:
user@masterc (depending on which machine is recieving the message) and from that I guess it sorts it out (probably from my entries in /etc/hosts).
I'm not home right now, so if I've left anything out, please ask. I'll be glad to clarify.
|All times are GMT -5. The time now is 06:26 AM.|