On 12/25/2012 09:36 AM, Wietse Venema wrote:
Robert Moskowitz:
I am not finding a tool to edit master.cf similar to 'postconf -e' for
main.cf.
It is easy to over-state the importance of such a tool. Most
master.cf changes involve a one-time append operation for a new
service, followed by a life time of parameter tweaking in main.cf.
Agreed. Nice to have, just not anywhere as important as postconf for
main.cf.
Just that I am trying to maintain a log of what changes I am making. I
can have a file of postconf commands to run as a script for rebuilding
my main.cf. For master.cf, I will just have to have notes of the
changes I made.
Thing is, I am very comfortable with DNS to make my changes via webmin
and back up my zone files to my work system. In fact, one of my
upcoming tasks is a major DNS upgrade (mail comes first for some
reason). So why not with master.cf? I guess because there is a default
master.cf and I want to track the changes *I* have made; zone files are
built from scratch (well a template). Plus I have been building zone
files for almost 20 years.
I am comparing the master.cf the tutorial I am reading to the default
one. The author says to just replace the default with his. Well at some
point since he created it, master.cf has gained the 'error' service. It
pays to be careful and compare before buying :)
To append a new service, use:
cat <<EOF >>$config_directory/master.cf || exit 1
text of new master.cf entry here...
EOF
Sweet! This takes care of 99% of the master.cf changes; I can even just
append 'submission' rather than uncomment the line. I can even use this
to handle that one multiline main.cf entry rather than a too long
postconf command.
Now I just have to complete my research as to why the tutorial adds to
'pickup':
-o content_filter=
-o receive_override_options=no_header_body_checks
More reading.
Early on it I had to make a choice: release Postfix as a "complete"
MTA, or release it as a work-in-progress. You also have a choice:
wait until Postfix is "complete" or use what we have now.
And so far I am using what you had 4 years ago :)
And is it ever 'complete'? I really appreciate having such tools made
available. Thank you.