Page 1 of 1

restore from another server not including email forwardings

Posted: Mon Dec 17, 2018 6:18 pm
by cottager
Hi all,

I've run into something that could be a bug, but I never rule out the bug being me. :)

I'm moving some sites from one VestaCP managed server to another. I used the standard CLI commands to v-backup-user and v-restore-user the .tar on the new server. I thought everything worked pretty well until I discovered some sites that don't have the email forwards set on the server. They show in the control panel as there, but are not showing in aliases and fwd-only (most are set to not store forwarded email).

Basically, these are both empty:

/home/USER/conf/mail/DOMAIN/aliases
/home/USER/conf/mail/DOMAIN/fwd_only

While in the control panel the email address to forward to is there and set.

A variable I wasn't consistent with during migration was whether or not the mail or web were suspended. I had tested suspending web and then doing the v-backup-user and that seemed to work properly. And then I was doing a suspend on the mail as well but being a bad dog, I didn't check that.

In any event, I'm trying to get the control panel to reassert the settings into the conf but nothing there seems to correct unless I fully delete the email account and recreate it.

So I guess I'm asking if this a bug and if there is a known work around or any way to get VestaCP to rebuild the email forwards and aliases without deleting and recreating.

thank you all

Re: restore from another server not including email forwardings

Posted: Mon Dec 17, 2018 6:31 pm
by cottager
OK. So I kept looking for a solution, and I do think I've found one. There is a rebuild mail option on the user. I was looking in the domains for that sort of thing. That fixes the email forwards.

I still don't know if I should report the initial problem as a bug though. Seems like maybe I should. Even if the mail is suspended, I would expect them to restore.