How to use a different server for mails than a website is hosted on
I have several client websites on a cms hosted on amazon EC2 and I have a dedicated webserver with cpanel. I don't have access to the code of the cms.
Now the cms doesn't have email capabilities so I want to code something in PHP that runs on the dedicated cpanel server where clients can login, read and send emails.
My question is how can I achieve this so the domain is pointed to the cms but emails will go to my dedicated server?
I think zoho.com/mail offers this functionality but how can I use it on my own server without relying on zoho?
The next question is: is the smtp server that comes with cpanel enough to do that or do I need to use something else?
-
[quote="MattDeox, post: 1675422">My question is how can I achieve this so the domain is pointed to the cms but emails will go to my dedicated server?
You can setup the account on the cPanel server and create the email accounts there. Then, modify the MX records at the DNS host of the domain name so they point to the cPanel server. Email is then handled by the cPanel server, where users can access webmail if necessary (You can setup an "A" record for webmail at the DNS host). Thank you.0 -
How would I need to setup the email for cpanel? Would I need to add the domain on cpanel and then create the email there or is it done differently? Is it possible to add the email without adding a user to cpanel? 0 -
You will need to create the account in Web Host Manager like you would for any other account, and then create the email accounts through cPanel. You can assign the account the X3Mail theme so that only mail options are visible. Thank you. 0 -
Okay I got it sorted 0
Please sign in to leave a comment.
Comments
4 comments