Webmin config moving from Centos to Debian - Postfix errors etc

7 posts / 0 new
Last post
#1 Tue, 05/28/2019 - 03:44
drguild

Webmin config moving from Centos to Debian - Postfix errors etc

I am setting up a temp vm on Debian so I can redo my Centos 6 server to Debian and importing the postfix webmin module I am getting errors.

Error while checking current Postfix configuration. Please manually fix Postfix configuration.
postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
postfix: fatal: /usr/lib/postfix/postfix-script: No such file or directory

I already changed the location of the daemon in main.cf to lib/postfix but I don't think that was right as there is a sbin directory under it.

Is there a way to fix the config or re-install postfix fresh with a set of new configs so I can copy my settings from one browser window to another.

Tue, 05/28/2019 - 03:57
drguild

Got it started by editing the darmon in main.cf to /usr/lib/postfix/sbin

though I am still seeing a issue

postfix start
postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
postfix/postfix-script: starting the Postfix mail system

I it works shouldn't be a issue as I will make sure I don't import the module into the actual physical server install and set it up by hand in webmin.

Apache and bind cant start with the modules from Centos 6 so installing a second debian vm as a test and to see the default configs.

Wed, 06/05/2019 - 06:42
adamjedgar

Thus makes me wonder,

What would happen if you first added virtualmin gpl to the centos 6 machine, got all the postfix accounts working there on virtual servers (instead of wholly within webmin), then exported the virtualmin accounts onto a new debian machine?

My thought is that if done this way one is limiting the number of translations being made...ie centos to debian + webmin to virtualmin all at the same time....whereas I would think it better to do webmin to virtualmin on centos 6, then export to debian.

Could it be done this way? Or are you keeping everything in webmin?

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Wed, 06/05/2019 - 07:56 (Reply to #3)
drguild

You misread a little.

I had a Virtualmin server on Centos 6.9 I imported the Virtualmin servers over to a Debian VM also running Virtualmin which setup the mail addresses etc and put the servers back to how they were.

Though for Postfix and other Webmin configurations like Bind etc I exported them from Webmin and imported into the Debian VM. Unfortunately I had issues with everything being changed between the two distros so I couldn't export and import my settings and custom lan domains for internal devices.

I spun up a second Debian Virtualmin VM and copied in the virtual servers and manually configured the postfix settings which all the default settings are different from the older Postfix on Centos to the newer one on Debian so I may need to fix that (Currently though email servers seem to be running ok from a quick test) I will configure Bind for all my internal stuff PS3/3DS etc etc once I get the physical server up fully as I am putting the server back to a physical system as the VM is just a holding so I can redo that.

I may be posting if I have issues but for now doing things by hand seem to be working.

Wed, 06/05/2019 - 15:43 (Reply to #4)
adamjedgar

Ah ok, by the way it read initially, it seemed as if you were just using Webmin and not Virtualmin ( I thought that because you can just run a webmin only system with no virtualmin, so when i read the word "webmin" that is what i assumed you were doing)

When you did the export, what options did you select for the Virtual Servers you were exporting?

I have had problems with this and i think it was because i was also exporting the original server configuration over to the new system instead of only just the user accounts.

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Wed, 06/05/2019 - 08:48
andreychek

Howdy,

If you do run into any troubles, let us know what you see when running "postconf -n".... there may be some older Postfix config lines that are causing trouble.

There unfortunately isn't a way to re-generate a fresh config file, but if something isn't working, being able to see your config should help out in the troubleshooting process.

-Eric

Thu, 06/06/2019 - 01:02
drguild

The export was full on different modules. From cross referencing a lot of the configs in the gui changed but email server is working with the new default params and my hostname.

Topic locked