Help answer threads with 0 replies.
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 05-09-2008, 08:19 PM   #1
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 473

Rep: Reputation: 34
Postfix Question


In the following command where it says .$mydomain what does this literally mean?

Does it mean to use this spelling exactly as is or does this mean to insert your own domain name such as XYZ.

postconf -e 'myhostname = server1.$mydomain'

Old 05-09-2008, 09:29 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,903

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quotation from /etc/postfix/
# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#mydomain = domain.tld
You uncomment this line, then assign a value to mydomain. Later, when the value if recalled, it is addressed as $mydomain.
Old 05-10-2008, 12:27 AM   #3
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
To give an example, if, as bigrigdriver suggests, you had a line that said

mydomain = domain.tld

Then the line

myhostname = server1.$mydomain

in assigns the string server1.domain.tld to variable myhostname.

Simply put, mydomain is used throughout, and doing things this way means you only have to set your domain name in one spot - the original definition of mydomain.


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
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 05:35 PM
postfix question lodder Debian 1 08-07-2006 10:11 AM
Postfix Question redice Debian 3 09-06-2005 12:15 PM
Postfix Question timnew Linux - Newbie 14 05-11-2003 10:18 AM
Postfix Question capkapak Linux - Software 3 01-20-2003 03:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:49 AM.

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