Ubuntu 16.04.02 LTS 64 bit
Webmin 1.831
Install postfix and configure it with Webmin
apt-get install postfix
reply with Satellite system; System mail name: xxxxx.com; SMTP Relay host: <blank></blank>
apt-get -y install mailutils
postfix status # reports OK
Based on this initial setup I immediately went to Webmin to finish the configuration.
The following is the ONLY changes that were made to produce the error:
Webmin->Servers->Postfix Mail Server
General Options
What domain to use in outbound mail: /etc/mailname
What domains to receive mail: Local machine
Other General Options
Send outgoing mail via host: smtp.gmail.com
Save and Apply
Webmin reports:
Failed to save options : Postfix configuration error :
postfix: fatal: bad string length 0 < 1: mynetworks_style =
Also tried what previous Webmin versions used on the SMTP Authentication And Encryption page for Send outgoing mail via host: [smtp.gmail.com]:587
Webmin reports the SAME error
Looks like there's a bug in Webmin - it shouldn't allow you to set a blank value for mynetworks_style. I'll fix this in the next release.
Is this fix supposed to be in 1.833? If so, it is not fixed. I installed 1.833 and the problem still exists. I was able to "workaround" by first editing the /etc/postfix/main.cf config file and creating this entry:
mynetworks_style = host
Then running webmin and performing the first steps previously reported that caused the error.
No, we haven't released a version with the fix yet.