I am just getting started with cPanel on a remote host. I handle all the email for my various domains on a local machine with my own mail server, my own DNS records, my own unpublished primary name server, etc. That machine also was running these sites on its web server.
After migrating the web sites to a cPanel managed machine, the web sites work fine. Alas, cPanel has helpfully rewritten various parts of exim, and some name server records I presume, to manage local email for me. This email now goes into a black hole, since the local name server records are ignored (I control the DNS records on other DNS servers which are authoritative for that domain).
I made a temporary workaround by setting the cPanel hosted domain to always forward to another domain (which I haven't moved yet). This will work until I finally have to move the last domain, of course... :-(
I see there is a file /etc/localdomains, and I suppose that I could just edit this file, but I worry about cPanel updates and installation of new sites that will rewrite this configuration at inconvenient times, etc., etc.
What is the officially approved mechanism to have cPanel *not* be helpful and try to deal with email? Can I have cPanel just leave the email alone for now and treat the local domain just like any other domain and deliver the email normally off site?
PS Is there any simple way to recover all the zombie local emails that are sitting in the exim queue, never to be delivered locally?
Thanks alot! I really appreciate your help.
Lester
After migrating the web sites to a cPanel managed machine, the web sites work fine. Alas, cPanel has helpfully rewritten various parts of exim, and some name server records I presume, to manage local email for me. This email now goes into a black hole, since the local name server records are ignored (I control the DNS records on other DNS servers which are authoritative for that domain).
I made a temporary workaround by setting the cPanel hosted domain to always forward to another domain (which I haven't moved yet). This will work until I finally have to move the last domain, of course... :-(
I see there is a file /etc/localdomains, and I suppose that I could just edit this file, but I worry about cPanel updates and installation of new sites that will rewrite this configuration at inconvenient times, etc., etc.
What is the officially approved mechanism to have cPanel *not* be helpful and try to deal with email? Can I have cPanel just leave the email alone for now and treat the local domain just like any other domain and deliver the email normally off site?
PS Is there any simple way to recover all the zombie local emails that are sitting in the exim queue, never to be delivered locally?
Thanks alot! I really appreciate your help.
Lester