Le 08/01/2013 23:06, Wietse Venema a écrit :
> Patrick Ben Koetter:
> [snip]
>> Should postconf be able/offer to make backup copies before it acts a request
>> out?
> Should it with main.cf? Should we enourage the use of version control?

given that people use different version control systems, I wouldn't make
that part of postfix.

also, I am working on a web UI, where the whole conf would be in a db
(dumped to config files of course!). in which case, the version control
part amounts to a few  columns (who did what when...) and a rollback is
not a lot more than an sql query. 
(I actually can do all that "for me", but I find it hard to support all
the possible configurations that postfix supports).


>>> And finally, a more complicated example:
>>>
>>>     postconf -Me 'text of complete master.cf entry'
>>>
>>>         Replace the specified master.cf service or add a new service.
>>>         Each postconf(1) command-line argument contains the text
>>>     of a complete master.cf entry. The new entry is line-wrapped
>>>     as with "postconf -Mf".
>>>
>>> This command syntax is consistent with existing "postconf -e"
>>> commands, where each postconf(1) command-line argument contains the
>>> text of a complete main.cf entry.
>> In postconf(1) you wrote "-e   Edit the main.cf configuration file, and 
>> update
>> parameter settings ..."
> The text is too vague and needs to be updated.  What happens in
> reality is "replace or add main.cf entry, using the complete entry
> given on the postconf command line".
>
> If there is a command to implement THAT FUNCTION for master.cf (add
> or replace entry, using the complete entry given on the postconf
> command line) then it should use the same -e option.
>
>> I haven't thought this through - you probably have: Wouldn't it be more
>> consistent to use only 'e' (as already for main.cf) instead of 'u' and 'e' as
>> proposed for master.cf?
> "u" replaces a field in master.cf. It has no main.cf equivalent
> (replace a word in the middle of a line?) therefore should not use
> an option letter that is used for main.cf.
>
>       Wietse

Reply via email to