Page 1 of 1

Message could not be delivered after domain was moved

Posted: Sat May 26, 2007 1:10 am
by mdraghici
Hi there,

I am experiencing the following problem. When I initially installed scalix I had several email domains being served by this server. At one point in time I had to move one of the email domains to another machine and now whenever I try to send an email to the users of that domain I get a MAIL-SYSTEM reply with "recipient not found at the destination"

My scalix instalation is working properly as I can send and receive emails from all other domains without any problem. The other system that hosts the old email domain is also working properly.

I am pretty sure it has something to do with the fact that the domain used to be on this machine and scalix is trying to deliver to itself instead of forwarding the mesage to sendmail for delivery. Of course I have deleted that domain from the scalix list and all the mailboxes associated.

Does anyone have any idea on how I can solve this?

thanks in advance for your help.

~mircea

Posted: Sat May 26, 2007 9:13 am
by jaime.pinto
Please read the following thread, since it illustrates some of the misconceptions with regards to how emails is handled, and what sometimes is wrongly expected from scalix (and other mail systems) viewtopic.php?t=7540&highlight=

At this point there is *absolutely nothing* that can be done on the scalix server. By transferring the domain to another server scalix has been taken out of the equation, and left with a number of "orphan" accounts (you may delete them, if you have not done so yet)
Does anyone have any idea on how I can solve this?

What you ultimately need to have is an equivalent account on the new server for every user on the old scalix domain. You also must have an appropriate DNS update to point the MX entry to the new server.

The error message you're getting (MAIL-SYSTEM reply with "recipient not found at the destination" ) can be caused by 2 situations:
1) no user@domain.com on the old scalix server (fix the DNS-MX for the domain)
2) no user@domain.com on the new server (create the accounts on the new server). Assumes the MX entries have been corrected.

What probably is(or was) required the most in your situation is (was) a migration strategy. There are many on this forum that can help you with that if you need.
Jaime

Posted: Sun May 27, 2007 2:51 am
by mdraghici
Jaime,

thanx for your feedback. let me clarify on some points.

I did verify the DNS and everything is correct on the new server. I can send and receive emails with no problems. (the account exists on the server, and the MX is corect). The only problem is when I try to send am email from an account on the old scalix server. that is when I get the error message. I verified the dns settings on the scalix machine and the MX records are correct for the new server as well.

any help is greatly appreciated.

~mircea

Posted: Sun May 27, 2007 10:45 am
by jaime.pinto
I see!
Emails to/from anywhere else outside the old scalix server runs fine. Only when emailing *from* an account on the old scalix that you have problem.

So, you need a little clean up:
1) from sac go to Settings->Local Domains and delete any reference to the transfered domain.
2) delete any premium or standard usesr with the transfered domain. *Internet user* is ok, it will be forwarded to the proper server.
3) remove the old domain from the license file, so it doesn't return after a scalix upgrade, by editing /var/opt/scalix/??/sys/LicenseKeys/permanent.lic

4) edit /etc/mail/local-host-names and remove the old domain from there
5) If you have any reference to the old domain in sendmail.mc such as MASQUERADE_AS/DOMAIN that you think is no longer applicable remove as well. Be sure to regenerate sendmail.cf and restart sendmail.

I may have missed something that somebody else may pickup on, but this should be it.
Jaime

SOLVED

Posted: Tue May 29, 2007 12:57 am
by mdraghici
Jaime,

thanks! what happened was that I forgot to remove the old domain from the local-host table.

making the change solved the problem

~mircea