Configure server to send and receive emails


Jan 23, 2018
cPanel Access Level
Root Administrator
Hi all!

I'have a Centos 7 dedicated server with WHM/cPanel v.74.0.6 and a domain name (let's say on a different registrar.

Now, what i'm trying to do is to configure the server in order to also send and receive emails then forward it to a gmail account, in order to use it's web client interface.

Obviously i need to configure it the right way, so that, when the mail start from my server, everything like rDNS, MX records, SPF, name of the server (, and all the other stuff to avoid anti-spam protection, are setted as it should be.

There is a step by step guide to do this? if not, can you give me any advice?

Thank you in advance for any help

PS: hope that answering this question will help someone else.
Last edited:


Staff member
Apr 11, 2011
Hello @aseptik,

If your goal is to use Gmail as your email client, you may want to consider simply adding your email account in Gmail under Settings >> Accounts and Import. This will allow you to see all of your emails in Gmail and send emails from the email account, similar to how Webmail works.

Thank you.