On 9/27/2014 7:48 AM, wie...@porcupine.org (Wietse Venema)
<wie...@porcupine.org (Wietse Venema)> wrote:
Use "postconf -d", not "postconf -n". -n is for settings in the
configuration file, -d is for the built-in settings which include
the version, release date, and so on.
Thanks Wietse...
Please understand that what follows is just an opinion from a simple
user with minimal coding skills, but who has been on this list for a
while and seen lots of questions on this list that resulted in a lot of
unnecessary back and forth that could often (but admittedly not always)
eliminate much of this back and forth, and probably even less questions
to the list overall.
To me - and again, this is just an opinion - it would simply make things
easier all around if there was one simple command that outputs the basic
version info and location of config files being used, as well as both
main.cf (equiv of postconf -n) and master.cf (equiv of postconf -Mf) output.
So, something like (just an example)...
# posthelp (no arguments needed) would result in the following output:
# 2.10.3
# /etc/postfix/main.cf
alias_maps = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases
... (the rest of the postconf -n output)
#
# /etc/postfix/master.cf
smtp inet n - n - - smtpd
... (the rest of the postconf -Mf output)
It just seems to me that this would make basic troubleshooting easier
for normal users, even before coming to the list for help - ie, it would
make it very easy for someone to spot that they are in fact editing the
wrong file, or not running the version they think they are running - and
would result in less questions to the list, and for those who do ask
questions here, less back and forth follow up questions, like 'what
version are you using', and 'are you sure you're editing the right main.cf'.
Of course it won't help someone who doesn't use it, or even refuses (as
inexplicably happened recently) to use the commands and/or post it or
relevant logs when repeatedly asked to do so.
Anyway, again, this is just an opinion from someone who is pretty much
in awe of the skills of people like you (and yes I'm totally serious).
Incidentally, if I could code this command myself and offer it for
contribution, believe me, I would. It would even probably be easy to
whack up a bash script (I may even try that myself, just for fun)...