I’ve noticed something strange when I do a backup. Here’s an overview of what I’m doing.
I have a main FreePBX and a backup FreePBX. I have the same postfix settings in both main.cf files on the main and backup PBX’s with the relayhost, sasl_auth_enable and so forth. I ran a test backup on the main PBX that pulled only the CDR server from the backup PBX. I went back to my main.cf file and all my settings I added in there are gone.
Can’t test it out much right now but I do see ( in one of my FULL Backups ) a: /var/www/html/admin/modules/sysadmin/hooks/config-postfix file… I ran it ( maybe a bad idea ) on my pbx system and it reset my /etc/postfix/main.cf file and removed my sasl_passwd password stuff.
One way to ‘test’ if this is really an issue would be to remove that from a FULL backup ( maybe have to replace it with a dummy file) and do a restore and see if it fixes the issue… or do a restore and see if the config-postfix file is mentioned in any of the logs.
Tried that and no luck. Kept changing the file. I was able to get it stop changing with a chattr command but it’s not the perfect solution. I would like to know why it keeps getting changed on me every time a backup is done.
I excluded that file in my backup and tried a backup with only the CDR’s and my main.cf file is still changing. Does the main.cf file follow some format that gets checked every time a backup is done possibly for proper coding? That’s the only other possibility otherwise I think it may be a bug.