Email Routing in Cloud
Email routing is performed entirely based on the destination address of the email message. While it would be theoretically possible for mail clients to deliver their own messages directly to recipients, this is not desirable.
The main thing is end user's mail client will deliver outbound messages to their local mail server using SMTP or a similar protocol. Later the local mail server performs a DNS lookup to find the 'MX' records for the recipient's domain name.
Once everything is fine the local server attempts to build an SMTP connections for each of the MX servers in order of priority, until a connection gets successful. Finally It forwards the message to the remote server and ends the connection.
Last but not the least the remote mail server then either repeats this process, forwarding the message closer to the intended recipient, or may deliver the message directly to the recipient.
The Process of Sending an Email:
Once message gets composed and clicked on send button, your email client whether it's Outlook Express or Gmail connects to your domain's SMTP server.
The SMTP server then processes the recipient's email address. If the domain name is the same as the sender's, the message is routed directly over to the domain's POP3 or IMAP server SO that no routing between servers is needed. If the domain is different, though, the SMTP server will have to communicate with the other domain's server.
To find out the recipient's server, the sender's SMTP server has to communicate with the DNS, or Domain Name Server. The DNS takes the recipient's email domain name and translates it into an IP address.
The recipient's SMTP server now scans the incoming message. Once the domain and the user name gets recognised, then it forwards the message along to the domain's POP3 or IMAP server. From there, it is placed in a sendmail queue until the recipient's email client allows it to be downloaded. Finally the message can be read by the recipient.
Steps to enable the mail exchanger in cloud server:
First you need to Login to our WHM Panel.
You can see Search box on the right hand side, kindly search for email routing and click on it.
By default the value is set to Local Mail Exchanger. If you are using different mail server then you need to change the value to remote mail exchanger.
Local Mail Exchanger: It handles all the mails sent from the server to this domain locally i.e. deliver it to the mailbox that is on the server rather than a remote mail service.
Remote Mail Exchanger: Ithandles all the mails sent to this domain remotely i.e. deliver it to the mail service determined by the domain’s MX record. For example, if you have Zoho apps set up as your domain’s mail service, deliver the emails to the mailbox on Zoho’s servers rather than your cPanel server.