[opensuse] postfix config on leap422 ??
I was preparing a new postfix instance, changing a few things in main.cf, when I was done, I did "systemctl start postfix", and all of my changes were overwritten and a bunch of crud added. What's going on?? Some sort of init script? -- Per Jessen, Zürich (16.0°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-04-04 16:38, Per Jessen wrote:
I was preparing a new postfix instance, changing a few things in main.cf, when I was done, I did "systemctl start postfix", and all of my changes were overwritten and a bunch of crud added. What's going on?? Some sort of init script?
I haven't seen that. It looks like an automatic tool to transfer changes made with YaST to the real config. I normally always start yast config, with defaults. then never use it again. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
On 04/04/2017 12:24 PM, Carlos E. R. wrote:
I haven't seen that.
It looks like an automatic tool to transfer changes made with YaST to the real config. I normally always start yast config, with defaults. then never use it again.
+1 After install, yast places all custom settings at the bottom of main.cf. After install, I never use yast again, just 'sudo vim /etc/postfix/main.cf' -- David C. Rankin, J.D.,P.E.
David C. Rankin wrote:
On 04/04/2017 12:24 PM, Carlos E. R. wrote:
I haven't seen that.
It looks like an automatic tool to transfer changes made with YaST to the real config. I normally always start yast config, with defaults. then never use it again.
+1
After install, yast places all custom settings at the bottom of main.cf. After install, I never use yast again, just 'sudo vim /etc/postfix/main.cf'
I never use YaST for postfix, I can do most of the config in my sleep :-) What I did yesterday was - edit main.cf, delete all the crud about tls, sasl and mysql at the bottom, add what I needed (aliases, virtual stuff), then I started postfix (with systemctl). That resulted in my changes being thrown out and a bunch of lines with sasl and tls being added. Weird. -- Per Jessen, Zürich (8.1°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/05/2017 12:42 AM, Per Jessen wrote:
I never use YaST for postfix, I can do most of the config in my sleep :-) What I did yesterday was - edit main.cf, delete all the crud about tls, sasl and mysql at the bottom, add what I needed (aliases, virtual stuff), then I started postfix (with systemctl). That resulted in my changes being thrown out and a bunch of lines with sasl and tls being added. Weird.
Per, That is weird. I could imagine there being something in /etc/sysconfig related to the postfix config that may scan the current main.cf and (then think for you) and insure the postfix config, at minimum, has those parameter in the sysconfig setup. That will take some digging... -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
David C. Rankin wrote:
On 04/05/2017 12:42 AM, Per Jessen wrote:
I never use YaST for postfix, I can do most of the config in my sleep :-) What I did yesterday was - edit main.cf, delete all the crud about tls, sasl and mysql at the bottom, add what I needed (aliases, virtual stuff), then I started postfix (with systemctl). That resulted in my changes being thrown out and a bunch of lines with sasl and tls being added. Weird.
Per,
That is weird. I could imagine there being something in /etc/sysconfig related to the postfix config that may scan the current main.cf and (then think for you) and insure the postfix config, at minimum, has those parameter in the sysconfig setup. That will take some digging...
Yeah. It's not so important, I was just annoyed my changes got thrown out :-) -- Per Jessen, Zürich (8.6°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 05/04/2017 à 08:54, Per Jessen a écrit :
Yeah. It's not so important, I was just annoyed my changes got thrown out :-)
do you notice any main.cf* other file? like main.cf.rpmnew but if this confirms it could be worth a bug report, the usual openSUSE way being not to touch any manually changed file jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 05/04/2017 à 08:54, Per Jessen a écrit :
Yeah. It's not so important, I was just annoyed my changes got thrown out :-)
do you notice any main.cf* other file?
like main.cf.rpmnew
Yes, I think there is one like that. That must have been created at the time of install, not when I started postfix?
but if this confirms it could be worth a bug report, the usual openSUSE way being not to touch any manually changed file
Yes. I'll have to try it on another system, see if it is reproducable. -- Per Jessen, Zürich (9.0°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 05/04/2017 à 08:54, Per Jessen a écrit :
Yeah. It's not so important, I was just annoyed my changes got thrown out :-)
do you notice any main.cf* other file?
like main.cf.rpmnew
There are two: /etc/postfix/main.cf /etc/postfix/main.cf.default
but if this confirms it could be worth a bug report, the usual openSUSE way being not to touch any manually changed file
I have just repeated it - new Leap422 installation: # rpm -q openslp exim postfix package openslp is not installed package exim is not installed package postfix is not installed # zypper in postfix syslog-ng Then I edited /etc/postfix/main.cf, deleted all the stuff following "smtpd_recipient_restrictions" (sasl, tls and mysql stuff), added this at the end of main.cf : configdir=/etc/postfix/ alias_maps = hash:$configdir/mailman-aliases virtual_alias_maps = pcre:$configdir/mailman-regexp virtual_alias_domains = hash:$configdir/mailman-domains Then I tried starting postfix with "systemctl start postfix", which fails as openslp is not installed (bug#958329,882442,1032454). Nonetheless, my main.cf was now changed: configdir=/etc/postfix/ alias_maps = hash:/etc/aliases virtual_alias_domains = hash:/etc/postfix/virtual smtp_sasl_auth_enable = no smtp_sasl_security_options = smtp_sasl_password_maps = smtpd_sasl_auth_enable = no smtpd_use_tls = no smtpd_tls_CAfile = smtpd_tls_CApath = smtpd_tls_cert_file = smtpd_tls_key_file = relay_clientcerts = smtpd_tls_ask_ccert = no smtpd_tls_received_header = no smtp_use_tls = no smtp_enforce_tls = no smtp_tls_CAfile = smtp_tls_CApath = smtp_tls_cert_file = smtp_tls_key_file = smtp_tls_session_cache_database = My guess is that this is done by "ExecStartPre=/etc/postfix/system/config_postfix". Maybe that script should be made to check if main.cf has been changed after installation and then leave it alone. -- Per Jessen, Zürich (10.9°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
I have just repeated it - new Leap422 installation:
See https://bugzilla.opensuse.org/show_bug.cgi?id=1032478 -- Per Jessen, Zürich (11.1°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op woensdag 5 april 2017 11:28:40 CEST schreef Per Jessen:
jdd wrote:
Le 05/04/2017 à 08:54, Per Jessen a écrit :
Yeah. It's not so important, I was just annoyed my changes got thrown out :-)
do you notice any main.cf* other file?
like main.cf.rpmnew
There are two:
/etc/postfix/main.cf /etc/postfix/main.cf.default
but if this confirms it could be worth a bug report, the usual openSUSE way being not to touch any manually changed file
I have just repeated it - new Leap422 installation:
# rpm -q openslp exim postfix package openslp is not installed package exim is not installed package postfix is not installed
# zypper in postfix syslog-ng
Then I edited /etc/postfix/main.cf, deleted all the stuff following "smtpd_recipient_restrictions" (sasl, tls and mysql stuff), added this at the end of main.cf :
configdir=/etc/postfix/ alias_maps = hash:$configdir/mailman-aliases virtual_alias_maps = pcre:$configdir/mailman-regexp virtual_alias_domains = hash:$configdir/mailman-domains
Then I tried starting postfix with "systemctl start postfix", which fails as openslp is not installed (bug#958329,882442,1032454).
Nonetheless, my main.cf was now changed:
configdir=/etc/postfix/ alias_maps = hash:/etc/aliases virtual_alias_domains = hash:/etc/postfix/virtual smtp_sasl_auth_enable = no smtp_sasl_security_options = smtp_sasl_password_maps = smtpd_sasl_auth_enable = no smtpd_use_tls = no smtpd_tls_CAfile = smtpd_tls_CApath = smtpd_tls_cert_file = smtpd_tls_key_file = relay_clientcerts = smtpd_tls_ask_ccert = no smtpd_tls_received_header = no smtp_use_tls = no smtp_enforce_tls = no smtp_tls_CAfile = smtp_tls_CApath = smtp_tls_cert_file = smtp_tls_key_file = smtp_tls_session_cache_database =
My guess is that this is done by "ExecStartPre=/etc/postfix/system/config_postfix". Maybe that script should be made to check if main.cf has been changed after installation and then leave it alone.
These are just the defaults, so what harm does it do? I assume that if any of the added lines are present these are not replaced by these defaults. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Freek de Kruijf wrote:
Op woensdag 5 april 2017 11:28:40 CEST schreef Per Jessen:
jdd wrote:
Le 05/04/2017 à 08:54, Per Jessen a écrit :
Yeah. It's not so important, I was just annoyed my changes got thrown out :-)
do you notice any main.cf* other file?
like main.cf.rpmnew
There are two:
/etc/postfix/main.cf /etc/postfix/main.cf.default
but if this confirms it could be worth a bug report, the usual openSUSE way being not to touch any manually changed file
I have just repeated it - new Leap422 installation:
# rpm -q openslp exim postfix package openslp is not installed package exim is not installed package postfix is not installed
# zypper in postfix syslog-ng
Then I edited /etc/postfix/main.cf, deleted all the stuff following "smtpd_recipient_restrictions" (sasl, tls and mysql stuff), added this at the end of main.cf :
configdir=/etc/postfix/ alias_maps = hash:$configdir/mailman-aliases virtual_alias_maps = pcre:$configdir/mailman-regexp virtual_alias_domains = hash:$configdir/mailman-domains
Then I tried starting postfix with "systemctl start postfix", which fails as openslp is not installed (bug#958329,882442,1032454).
Nonetheless, my main.cf was now changed:
configdir=/etc/postfix/ alias_maps = hash:/etc/aliases virtual_alias_domains = hash:/etc/postfix/virtual smtp_sasl_auth_enable = no smtp_sasl_security_options = smtp_sasl_password_maps = smtpd_sasl_auth_enable = no smtpd_use_tls = no smtpd_tls_CAfile = smtpd_tls_CApath = smtpd_tls_cert_file = smtpd_tls_key_file = relay_clientcerts = smtpd_tls_ask_ccert = no smtpd_tls_received_header = no smtp_use_tls = no smtp_enforce_tls = no smtp_tls_CAfile = smtp_tls_CApath = smtp_tls_cert_file = smtp_tls_key_file = smtp_tls_session_cache_database =
My guess is that this is done by "ExecStartPre=/etc/postfix/system/config_postfix". Maybe that script should be made to check if main.cf has been changed after installation and then leave it alone.
These are just the defaults, so what harm does it do?
Adding them overwrote my new config, deleted 3 lines. -- Per Jessen, Zürich (11.5°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen [05.04.2017 07:42]:
David C. Rankin wrote:
I never use YaST for postfix, I can do most of the config in my sleep :-) What I did yesterday was - edit main.cf, delete all the crud about tls, sasl and mysql at the bottom, add what I needed (aliases, virtual stuff), then I started postfix (with systemctl). That resulted in my changes being thrown out and a bunch of lines with sasl and tls being added. Weird.
Try to set MAIL_CREATE_CONFIG="no" in /etc/sysconfig/mail :) It might be outdated, since the file speaks about SuSEconfig, but it may still work. Werner -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2017-04-05 a las 12:08 +0200, Werner Flamme escribió:
Per Jessen [05.04.2017 07:42]:
David C. Rankin wrote: ... Try to set MAIL_CREATE_CONFIG="no" in /etc/sysconfig/mail :)
It might be outdated, since the file speaks about SuSEconfig, but it may still work.
I have it to "no" in this machine, but I don't remember if I did that myself. This system has been upgraded from years ago. O another system that was freshly installed, it is set to yes. I do not observe there what Per describes, but I did use YaST to set it up initially, just once. - -- Cheers Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAljkxxgACgkQja8UbcUWM1x1kgD+MpSBHYehDIO4RrEkzwboIqNu LZozTWgoArsbenmu37cA/jEiuouYL1uFzQee9u0WJnckqfeQ8fsdhm2CY4LtF1fB =LfJX -----END PGP SIGNATURE-----
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
El 2017-04-05 a las 12:08 +0200, Werner Flamme escribió:
Per Jessen [05.04.2017 07:42]:
David C. Rankin wrote: ... Try to set MAIL_CREATE_CONFIG="no" in /etc/sysconfig/mail :)
It might be outdated, since the file speaks about SuSEconfig, but it may still work.
I have it to "no" in this machine, but I don't remember if I did that myself. This system has been upgraded from years ago.
The settings is still present in leap422 and it is set to "yes". There is also /etc/sysconfig/postfix with a gazillion settings. -- Per Jessen, Zürich (11.5°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 05/04/2017 à 12:44, Per Jessen a écrit :
There is also /etc/sysconfig/postfix with a gazillion settings.
I mostly use postfix copying the main.cf file from install to install since a long time, and the last line win in the file, so the position is important jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2017-04-05 a las 12:44 +0200, Per Jessen escribió:
Carlos E. R. wrote:
Per Jessen [05.04.2017 07:42]:
David C. Rankin wrote: ... Try to set MAIL_CREATE_CONFIG="no" in /etc/sysconfig/mail :)
It might be outdated, since the file speaks about SuSEconfig, but it may still work.
I have it to "no" in this machine, but I don't remember if I did that myself. This system has been upgraded from years ago.
The settings is still present in leap422 and it is set to "yes".
There is also /etc/sysconfig/postfix with a gazillion settings.
If you can, try a new system, set it to "no", then repeat your steps. - -- Cheers Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAljkzVYACgkQja8UbcUWM1yhSAEAjeotczBYADMOtoce7nv/staW Xy1gIy98CQ/8u9lD9j4A/jkaJNOtyNB5I+twrtU8deBKRHl+zSKUPaKaksPWz/VJ =ozi2 -----END PGP SIGNATURE-----
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
El 2017-04-05 a las 12:44 +0200, Per Jessen escribió:
Carlos E. R. wrote:
Per Jessen [05.04.2017 07:42]:
David C. Rankin wrote: ... Try to set MAIL_CREATE_CONFIG="no" in /etc/sysconfig/mail :)
It might be outdated, since the file speaks about SuSEconfig, but it may still work.
I have it to "no" in this machine, but I don't remember if I did that myself. This system has been upgraded from years ago.
The settings is still present in leap422 and it is set to "yes".
There is also /etc/sysconfig/postfix with a gazillion settings.
If you can, try a new system, set it to "no", then repeat your steps.
I could easily do that, but it's not really important, the results ought to be the same: with MAIL_CREATE_CONFIG="no" - my changes to main.cf are not touched when I start postfix. with MAIL_CREATE_CONFIG="yes" - my changes to main.cf are not touched when I start postfix. -- Per Jessen, Zürich (14.3°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-04-05 14:33, Per Jessen wrote:
Carlos E. R. wrote:
El 2017-04-05 a las 12:44 +0200, Per Jessen escribió:
Carlos E. R. wrote:
Per Jessen [05.04.2017 07:42]:
David C. Rankin wrote: ... Try to set MAIL_CREATE_CONFIG="no" in /etc/sysconfig/mail :)
It might be outdated, since the file speaks about SuSEconfig, but it may still work.
I have it to "no" in this machine, but I don't remember if I did that myself. This system has been upgraded from years ago.
The settings is still present in leap422 and it is set to "yes".
There is also /etc/sysconfig/postfix with a gazillion settings.
If you can, try a new system, set it to "no", then repeat your steps.
I could easily do that, but it's not really important, the results ought to be the same:
with MAIL_CREATE_CONFIG="no" - my changes to main.cf are not touched when I start postfix. with MAIL_CREATE_CONFIG="yes" - my changes to main.cf are not touched when I start postfix.
So, no change either way? I suppose the script only does that change "sometimes": the first time, and later when sysconfig changes. The trick is to either use YaST a single time, or to change that variable. I think. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
Carlos E. R. wrote:
On 2017-04-05 14:33, Per Jessen wrote:
Carlos E. R. wrote:
El 2017-04-05 a las 12:44 +0200, Per Jessen escribió:
Carlos E. R. wrote:
Per Jessen [05.04.2017 07:42]: > David C. Rankin wrote: ... Try to set MAIL_CREATE_CONFIG="no" in /etc/sysconfig/mail :)
It might be outdated, since the file speaks about SuSEconfig, but it may still work.
I have it to "no" in this machine, but I don't remember if I did that myself. This system has been upgraded from years ago.
The settings is still present in leap422 and it is set to "yes".
There is also /etc/sysconfig/postfix with a gazillion settings.
If you can, try a new system, set it to "no", then repeat your steps.
I could easily do that, but it's not really important, the results ought to be the same:
with MAIL_CREATE_CONFIG="no" - my changes to main.cf are not touched when I start postfix. with MAIL_CREATE_CONFIG="yes" - my changes to main.cf are not touched when I start postfix.
So, no change either way?
That's what it ought to be, yes. Unless I have used YaST to configure postfix, the postfix config should be left to me. The postfix startup service unit should not touch main.cf when it isn't supposed to, in particular not when I've edited it.
I suppose the script only does that change "sometimes": the first time, and later when sysconfig changes.
The trick is to either use YaST a single time, or to change that variable. I think.
Sure, there are plenty of work-arounds, but that is not the issue. I can also make a backup, then copy that into place once postfix has been started the first time. I thought this was new with Leap422, but I see it in 12.3 and 13.[12] too. In both cases though, I had amended the service unit to work with multiple postfix instances, and disabled the config fixer crud. So I never saw the issue until now. -- Per Jessen, Zürich (14.1°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-04-05 16:08, Per Jessen wrote:
Carlos E. R. wrote:
The trick is to either use YaST a single time, or to change that variable. I think.
Sure, there are plenty of work-arounds, but that is not the issue. I can also make a backup, then copy that into place once postfix has been started the first time.
I thought this was new with Leap422, but I see it in 12.3 and 13.[12] too. In both cases though, I had amended the service unit to work with multiple postfix instances, and disabled the config fixer crud. So I never saw the issue until now.
Well, it is not a hack, it is intended that way, as I recall. If you want no automatic changes the first time, you have to set that var to 'no'. You can easily try: do some change to sysconfig/postfix, set that var to 'no', then stop/start the daemon: the config change should not be applied. If it is, then it is a bug. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
Carlos E. R. wrote:
On 2017-04-05 16:08, Per Jessen wrote:
Carlos E. R. wrote:
The trick is to either use YaST a single time, or to change that variable. I think.
Sure, there are plenty of work-arounds, but that is not the issue. I can also make a backup, then copy that into place once postfix has been started the first time.
I thought this was new with Leap422, but I see it in 12.3 and 13.[12] too. In both cases though, I had amended the service unit to work with multiple postfix instances, and disabled the config fixer crud. So I never saw the issue until now.
Well, it is not a hack, it is intended that way, as I recall. If you want no automatic changes the first time, you have to set that var to 'no'.
Maybe I am reading it the wrong way, I'm not sure, but is it right that I need to go alter a setting to disable some automatic setup that will otherwise screw up my manual configuration? It seems to me the automatic setup should be clever enough to figure out when to skip. -- Per Jessen, Zürich (14.2°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Per Jessen <per@computer.org> [04-05-17 10:09]:
Carlos E. R. wrote:
On 2017-04-05 14:33, Per Jessen wrote:
Carlos E. R. wrote:
El 2017-04-05 a las 12:44 +0200, Per Jessen escribió:
Carlos E. R. wrote:
> Per Jessen [05.04.2017 07:42]: >> David C. Rankin wrote: ... > Try to set MAIL_CREATE_CONFIG="no" in /etc/sysconfig/mail :) > > It might be outdated, since the file speaks about SuSEconfig, but > it may still work.
I have it to "no" in this machine, but I don't remember if I did that myself. This system has been upgraded from years ago.
The settings is still present in leap422 and it is set to "yes".
There is also /etc/sysconfig/postfix with a gazillion settings.
If you can, try a new system, set it to "no", then repeat your steps.
I could easily do that, but it's not really important, the results ought to be the same:
with MAIL_CREATE_CONFIG="no" - my changes to main.cf are not touched when I start postfix. with MAIL_CREATE_CONFIG="yes" - my changes to main.cf are not touched when I start postfix.
So, no change either way?
That's what it ought to be, yes. Unless I have used YaST to configure postfix, the postfix config should be left to me. The postfix startup service unit should not touch main.cf when it isn't supposed to, in particular not when I've edited it.
istr: used to be an md5 for postfix config maybe under /var/adm whose presence stopped system/yast from making changes. existance of the md5 file indicated user editing of the config. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 Photos: http://wahoo.no-ip.org/piwigo @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-04-05 18:21, Patrick Shanahan wrote:
* Per Jessen <> [04-05-17 10:09]:
Carlos E. R. wrote:
That's what it ought to be, yes. Unless I have used YaST to configure postfix, the postfix config should be left to me. The postfix startup service unit should not touch main.cf when it isn't supposed to, in particular not when I've edited it.
istr: used to be an md5 for postfix config maybe under /var/adm whose presence stopped system/yast from making changes. existance of the md5 file indicated user editing of the config.
Yes, but either postfix was an exception, or those md5 files were created by SuSEconfig, and this script has disappeared. cer@minas-tirith:~> l /var/adm/SuSEconfig/md5/etc/postfix/ total 16 drwxr-xr-x 2 root root 4096 Jul 1 2010 ./ drwxr-xr-x 5 root root 4096 Jan 11 2014 ../ -rw-r--r-- 1 root root 36 Jul 1 2010 main.cf -rw-r--r-- 1 root root 36 Jul 1 2010 master.cf cer@minas-tirith:~> Notice how old they are; I think they are from the initial config when I bought the computer. The absence of the file, or that the md5 did not match, indicated manual configuration, I understand. SuSEconfig would create those checksums. The logic is rather complex, though. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
Carlos E. R. [05.04.2017 12:29]:
El 2017-04-05 a las 12:08 +0200, Werner Flamme escribió:
Per Jessen [05.04.2017 07:42]:
David C. Rankin wrote: ... Try to set MAIL_CREATE_CONFIG="no" in /etc/sysconfig/mail :)
It might be outdated, since the file speaks about SuSEconfig, but it may still work.
I have it to "no" in this machine, but I don't remember if I did that myself. This system has been upgraded from years ago.
O another system that was freshly installed, it is set to yes. I do not observe there what Per describes, but I did use YaST to set it up initially, just once.
Looking at /usr/sbin/config.postfix, I see that the software only does something if MAIL_CREATE_CONFIG from file /etc/sysconfig/mail is set to "yes". And /usr/sbin/config.postfix belongs to package postfix-3.2.0-278.1.x86_64 (from obs://server:mail repo). And I do not dare to believe that any other proggy messes around with postfix's config... Werner -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (7)
-
Carlos E. R.
-
David C. Rankin
-
Freek de Kruijf
-
jdd
-
Patrick Shanahan
-
Per Jessen
-
Werner Flamme