Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-27-2009, 04:58 PM   #1
Registered: Jan 2009
Posts: 48

Rep: Reputation: 15
what's with the $myhostname and $mydomain on a linux box

I have an acer aspireone linux netbook and I am setting up postfix.

Postfix asks me for $myhostname and $mydomain.

Now, the hostname seems to be fairly straightforward, it's the name of the machine, right? Actually it's in my prompt, and it's localhost.

What has me stumped is $mydomainname. This is a portable computer. I don't host a domain on it. I came across this requiremetn ebfor ein Paul Sheer's RUTE book. Domain name.

I really don't have one to give. Shouldl I choose a fake one? Stick in for example. Or should I leave it blank?
Old 01-27-2009, 05:23 PM   #2
Registered User
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
Hi, and welcome to LQ!

Here is a complete tutorial on configuring Postfix. It is an e-mail server, BTW.

If you are just looking for an e-mail client like Outlook, you might want to try Thunderbird or Evolution instead.

Hope this helps.

Last edited by DragonSlayer48DX; 01-27-2009 at 05:30 PM.
Old 01-28-2009, 09:57 AM   #3
Registered: Jan 2009
Posts: 48

Original Poster
Rep: Reputation: 15
hi dragonslayer48dx,

thanks for answer ... I've dumped postfix in favour of getmail, and I'm getting on OK with it.

However I'm still not sure what domain name to give my aspire one, as the concept doesn't make sense for a portable laptop.

Old 01-28-2009, 10:46 AM   #4
Registered: Jan 2009
Posts: 114

Rep: Reputation: 17
Thanks for the link DragonSlayer.
I believe those are just common schemes the OS uses to identify your machine in case you are on a network.
It is OK, I remmber years ago while trying to setup a windoze server (a PDC) I ran into this problem and of course the Unwritten rule in the case of MS was, to leave it as .local
otherwise it kept bugging me about a my machine's name dot domain name...

in your case I think you should leave it as local or anything you wish, like localhost.local
the $ dollar sign is usually used to point to a string or substitute a value for a the name of the user would be $USER it means to get the value for that string (i think)?!so if you were logged in as Bob ,$USER or $USERNME would return Bob.

so $localhost means whatever you named your computer in Linux (I think). so like if you named it RedHat then $localhost would return RedHat.
Sorry if I am not 100% correct on these things I am trying to learn too and I appreciate other ppl correcting me.

Oh since I think it is important for all of us to be familiar with the script methods here's a link I found which may be useful;
Old 01-28-2009, 10:47 AM   #5
Registered User
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
In what context is the dialog box for domain?

I'm not familiar with Getmail, however, to set up Thunderbird or Evolution you would enter the domain of your mail server- i.e.,, etc.
Old 01-28-2009, 11:07 AM   #6
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,247
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I just make up domain names for my local machines.. like

farslayer.dom, farsplace.dom or noplace.dom notice the ending is .dom instead of com, org, etc.. that way I shouldn't step on a real domain. so basically your domain can be anything you want it to be,,

I would suggest not using, or any other well known used domain..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache: '' doesn't work ('' does) guarriman Linux - Software 2 12-07-2006 05:16 AM
Apache 1.3: -> rolandw Linux - Server 1 11-01-2006 03:27 AM
Accessing WevDav directory on linux box A from linux box B using Ant script. panayoti Linux - Newbie 0 10-08-2006 12:44 AM
forcing to just sneakyimp Linux - Software 4 07-24-2006 03:23 PM
Ping bulzbb Linux - Networking 7 03-16-2004 06:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration