Hello, In an other thread I asked to see what postfix options are made empty/nil by adding in the file the option name followed by only " = " In fact there are more than I expected. Is it better to let the file as is, or to comment out these lines to get back postfix default? for example I notice "relayhost = " several options are listed in main.cf, I'm unsure to what is done if the option is not listed in the file practically, I didn't find a way (without breaking all the install) to list *default* options (that is what is done if the option is written nowhere :-() comm -23 <(postconf -n) <(postconf -d) (settings that *differ* from built-in defaults) gives relayhost = but, if I remove (rename) main.cf and stop postfix, # postconf -n | grep relayh postconf: fatal: open /etc/postfix/main.cf: No such file or directory that's ok, but: postconf man page: -d Print main.cf default parameter settings instead of actual settings # postconf -d | grep relayh address_verify_relayhost = $relayhost(...) relayhost = (...) so "relayhost =" should be the default, is the comm line wrong?? thanks jdd (confused) -- http://dodin.org http://valeriedodin.com
jdd@dodin.org wrote:
Hello,
In an other thread I asked to see what postfix options are made empty/nil by adding in the file the option name followed by only " = "
In fact there are more than I expected. Is it better to let the file as is, or to comment out these lines to get back postfix default?
for example I notice "relayhost = " several options are listed in main.cf, I'm unsure to what is done if the option is not listed in the file
If there is no relayhost specified, outgoing mails will be delivered directly according their destination, i.e. the recipient domain. -- Per Jessen, Zürich (3.8°C)
Le 16/12/2021 à 14:56, Per Jessen a écrit :
jdd@dodin.org wrote:
Hello,
In an other thread I asked to see what postfix options are made empty/nil by adding in the file the option name followed by only " = "
In fact there are more than I expected. Is it better to let the file as is, or to comment out these lines to get back postfix default?
for example I notice "relayhost = " several options are listed in main.cf, I'm unsure to what is done if the option is not listed in the file
If there is no relayhost specified, outgoing mails will be delivered directly according their destination, i.e. the recipient domain.
yes, I did only give this option for example :-). What I was meaning is that it's not obvious to know what is the option when nothing is written the "comm" example says the option is *not* default, when postconf -d says the opposite :-( thanks jdd -- http://dodin.org http://valeriedodin.com
On 16/12/2021 14.29, jdd@dodin.org wrote:
gives
relayhost =
The thing is, you really want default = none for this particular setting. You want to wipe out any default if any for relayhost, unless you do have a relayhost and only then you write it there. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.2 (Legolas))
Le 16/12/2021 à 15:20, Carlos E. R. a écrit :
On 16/12/2021 14.29, jdd@dodin.org wrote:
gives
relayhost =
The thing is, you really want default = none for this particular setting. You want to wipe out any default if any for relayhost, unless you do have a relayhost and only then you write it there.
you are right. My present goal is to sort out the working, when several commands give opposite result. It's easy to follow on basic setup :-) thanks jdd -- http://dodin.org http://valeriedodin.com
Op donderdag 16 december 2021 14:29:35 CET schreef jdd@dodin.org:
Hello,
In an other thread I asked to see what postfix options are made empty/nil by adding in the file the option name followed by only " = "
In fact there are more than I expected. Is it better to let the file as is, or to comment out these lines to get back postfix default?
for example I notice "relayhost = "
several options are listed in main.cf, I'm unsure to what is done if the option is not listed in the file
practically, I didn't find a way (without breaking all the install) to list *default* options (that is what is done if the option is written nowhere :-()
comm -23 <(postconf -n) <(postconf -d)
(settings that *differ* from built-in defaults)
gives
relayhost =
but, if I remove (rename) main.cf and stop postfix,
# postconf -n | grep relayh postconf: fatal: open /etc/postfix/main.cf: No such file or directory
that's ok, but:
postconf man page: -d Print main.cf default parameter settings instead of actual settings
# postconf -d | grep relayh address_verify_relayhost = $relayhost(...) relayhost = (...)
so "relayhost =" should be the default, is the comm line wrong??
thanks jdd (confused)
The only way to find out what all these parameters do is to read the postfix documentation, almost in full. The problem with the documentation is that it is written by the expert who really knows what it all means, which is quite different from what a user needs to know to accomplish its goal. I assume you know more or less what your goal is. So we may be able to help you when you write down that goal, although it might change at a later time. -- fr.gr. member openSUSE Freek de Kruijf
Le 16/12/2021 à 18:53, Freek de Kruijf a écrit :
The problem with the documentation is that it is written by the expert who really knows what it all means, which is quite different from what a user needs to know to accomplish its goal.
I assume you know more or less what your goal is. So we may be able to help you when you write down that goal, although it might change at a later time.
you are perfectly right, I read doc for a week now :-). I started with INN, then had to go to postfix. At some point I fear my gosub routine become a mere goto :-)) I try to write down my config: http://www.dodin.org/wiki/pmwiki.php?n=Doc.ConfigurerINN-2021 http://www.dodin.org/wiki/pmwiki.php?n=Doc.PostfixConfigure but changes from version to version are difficult to follow, specially when there are several years in between :-), that's why I try to write test commands. thanks for your help :-) jdd -- http://dodin.org http://valeriedodin.com
participants (4)
-
Carlos E. R.
-
Freek de Kruijf
-
jdd@dodin.org
-
Per Jessen