[opensuse] postfix config file constantly being reset, probably during updates and patches via zypper, how to protect postfix config?
Hello, from time to time I observed in the recent years that somewhen my small postfix mailserver stopped functioning and delivering to a simple external smarthost ip address for a single domain. Very simple setup. At these times I observed that the postfix config file main.cf had a rather current date and settings like networking interfaces postfix would listen on, smarthost ip address and domain name and such were missing from it. I was kind of thinking to directly edit this main.cf file and put my stuff in there, but meanwhile I wonder if suse has a different approach and where to put my config stuff that during updates and patches even with rewriting main.cf file by some suse mechanism, the proper info gets put in and stays in. Thanks for any hints. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 19 May 2015 14:30:15 +0200 cagsm <cumandgets0mem00f@gmail.com> wrote:
Hello,
from time to time I observed in the recent years that somewhen my small postfix mailserver stopped functioning and delivering to a simple external smarthost ip address for a single domain. Very simple setup.
At these times I observed that the postfix config file main.cf had a rather current date and settings like networking interfaces postfix would listen on, smarthost ip address and domain name and such were missing from it.
I was kind of thinking to directly edit this main.cf file and put my stuff in there, but meanwhile I wonder if suse has a different approach and where to put my config stuff that during updates and patches even with rewriting main.cf file by some suse mechanism, the proper info gets put in and stays in.
Just a guess you set the postfix config in /etc/postfix/ directly for some stuff that is normally handled via /etc/sysconfig/postfix. 2 options 1. /etc/sysconfig/mail -> MAIL_CREATE_CONFIG="yes" set it to "no" 2. port the stuff you want changed to /etc/sysconfig/postfix darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, May 19, 2015 at 5:16 PM, Marcus Rückert <darix@opensu.se> wrote:
Just a guess you set the postfix config in /etc/postfix/ directly for some stuff that is normally handled via /etc/sysconfig/postfix. 2 options 1. /etc/sysconfig/mail -> MAIL_CREATE_CONFIG="yes" set it to "no"
Thanks for replying, I already came across that config file as well
2. port the stuff you want changed to /etc/sysconfig/postfix
but wasn't really sure if or what I could put in there, for example I have set tls stuff and relayhost in my postfix file directly. There are a few apparently widely used settings in the suse sysconfig file for postfix, but I am not sure about the logic or if these suse special files are capable of taking all the settings that actually could go into the actual open source projects' config files directly? Is there information about this sysconfig area and it's intention actually? Thanks again. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-05-19 18:29:09 +0200, cagsm wrote:
On Tue, May 19, 2015 at 5:16 PM, Marcus Rückert <darix@opensu.se> wrote:
Just a guess you set the postfix config in /etc/postfix/ directly for some stuff that is normally handled via /etc/sysconfig/postfix. 2 options 1. /etc/sysconfig/mail -> MAIL_CREATE_CONFIG="yes" set it to "no"
Thanks for replying, I already came across that config file as well
2. port the stuff you want changed to /etc/sysconfig/postfix
but wasn't really sure if or what I could put in there, for example I have set tls stuff and relayhost in my postfix file directly. There are a few apparently widely used settings in the suse sysconfig file for postfix, but I am not sure about the logic or if these suse special files are capable of taking all the settings that actually could go into the actual open source projects' config files directly?
Is there information about this sysconfig area and it's intention actually? Thanks again.
Yast2 Mail server module sets the values there and the config.postfix script converts them into your postfix config unless yout turn it off in /etc/sysconfig/mail. If you feel confident enough to keep maintaining your config without yast in the future, take that route. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
cagsm
-
Marcus Rueckert
-
Marcus Rückert