Migrated domain emails not working

Diggster

Member
Oct 27, 2015
9
0
1
edmonton
cPanel Access Level
Root Administrator
This is so strange. I run 2 servers. I migrated all accounts from one to the other so I can maintain just one. I did this over several weeks with no problems. Now i just did the last 5 sites and now I have experienced problems.

The thing that I believe most likely caused the issue was the move of the "example.com" site with NS1 was pointing to an IP on the new server and NS2 pointing to one IP from its current server.

I renamed the following
  • named.conf
  • named.conf,v
  • remotedomains
  • remotedomains,v
  • userdomains
  • userdomains,v
as per Tristaans point in solving the migration from duplicate domian error from this link: Copy account fails because domain is owned by system

Now there is just no email - cant send or receive, nothing in / nothing out
Even if I choose an email for the problem domain that receives...
 
Last edited by a moderator:

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
The thing that I believe most likely caused the issue was the move of the "example.com" site with NS1 was pointing to an IP on the new server and NS2 pointing to one IP from its current server.

I renamed the following
Why not just update the domain's DNS normally, why would you go to the trouble of renaming all those files for some other issue?

You migrate when you're moving from one control panel to another. You're moving accounts from one cPanel server to another though, these are different things.

Sounds to me like you need to update the DNS properly on the affected accounts.
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

Go to the old server where the other nameserver is configured, you will be having the old accounts DNS zones there, so you can just update the A record of the website and point it to the new server. This way the requests will always be coming into your new server without fail.
 

Diggster

Member
Oct 27, 2015
9
0
1
edmonton
cPanel Access Level
Root Administrator
did you see any logs in /var/log/exim_mainlog ?
Here are the logs

2017-02-28 09:24:56 Failed to find user "" from expanded string "${lookup{$domain}lsearch {/etc/userdomains}{$value}}" for the virtual_aliases_nostar router
2017-02-28 09:24:56 H=mail.host.tld [2.3.4.5]:51114 Warning: ACL "warn" statement skipped: condition test deferred: Failed to find user "" from expanded string "${lookup{$domain}lsearch {/etc/userdomains}{$value}}" for the virtual_aliases_nostar router


Failed to find user seems common - I have never done this in my life so I am a newbie
 

Diggster

Member
Oct 27, 2015
9
0
1
edmonton
cPanel Access Level
Root Administrator
Why not just update the domain's DNS normally, why would you go to the trouble of renaming all those files for some other issue?

You migrate when you're moving from one control panel to another. You're moving accounts from one cPanel server to another though, these are different things.

Sounds to me like you need to update the DNS properly on the affected accounts.
All the domains point to ns1.mydomaindns.com and ns2.mydomaindns.com. The mydomaindns.com account was moved to the new control panel. NS1 pointed to an IP (correctly) on the new control panel - NS2 point to an IP on the old panel. I changed NS@ to an open IP address on the new panel.

I realize this is not the way to do it - But I have no clue as to the proper way. But for reasons I am stuck doing it and need to fix it fast.
 

Diggster

Member
Oct 27, 2015
9
0
1
edmonton
cPanel Access Level
Root Administrator
Hi,

Go to the old server where the other nameserver is configured, you will be having the old accounts DNS zones there, so you can just update the A record of the website and point it to the new server. This way the requests will always be coming into your new server without fail.

I did this - no luck - yet - could be propogation?
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Probably. How long ago did you make your changes?

Please feel free to open a ticket to cPanel Technical Support if you wish. You used some instructions posted by Staff back in 2012 and might have added to the issue. If somethings not correct, they should be able to point you in the right direction properly after taking a closer look.

GL!