LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-19-2015, 08:03 AM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Postfix configuration: hardcoded paths in directives


Hi,

In its default configuration (/etc/postfix/main.cf), Postfix has a couple of weirdnesses like this:

Code:
html_directory = /usr/doc/postfix-2.11.5/html
...
readme_directory = /usr/doc/postfix-2.11.5/README_FILES
Is there some way to write this differently (with a variable) or to avoid it completely? It's because everytime I upgrade Postfix, I tend to forget these two and then I wonder why it refuses stubbornly to start again. Besides, hardcoding something like this is really weird.

Any suggestions?
 
Old 05-19-2015, 08:21 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Did not find anything about self defined variables but would say they are possible. Why don't you just leave out two config options? Or make a symlink to the new version directory and have the config kinda like:

Quote:
html_directory = /usr/doc/postfix-latest/html
But this way you have to adjust the symlink on every new install.
 
Old 05-20-2015, 03:50 AM   #3
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 535

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally Posted by kikinovak View Post

Code:
html_directory = /usr/doc/postfix-2.11.5/html
...
readme_directory = /usr/doc/postfix-2.11.5/README_FILES
Is there some way to write this differently (with a variable) or to avoid it completely?
You can set
Code:
html_directory = no
or just remove it completly from /etc/postfix/main.cf.
After postfix reload
Code:
postconf | grep html_directory
should output "html_directory = no"
 
1 members found this post helpful.
Old 05-20-2015, 05:09 AM   #4
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by franzen View Post
You can set
Code:
html_directory = no
or just remove it completly from /etc/postfix/main.cf.
After postfix reload
Code:
postconf | grep html_directory
should output "html_directory = no"
Thanks! And can I do something similar with readme_directory?
 
Old 05-20-2015, 05:19 AM   #5
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 535

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally Posted by kikinovak View Post
Thanks! And can I do something similar with readme_directory?
Yes, the same, "readme_directory = no" or omit it entirely
 
1 members found this post helpful.
Old 05-20-2015, 07:38 PM   #6
jumperboy
LQ Newbie
 
Registered: Jan 2015
Distribution: Slackware
Posts: 1

Rep: Reputation: Disabled
You can define them when you run make install:

Code:
make install html_directory=/usr/local/doc/postfix/html manpage_directory=/usr/local/man readme_directory=/usr/local/doc/postfix
Then they'll always be in the same place.
 
1 members found this post helpful.
  


Reply

Tags
postfix



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
multiple paths in php configuration FliesLikeABrick Programming 2 02-20-2006 02:54 PM
Apache 1.3 configuration directives calissal Linux - Software 0 09-08-2003 01:47 PM
Apache 1.3 Configuration Directives Found calissal Linux - General 4 09-08-2003 08:47 AM
Automatically resolving WINDOWS paths to pre-configured Linux paths gazzy Linux - General 1 09-05-2003 10:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:27 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
Open Source Consulting | Domain Registration