Host website and emails in different server cpanel - email

I am having a client who want to keep his website and mails in two separate server. Both are having cpanel hosting. So can someone help me with step to step changes what I need to do ?
Now www.example.com is having cpanel and works fine.
Have another cpanel hosting ready, So what all things I need to do ?

You need to host example.com in two different server, one for website and another for mail service ?
If this is your question, please follow the below steps.
Login to your first cPanel of example.com (for website)
Upload all the files here.
Then, click "Simple DNS Editor" in the same cPanel.
Under "Add an A Record"
Name:mail.example.com
Address :your_mail_server_ip address (ask your mail service provider for this)
And click "Add a Record".
Once this record added.
Goto "MX Entry"
Choose "Remote Mail Exchanger"
Click Change.
Then delete the previous MX record.
Now Add mail.example.com in Destination, Priority is 0 (zero).
Click "Add New Record"
That's it.
Solution No.2:
Upload your contents in cpanel used for website.
Now, Login to your another cPanel used for mail service.
Go to "Simple DNS Editor" under Add an A Record
Name: example.com
address : A record IP address of your website server.
Create email id in email server (cPanel) and start using the mails and website in different server.
Hope this helps you.
Solution No.3:
If this confusing you. contact your hosting provider with MX record and its IP address.
Ask them to update that MX record from their end.

Related

Can I host my site in DigitalOcean and my Email on Godaddy?

My client is currently hosting his site on a shared GoDaddy hosting plan, an also his emails accounts. Question is... how can I migrate his website to Digital Ocean and keep the emails on GoDaddy?
I had an recently where I could not receive emails on my goDaddy account once I have moved the nameservers to DO. For anyone facing this issue, the below steps should fix it.
To migrate hosting from goDaddy to DO, follow the below link
https://www.digitalocean.com/community/tutorials/how-to-point-to-digitalocean-nameservers-from-common-domain-registrars
Once you have pointed nameserves, your traffic will be redirected to DO. Now if you want to use the email service provided by goDaddy, you will need to point your DO "MX" records back to godaddy.
First you will need to know the goDaddy incoming email server details. To obtain this, you will need to go to email server settings within your goDaddy Dashboard. The server details will look something like
Incoming server (IMAP):
imap.secureserver.net
Incoming server (POP3):
pop.secureserver.net
You will then need to add these details as MX Records in your Digital ocean domain DNS settings page. DO will then route emails to your goDaddy email service.
These details will take time to reflect. For me it took a day to start receiving emails on goDaddy.
Hope this helps!
Yes, you could just change your zone records to reflect what you want to do. Presumably you want to transfer the DNS zone to Digital Ocean and only keep the email at Godaddy.
In Godaddy's domain name manager you can change over to the Digital Ocean name servers.
ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com
Check things out:
dig ns example.com
and
whois example.com
The name servers should be the above DO name servers.
The only thing you need to point back at Godaddy will be Goddady's MX records. unless, of course, you're using Office 365 email, which a lot of Godaddy's customers seem to use, in which case lookup the appropriate MX records for Office 365.
I hope this helps.
This is possible, recently I did the same with Hostgator and GCP ( Mail service from webmail and app in Google Cloud ). These are the steps I followed.
1) Add new A record ( if possible/allowed add with name # ) in your
shared/hosting/cpanel service, and point it to your cloud providers
IP(the IP on which your app is running).
2) Add another A record with name www and point it to the IP of your
service running in the cloud.
3) Delete the CNAME record called mail.
4)Add new A record with name mail and point it to your cpanel /
webmail service providers IP.
5)Add MX record and point it to destination mail.yoursitename.tld and
set the priority as 0
By this point, you will be able to send mail.
6) Add SPF record ( TXT record ) or go to Authentication settings in
the Email section in your cpanel and enable SPF.
7)Go to Email Routing in the Email section in your cpanel and select
your domain then choose Local Mail Exchanger under Configure Email
Routing. That's it now you will be able to receive emails also.
Link to my original answer

Disable cPanel from looking for user for Forward email

I have 2 domains setup on the same server using WHM. One is a full site, with cPanel email/Forwarding. The other is redirects and using Google apps as the email.
When I setup a forward on the full site to the Google apps, it is searching cPanel for the user of the second domain and says the User doesn't exist, but it does exist on Google Apps.
How can I disable cPanel from checking for a specific user on the redirect domain?
i can understand your problem. now make 2 changes on your cPanel account.
Remove its all existing MX records and use only Google app MX
cPanel => Mx Entry => Remote Mail Exchanger
Check below screenshot
I hope it will sure help you

How to transfer old email message from PLESK to cPanel

I have redirected a domain from PLESK to another server (cPanel) and also I have transferred the code from PLESK TO cPanel. Now my website is running well. I have created my email on cPanel and i am using webmail to access my email account.
But want to transfer old email messages from PLESK to cPanel. I have searched and found that email messages are stored on PLESK on this location:
# /var/qmail/
Is there any way to transfer email email messages from PLESK to cPanel?
Thanks in advance for any replies.
You can fetch mail from your PLESK server and have it imported into cPanel.
Simply login to your cPanel
Access your webmail and access Horde
Once logged in, on the left hand side, click OPTIONS then Mail
On the center of the screen under “Message Options” click “Fetch Mail”
Create a new account, enter your details from your email account located on your PLESK server (for the incoming/outgoing servers, use your PLESK server hostname)
Email will then begin to be downloaded into your cPanel inbox.
That should do the trick :)
Horde doesn't have the Fetch Mail option anymore.
So, the easiest solution is manual transfer using Outlook or Thunderbird.
How to move email from any server into cPanel use an IMAP client like Microsoft Outlook or Thunderbird?
First, configure each new email account on cPanel (including any sub-folders). Next, configure your IMAP client (Outlook or Thunderbird) with each email account on each server.
One account for the old account (if it is not already there) and one account for the new account created with cPanel.
You may find it easier to use the actual IP addresses of each respective server to avoid name resolution issues.
Replace example.com with IP address (use ping example.com on your CMD console to find out the IP of the old server)
After that, you just need to drag-and-drop the old messages from the old account into the new account on Outlook or Thunderbird and delete the old account.
When finishing with all accounts, change your domain DNS to the new cPanel hosting server and you're done.
It will be downtime?
Depends on the number of email boxes you have to transfer and on other websites or applications you have to move from the old domain name. Normally it should work fast enough to not have any problems but I suggest doing this after working hours.

disable emails on cpanel

Does anyone know how I disable emails for an account on Cpanel? They host their own emails but we host their site and currently, every time we try to mail them, it just stays within the server and doesn't get to them.
I used to use Plesk and it was as easy as flicking a switch to turn emails off but I can't see that in cPanel. I've tried setting their package to 0 emails in WHM but I'm suspecting that's not going to work.
-James
if the domain example.com are pointed to your DNS
login to WHM and go to Main >> DNS Functions >> Edit MX Entry for the example.com
and when Edit the example.com choose "Remote Mail Exchanger" this will Configure server to not accept mail locally and send mail to the lowest MX record.
so double check the example.com MX records to make sure the MX records set to the valid Mail Server.
if example.com are NOT pointed to your dns and just use IP forwarding to run on your server you can remove the dns entry for example.com by delete the dns zone for example.com as it not used.
If you are trying to send mails from same cpanel server where the website hosted then mail server trying to resovle that domain locally. check the domain entry in /etc/localdomains and remove or comment that entry and you can add that domain in /etc/remotedomains.

Mail server redirect to another server

I have a site, which has a server with "Parallels Plesk Panel" installed. I want to send an email from that site a "Contact Us" message to info#domain.com email.
The problem is that this email was already created by one of the programmers using the google mail system (apparently you can create accounts there with a domain name different from gmail.com).
So now, the server rejects my message, telling me that it can't find an email with this name. It works fine when I send to any other domain, but when sending to the same one, it fails. I've created another email info2#domain.com and sent emails there and it works.
My question now is, how do I send emails to the existent info#domain.com which is already created in gmail without making the server block me. One of the options I saw at this panel is to redirect the request for that email to another mailing system (and to specify its IP). Maybe that would help if I would to put there gmails IP?
Thanks.
EDIT:
Using my contact us form I am sending an email to info#domain.com. I get an SMTP error 550, can't find the mail box. When sending to anything but #domain.com it works. When adding that email to my server, it is also fine.
Now, the previous programmer already created info#domain.com, but not with our plesk panel, but using gmail server. Apparently, using gmail you can create an email of the type info#domain.com and not just info#gmail.com. The obvious problem is then that I try to send to this email. It sees that the server is domain.com and tries to find it there (same domain as the site from which I send the message). It fails and gives me the 550 error.
I want the server to send the email with that message to info#domain.com which is actually on gmail.
if I understand correctly, your problem is that two servers think they host the maildomain: your plesk server and gmail.
solution: disable local mail delivery for that domain on the plesk server and make sure plesk can correctly resolve the mx records of that domain , runing dig mx +short domain.com on the plesk server should return a google owned hostname, not the local hostname.
I don't own a plesk server, so I can't tell how how exactly to disable the mail domain, but a quick google search returns: http://www.serveridol.com/2011/03/16/disabling-email-service-for-a-domain-in-plesk/
http://search.yahoo.com/search?p=email+form+service&ei=UTF-8&fr=chr-greentree_ff&type=827316
try a remote email form service. most hosting companies' mail servers are local. to do this, you would have to make your own .htaccess file which contains php.ini mail server settings. i THINK this is correct. you can install php yourself to see what those settings are.
this is something you will probably have to do through the web hosting control panel.
and by the way, XHTML is served up as HTML unless you configure the server to serve XHTML up as XHTML. so use HTML when possible unless you know how to do that. here's how.
http://jesusnjim.com/web-design/setup-test-server.html