LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-09-2008, 07:19 PM   #1
swamprat
Member
 
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


Hello.

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'

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

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Quotation from /etc/postfix/main.cf
Quote:
# 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-09-2008, 11:27 PM   #3
billymayday
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 main.cf assigns the string server1.domain.tld to variable myhostname.

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


Reply


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 04:35 PM
postfix question lodder Debian 1 08-07-2006 09:11 AM
Postfix Question redice Debian 3 09-06-2005 11:15 AM
Postfix Question timnew Linux - Newbie 14 05-11-2003 09:18 AM
Postfix Question capkapak Linux - Software 3 01-20-2003 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 PM.

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