If you are getting the above error then make the below changes :
root@server[#] vi /etc/remotedomains
and remove the entry the for the domain for which you are facing problem.
root@server[#] vi /etc/localdomains
add the entry for the domain here for which you are facing problem.
That’s all this will do it.