View Single Post
  #7   (View Single Post)  
Old 15th May 2008
erehwon erehwon is offline
Port Guard
 
Join Date: May 2008
Location: Cascadia
Posts: 34
Default

Quote:
Originally Posted by erehwon View Post
Trying

Code:
mail -s "test" me@external-email.com
failed because my internal domain (on a LAN) was used as the identifying mail address, as machinename.LAN

I'm a bit confused by reading the man pages for hostname, setdomainname, myname, and so on, but I need to preserve DNS / DHCP for my machine, since behind a router.

Ah, networking...
I *think* this will solve it:

All you have to do is to edit as root the file /etc/hosts and include a fictitious FQDN for your machine. For example, the machine GX300 with IP number 192.168.0.7, could have as the fictitious FQDN GX300.test.net, and be entered in the HOSTS file as follows:

Code:
192.168.0.7   GX300  GX300.test.net
Then set the host file to query files before dns.
Reply With Quote