Menu

#5653 postfix General Options error upon Save OR Save and Apply

2.202
closed
nobody
5
2025-01-20
2025-01-18
No

This is a new occurrence of an old bug I reported long ago:
https://sourceforge.net/p/webadmin/bugs/4922/

OS: Almalinux 9.5
Webmin: 2.202
Postfix: 2:3.5.25-1.el9

Webmin Postfix module:
During a save operation:
Failed to query Postfix config command to get the current value of parameter myorigin: /usr/sbin/postconf: fatal: bad mynetworks_style value: ; specify exactly one value

/var/log/maillog:
fatal: bad string length 0 < 1: mynetworks_style =

I installed Almalinux 9.5 on a clean server.
I installed Webmin 2.202
I installed Postfix.
Then I began to configure Postfix from the webmin module. I think I opened the General config object and entered a few items which I always do. Then I did a Save and got this error. Now when I select any config object I get this webmin error.

If I enter from the command line: postfix -v
I will get the same error as found in the /var/log/maillog.

rich

Discussion

  • Rich Painter

    Rich Painter - 2025-01-18

    I never edited the main.cf but looking there now I see at the very end "mynetworks_style =". However, there is no entry named this on the General config object. If I manually comment this out in main.cf and go back to webmin->Postfix I can click on General object and it displays. The only thing I had previously changed was the "Send outgoing mail via host with Deliver directly checked and in the box "[smtp.gmail.com]:587". When this page painted (after manually deleting the main.cf entry) this was still set to deliver directly to [smtp.gmail.com]:587. At this point without changing anything if I do a Save it will again throw the same error and place "mynetworks_style =" at the end of main.cf.

    I don't know what "default" field on this config page is causing this behavior.

    I think was the same exact thing back in 2017 when I reported this same error.

    rich

     

    Last edit: Rich Painter 2025-01-18
  • Ilia

    Ilia - 2025-01-18

    Thanks for the heads up! It must be fixed in this patch.

    You can apply the patch by running the following command to see if it fixes the problem for you:

    webmin patch https://github.com/webmin/webmin/commit/314d6c5
    
     
  • Rich Painter

    Rich Painter - 2025-01-20

    Yes. This fixed it!
    thanks
    rich

     
  • Ilia

    Ilia - 2025-01-20
    • status: open --> closed
     

Log in to post a comment.