Hi,

recently I noticed this warning about "overriding earlier entry". At
first I did not pay it much attention, but it became enough annoying
to look at it recently.

I am sending this email because I think that we need to do something
about it, and hope that this will help communicate valid ideas around.

Situation is a bit quirky, because of the following facts:
1. postfix manual clearly states: "When the same parameter is defined
multiple times, only the last instance is remembered."
2. Postfix uses almost no command line arguments
3. There is no option to include config files and/or directories we
have to work around that

How do we work around it?
As having and maintaining multiple copies of main.cf is cumbersome,
the pragmatic solution was to have one common configuration template
with sensible details and then -site and -local changes, for whatever
particular site needed adjusted.
When postfix is about to start, a startup script cats those files in
correct order into single main.cf file and proceeds to start postfix
itself.

Looking at the code it seems that these warnings are emited during
parse-time, before configuration is evaluated and used. Which means
there is currently no way to introduce another configuration flag
which would suppress this warning. (I may very well be wrong on this
point.) Postfix also uses almost no arguments when starting up, only
-c, -D and -v.

Here is my dilemma:
- there is no way to disable this behaviour by config directive in main.cf
- putting this to command line is not fitting at all (this is a nifty
feature compared to i.e. -c flag)
- I don't think I will be able to convince anyone (especially Vietse:)
about changing this from msg_warn to msg_debug
- I would still like those messages to go away without patching
postfix (which is what I currently do)

Does anyone else think this "issue" needs attention?

Best regards,
b.

Reply via email to