11
Installation / Re: Problems installing CWP 8 with MariaDB
« Last post by Wonder on November 03, 2025, 09:51:02 PM »That's right, that's the idea, and that's how I usually proceed when doing migrations.
Sometimes the migration involves changing VPSs. The server is the same, same domain, same everything, but... the new VPS has better performance for the price.
So, at that point, I have both: the one in production and the new one. As you correctly mentioned, the new one is fully configured and ready, so I just need to migrate the CWP account to the CWP account. I'm behind Cloudflare and I do it at a time that won't cause any disruption. It's just a matter of changing the DNS settings in Cloudflare, and as you said, it doesn't take more than 5 minutes for the new one to be active.
But... this is where I had my doubts, mainly because I had no idea how to migrate the email accounts and their passwords. And this is where, thanks to you, I can do it.
Right now, I have a server set up with AL9 and CWP9, properly and perfectly configured, and I'm going to try it there. I'm using it as a server for this test; if it works, it'll stay, thanks to... it's perfectly configured.
However, the server has many email accounts, which is what worries me most. I'll have to either stop the mail server somehow or simply run another rsync from the old one to the new one.
Thanks!!!
Sometimes the migration involves changing VPSs. The server is the same, same domain, same everything, but... the new VPS has better performance for the price.
So, at that point, I have both: the one in production and the new one. As you correctly mentioned, the new one is fully configured and ready, so I just need to migrate the CWP account to the CWP account. I'm behind Cloudflare and I do it at a time that won't cause any disruption. It's just a matter of changing the DNS settings in Cloudflare, and as you said, it doesn't take more than 5 minutes for the new one to be active.
But... this is where I had my doubts, mainly because I had no idea how to migrate the email accounts and their passwords. And this is where, thanks to you, I can do it.
Right now, I have a server set up with AL9 and CWP9, properly and perfectly configured, and I'm going to try it there. I'm using it as a server for this test; if it works, it'll stay, thanks to... it's perfectly configured.
However, the server has many email accounts, which is what worries me most. I'll have to either stop the mail server somehow or simply run another rsync from the old one to the new one.
Thanks!!!
12
Installation / Re: Best solution for migrate active server from Centos 7 to another distro
« Last post by overseer on November 03, 2025, 03:46:58 PM »Funny, I thought that was an AI bot posting about AI. But maybe it was just a shill trying to "organically" advertise. Too bad you can't look at user profiles anymore here to see how many posts or how long ago the account was registered...
13
Dovecot / Re: Can I Route Only Bounce-Back Emails to a Different Mailbox
« Last post by Starburst on November 03, 2025, 01:05:00 PM »I can be done. Yes, kinda.
Can it be done easily. No.
It would involved creating a filter in Dovecot, and then specify a header keyword to redirect the email.
Kinda the same way you would do it in an email client.
Can it be done easily. No.
It would involved creating a filter in Dovecot, and then specify a header keyword to redirect the email.
Kinda the same way you would do it in an email client.
14
Installation / Re: Best solution for migrate active server from Centos 7 to another distro
« Last post by Starburst on November 03, 2025, 01:01:15 PM »Hmm, I think over the last few years the answer has become - "just use AI to do it". However, I do recommend that you are indeed an average sys admin or at least a below average one so that you can spot check, and guide your AI to do things safely.
Furthermore, a paid solution IDE will do a much better job at it than a regular free chat version. I tried a few, and Cursor is currently the best. Windsurf is lagging behind. Trae not even worth mentioning. You could also use Gemini CLI or Antropic CLI for this task.
There use to be an old pilot saying, 'Fly by the box, die by the box'
Referring to early auto pilots and their (un)reliability.
I think the same can go for AI.
It's only as good as it's programming and the person asking the question(s)...
I've heard so many, 'but AI told me...'
Followed by here is my bill...

15
Installation / Re: Best solution for migrate active server from Centos 7 to another distro
« Last post by overseer on November 03, 2025, 11:56:38 AM »You could try to ELevate the system, but Sandeep (a CWP dev) recommends against it (it can introduce inexplicable oddities). The best course is to install a fresh AlmaLinux 8 system and use CWP Migration to move all accounts, sites, and e-mails over to the new server. If you are very knowledgeable, you could try to manually migrate to AlmaLinux 8 or 9:
You should be able to manually migrate, no problem. I just had to manually migrate my last CentOS 7 server to AlmaLinux 8 because I was continually encountering a bug with CWP Migration (even though it's worked just fine for me for other servers). You dump all DB to a single SQL file, on the new server create the user accounts you are replicating, load the DB SQL on the new server and rsync in all your files -- /home and /var/vmail. (Also move any conf you want to carry over -- CSF firewall, Roundcube, nginx vhosts, DNS zone files, etc.).
https://wiki.centos-webpanel.com/how-to-manually-import-emails
But the postfix DB, particularly the mailbox table has all the end user PW hashes stored. So recreating that DB on the new server will get you all the user PW you need. No need to recreate any mail user accounts or aliases. Also bring over the roundcube DB for a seamless mail experience. Just make sure their /var/vmail IMAP storage is in place and all the references will point appropriately. Voila!
16
Installation / Re: Best solution for migrate active server from Centos 7 to another distro
« Last post by augsteyer on November 03, 2025, 07:33:50 AM »Hmm, I think over the last few years the answer has become - "just use AI to do it". However, I do recommend that you are indeed an average sys admin or at least a below average one so that you can spot check, and guide your AI to do things safely.
Furthermore, a paid solution IDE will do a much better job at it than a regular free chat version. I tried a few, and Cursor is currently the best. Windsurf is lagging behind. Trae not even worth mentioning. You could also use Gemini CLI or Antropic CLI for this task.
Furthermore, a paid solution IDE will do a much better job at it than a regular free chat version. I tried a few, and Cursor is currently the best. Windsurf is lagging behind. Trae not even worth mentioning. You could also use Gemini CLI or Antropic CLI for this task.
17
Dovecot / Can I Route Only Bounce-Back Emails to a Different Mailbox
« Last post by Andrew C on November 03, 2025, 07:16:54 AM »Hi everyone,
I’m trying to figure out if there's a way in CWP Email to route only bounce-back emails to a separate mailbox without using the catch-all option.
What I want to do:
* Mailbox A → send and receives all normal incoming emails
* Mailbox B → receives only bounce-back / deliverable messages that were originally sent from Mailbox A
Basically, I want one mailbox for regular mail and another one dedicated strictly to bounce messages for the first mailbox only.
Has anyone done this in CWP, or know if this is even possible?
Thanks
I’m trying to figure out if there's a way in CWP Email to route only bounce-back emails to a separate mailbox without using the catch-all option.
What I want to do:
* Mailbox A → send and receives all normal incoming emails
* Mailbox B → receives only bounce-back / deliverable messages that were originally sent from Mailbox A
Basically, I want one mailbox for regular mail and another one dedicated strictly to bounce messages for the first mailbox only.
Has anyone done this in CWP, or know if this is even possible?
Thanks
18
Apache / Re: rebuild vhosts
« Last post by setecabanas on November 03, 2025, 06:34:59 AM »Thanks
19
Installation / Re: Problems installing CWP 8 with MariaDB
« Last post by overseer on November 02, 2025, 02:25:03 PM »The goal would be to have 2 concurrently running systems -- your live AL8 system and your newly migrated AL9 system. Then you just change the DNS to point to the new server to complete the migration. In my case, I had 2 VMs on the same host machine, IPs separated by only a couple of digits. I brought up the new system, tested it as best I could, then shut down the main production VM and changed the IP on the replacement VM. It was a seamless transition (1 min downtime), with only some housekeeping to tend to after the switch -- that didn't affect the clients at all. This way, if things go south you can always revert back to the previous VM with only ~1 min downtime.
(Even if you go the DNS route, with Cloudflare you are only talking about >5 min downtime, switching DNS back & forth.)
(Even if you go the DNS route, with Cloudflare you are only talking about >5 min downtime, switching DNS back & forth.)
20
Installation / Re: Problems installing CWP 8 with MariaDB
« Last post by Wonder on November 02, 2025, 01:30:11 AM »No, not limited to just the website DB -- I do mean ALL DB (including the root_cwp database, postfix DB, roundcube DB). On the original server to be migrated, issue this command:Code: [Select]mariadb-dump -u root -p --all-databases --system=users > all_DB.sqlThen SCP or rsync this all-inclusive SQL file over (it can be several GB large).
Then on the fresh AL9 system after re-creating all the user accounts, issue the reverse command to load in the DBs:Code: [Select]mariadb -u root -p < /path/to/all_DB.sqlThis worked for my CentOS 7.9 to AlmaLinux 8 migration.
Justo, thank you!! That was it, that was the question I had. Logically, I thought it should be all the databases, but I wasn't sure, and I wasn't certain. Perhaps restoring those databases from another version of CWP wouldn't be possible in a clean installation.
But what you've told me has saved my life in case I migrate (I still have to decide whether to migrate a production server from CWP8 to CWP9... I don't want that server to fail for any reason). Like I said, this was exactly the information I needed. I'm extremely grateful.
Recent Posts