Hello, I noticed that in postfix config, a blank option mean that the default is no more used. that is, for example, alias_maps = *remove* the default (lmdb:/etc/aliases) is there a way (with postconf, for example) to list only such empty line? lines with no option set in main.conf. I don't find this :-( By the way it seems that "postconf -n" do not really display non default values, but values that are written down in the config file, even if they are identical to default values thanks jdd -- http://dodin.org http://valeriedodin.com
Op donderdag 16 december 2021 12:05:51 CET schreef jdd@dodin.org:
Hello,
I noticed that in postfix config, a blank option mean that the default is no more used.
that is, for example,
alias_maps =
*remove* the default (lmdb:/etc/aliases)
is there a way (with postconf, for example) to list only such empty line? lines with no option set in main.conf.
I don't find this :-(
By the way it seems that "postconf -n" do not really display non default values, but values that are written down in the config file, even if they are identical to default values
thanks jdd
The man page gives: -n Show only configuration parameters that have explicit name=value settings in main.cf. Specify -nf to fold long lines for human readability (Postfix 2.9 and later). To show settings that differ from built-in defaults only, use the following bash syntax: comm -23 <(postconf -n) <(postconf -d) Replace "-23" with "-12" to show settings that duplicate built- in defaults. Does this help you? -- fr.gr. member openSUSE Freek de Kruijf
Le 16/12/2021 à 12:19, Freek de Kruijf a écrit :
The man page gives: -n Show only configuration parameters that have explicit name=value settings in main.cf. Specify -nf to fold long lines for human readability (Postfix 2.9 and later). To show settings that differ from built-in defaults only, use the following bash syntax: comm -23 <(postconf -n) <(postconf -d) Replace "-23" with "-12" to show settings that duplicate built- in defaults.
Does this help you?
it do not give what I look for, but it helps. Probably the man page I read on the net where too old, but this made me look at the present postfix version and its 3.5.9-5.9.2 much more recent I will investigate to see if I can adapt to my needs thanks jdd -- http://dodin.org http://valeriedodin.com
jdd@dodin.org wrote:
Hello,
I noticed that in postfix config, a blank option mean that the default is no more used.
that is, for example,
alias_maps =
*remove* the default (lmdb:/etc/aliases)
is there a way (with postconf, for example) to list only such empty line? lines with no option set in main.conf.
I don't find this :-(
You could grep such lines: egrep '^[^# ].*=\s*$' /etc/postfix/main.cf -- Per Jessen, Zürich (4.4°C)
Le 16/12/2021 à 13:06, Per Jessen a écrit :
egrep '^[^# ].*=\s*$' /etc/postfix/main.cf
great, exactly what I needed :-) such syntax if much too hard for me to write, but I can copy/paste :-)) thanks jdd -- http://dodin.org http://valeriedodin.com
participants (3)
-
Freek de Kruijf
-
jdd@dodin.org
-
Per Jessen