LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

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,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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



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 12:08 AM.

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
Open Source Consulting | Domain Registration