How to Set Up DKIM, Mail Routing and Gmail for Your Domain
Turn on DKIM, choose local or remote mail routing, and add Google Workspace (Gmail) MX records in one click in the FREAKHOSTING Web Panel.
These domain settings decide how trustworthy your email looks and where incoming email is delivered. Turning on DKIM helps your messages land in inboxes instead of spam. Mail routing tells the server whether your mailboxes are here or with another provider such as Gmail.
DKIM adds a digital signature to every email you send, so receiving servers can check it really came from your domain. DKIM helps improve email deliverability and prevents email spoofing. It’s off by default.
1
Switch DKIM on
In Email authentication, turn on the DKIM toggle. You’ll see DKIM authentication enabled.
2
Check the status
A NOT VALIDATED badge shows until the DKIM record can be found in DNS.
DKIM turned on
3
If your DNS is somewhere else, add the record there
If your domain uses our nameservers, there’s nothing else to do. If your DNS is managed elsewhere (for example at your registrar), add a TXT record with the name hostingcp._domainkey and copy the value shown in the panel.
4
Wait for validation
Allow up to 48 hours for the badge to change.
For the best delivery, also make sure your domain has an SPF record and a DMARC record. You can add them as TXT records in DNS records.
I’m using this hosting package to receive inbound emails. Your mailboxes are created in the Emails tab. This is the default.
Remote mail
I’m using a third party email server to receive inbound emails (Gmail etc.). Your mailboxes are with Google Workspace, Microsoft 365 or another provider.
If your email is with another provider but Local mail is selected, emails sent from your website (such as contact forms) to your own addresses stay on our server and never reach your real inbox. Switch to Remote mail to fix this.
If your email is with Google Workspace, the panel can add Google’s MX records for you.
1
Open DNS records
On the domain’s page, choose DNS records.
2
Click Configure now next to Gmail
In the Auto configuration area, click Configure now for Gmail.
3
Check the records
The Add Gmail MX records box lists ASPMX.L.GOOGLE.COM and the four ALT servers. Your existing MX records will be overridden.
Add Gmail MX records
4
Click Add records
Then set Mail routing settings to Remote mail (see above).
5
Finish in Google
Follow Google’s own steps to verify your domain and add Google’s SPF and DKIM records as TXT records.
Using Microsoft 365 or another provider? Add the MX records they give you by hand in DNS records, delete our default MX record, and choose Remote mail.
If your domain uses our nameservers, wait up to 48 hours. If your DNS is elsewhere, check the TXT record is named hostingcp._domainkey (some providers add your domain automatically, so enter only that part) and that the value was copied in full.
My emails go to spam
Turn on DKIM and check it validates, add SPF and DMARC records, and avoid sending lots of identical messages at once.
Contact form emails never arrive in Gmail or Outlook
Your mail routing is set to Local mail while your mailboxes are with another provider. Switch to Remote mail.
Ready to upgrade your hosting? Use code KB20 at checkout for 20% off your first order!
Last Updated: October 2026
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"FREAKHOSTING","colors":{"primary":"#1a6fd1","light":"#4da3ff","dark":"#1a6fd1"},"favicon":"https://cdn.freakhosting.com/website/favicon.ico","appearance":{"default":"dark","strict":false},"background":{"color":{"light":"#ffffff","dark":"#0a0e17"}},"seo":{"metatags":{"og:image":"https://cdn.freakhosting.com/core/assets/heldesk-main.png","og:site_name":"FREAKHOSTING Help Center","og:locale":"en_GB","twitter:site":"@freakhosting","twitter:card":"summary_large_image","author":"FREAKHOSTING LTD","robots":"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1","copyright":"Copyright 2018-2026 FREAKHOSTING LTD","theme-color":"#0a0e17","color-scheme":"light dark"},"organization":{"id":"https://freakhosting.com/#organization","name":"FREAKHOSTING","legalName":"FREAKHOSTING LTD","url":"https://freakhosting.com","logo":"https://cdn.freakhosting.com/core/assets/img/logo-footer.png","sameAs":["https://x.com/freakhosting","https://discord.gg/freakhosting","https://github.com/freakhosting"]},"indexing":"all"},"integrations":{"ga4":{"measurementId":"G-TSY6L544EM"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity",{"title":"Order a Server","description":"Browse our game server hosting plans","icon":"server","href":"https://freakhosting.com"},{"title":"Submit a Ticket","description":"Contact our 24/7 support team","icon":"ticket","href":"https://freakhosting.com/clientarea/submitticket.php"},{"title":"Join Discord","description":"Get community support and updates","icon":"discord","href":"https://discord.gg/freakhosting"}],"display":"header"},"interaction":{"drilldown":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"freakhostingltd","hasAudioNarration":false,"actualSubdomain":"freakhostingltd","customDomains":["help.freakhosting.com"],"gitSource":{"type":"github","owner":"freakhosting","repo":"help.freakhosting.com","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae8717f21b4422fadc75e7b","collectionId":"69ae89b0-5c64-4813-9d43-b06d4b2f36ac","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae8717f21b4422fadc75e7b"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae8717f21b4422fadc75e7b","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"Games","count":611},{"language":"default","tag":"Popular Games","count":179},{"language":"default","tag":"Survival Games","count":161},{"language":"default","tag":"Game Panel guides","count":136},{"language":"default","tag":"Guides \u0026 tips","count":118},{"language":"default","tag":"Commands \u0026 settings","count":116},{"language":"default","tag":"Shooters","count":97},{"language":"default","tag":"Racing \u0026 Simulation","count":72},{"language":"default","tag":"Troubleshooting","count":58},{"language":"default","tag":"Sandbox \u0026 Building","count":53}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"portals/web-panel/how-to-configure-email-authentication-and-routing","slug":"/portals/web-panel/how-to-configure-email-authentication-and-routing","pageMetadata":{"title":"How to Set Up DKIM, Mail Routing and Gmail for Your Domain","sidebarTitle":"Email Authentication \u0026 Routing","description":"Turn on DKIM, choose local or remote mail routing, and add Google Workspace (Gmail) MX records in one click in the FREAKHOSTING Web Panel.","keywords":["FREAKHOSTING","web panel","DKIM","email authentication","mail routing","Gmail","Google Workspace","MX records","spam folder"],"href":"/portals/web-panel/how-to-configure-email-authentication-and-routing"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Turn on DKIM, choose local or remote mail routing, and add Google Workspace (Gmail) MX records in one click in the FREAKHOSTING Web Panel.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,hr:`hr`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,CardGroup,Frame,Heading,Info,Note,OptimizedImage,Step,Steps,Table,Tip,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`These domain settings decide how trustworthy your email looks and where incoming email is delivered. Turning on `,_jsx(_components.strong,{children:`DKIM`}),` helps your messages land in inboxes instead of spam. `,_jsx(_components.strong,{children:`Mail routing`}),` tells the server whether your mailboxes are here or with another provider such as Gmail.`]}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Difficulty`,icon:`gauge`,children:_jsx(_components.p,{children:`Intermediate`})}),_jsx(Card,{title:`Time`,icon:`clock`,children:_jsx(_components.p,{children:`10 minutes`})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`open-the-domain’s-email-settings`,children:`Open the domain’s email settings`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open Domains`,children:_jsxs(_components.p,{children:[`Go to `,_jsx(_components.a,{href:`https://web.freakhosting.com/websites`,children:_jsx(_components.strong,{children:`Websites`})}),`, click your website, then click `,_jsx(_components.strong,{children:`Domains`}),`.`]})}),_jsx(Step,{title:`Manage the domain`,children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`⋮`}),` → `,_jsx(_components.strong,{children:`Manage`}),` next to the domain. `,_jsx(_components.strong,{children:`Email authentication`}),` and `,_jsx(_components.strong,{children:`Mail routing settings`}),` are on the left.`]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`turn-on-dkim`,children:`Turn on DKIM`}),`\n`,_jsxs(_components.p,{children:[`DKIM adds a digital signature to every email you send, so receiving servers can check it really came from your domain. `,_jsx(_components.em,{children:`DKIM helps improve email deliverability and prevents email spoofing.`}),` It’s `,_jsx(_components.strong,{children:`off`}),` by default.`]}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Switch DKIM on`,children:_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Email authentication`}),`, turn on the `,_jsx(_components.strong,{children:`DKIM`}),` toggle. You’ll see `,_jsx(_components.em,{children:`DKIM authentication enabled`}),`.`]})}),_jsxs(Step,{title:`Check the status`,children:[_jsxs(_components.p,{children:[`A `,_jsx(_components.strong,{children:`NOT VALIDATED`}),` badge shows until the DKIM record can be found in DNS.`]}),_jsx(Frame,{caption:`DKIM turned on`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/dkim-enabled.png?fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=70bf92e6688fca280597b91935b09955`,alt:`Email authentication section with DKIM switched on, a NOT VALIDATED badge and instructions to add a TXT record called hostingcp._domainkey`,\"data-og-width\":`1298`,width:`1298`,\"data-og-height\":`530`,height:`530`,\"data-path\":`images/web-panel/dkim-enabled.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/dkim-enabled.png?w=280\u0026fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=dd33168c25bd425cc94f511066090517 280w, https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/dkim-enabled.png?w=560\u0026fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=5258f9dee6fd9b1e0794832e7b7e7d4a 560w, https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/dkim-enabled.png?w=840\u0026fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=919870c507c89c149d19d6fbcf31d360 840w, https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/dkim-enabled.png?w=1100\u0026fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=ec19debe7a68c51eaaed63e8ea66287e 1100w, https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/dkim-enabled.png?w=1650\u0026fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=816443fabc9d2060b9f15a8bbe4ffeb7 1650w, https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/dkim-enabled.png?w=2500\u0026fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=c3763555e53c309ca2c1016002a8fcac 2500w`})})]}),_jsx(Step,{title:`If your DNS is somewhere else, add the record there`,children:_jsxs(_components.p,{children:[`If your domain uses our nameservers, there’s nothing else to do. If your DNS is managed elsewhere (for example at your registrar), add a `,_jsx(_components.strong,{children:`TXT`}),` record with the name `,_jsx(_components.code,{children:`hostingcp._domainkey`}),` and copy the value shown in the panel.`]})}),_jsx(Step,{title:`Wait for validation`,children:_jsx(_components.p,{children:`Allow up to 48 hours for the badge to change.`})})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`For the best delivery, also make sure your domain has an SPF record and a DMARC record. You can add them as `,_jsx(_components.strong,{children:`TXT`}),` records in `,_jsx(_components.a,{href:`/portals/web-panel/how-to-manage-dns-records-and-dnssec`,children:`DNS records`}),`.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`choose-where-incoming-email-goes`,children:`Choose where incoming email goes`}),`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Mail routing settings`}),`, choose one option:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Option`}),_jsx(_components.th,{children:`Choose it when`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Local mail`})}),_jsxs(_components.td,{children:[_jsx(_components.em,{children:`I’m using this hosting package to receive inbound emails.`}),` Your mailboxes are created in the `,_jsx(_components.a,{href:`/portals/web-panel/how-to-create-and-manage-email-accounts`,children:`Emails tab`}),`. This is the default.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Remote mail`})}),_jsxs(_components.td,{children:[_jsx(_components.em,{children:`I’m using a third party email server to receive inbound emails (Gmail etc.).`}),` Your mailboxes are with Google Workspace, Microsoft 365 or another provider.`]})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`If your email is with another provider but `,_jsx(_components.strong,{children:`Local mail`}),` is selected, emails sent from your website (such as contact forms) to your own addresses stay on our server and never reach your real inbox. Switch to `,_jsx(_components.strong,{children:`Remote mail`}),` to fix this.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`use-gmail-or-google-workspace`,children:`Use Gmail or Google Workspace`}),`\n`,_jsx(_components.p,{children:`If your email is with Google Workspace, the panel can add Google’s MX records for you.`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open DNS records`,children:_jsxs(_components.p,{children:[`On the domain’s page, choose `,_jsx(_components.strong,{children:`DNS records`}),`.`]})}),_jsx(Step,{title:`Click Configure now next to Gmail`,children:_jsxs(_components.p,{children:[`In the `,_jsx(_components.strong,{children:`Auto configuration`}),` area, click `,_jsx(_components.strong,{children:`Configure now`}),` for Gmail.`]})}),_jsxs(Step,{title:`Check the records`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Add Gmail MX records`}),` box lists `,_jsx(_components.code,{children:`ASPMX.L.GOOGLE.COM`}),` and the four `,_jsx(_components.code,{children:`ALT`}),` servers. Your existing MX records will be overridden.`]}),_jsx(Frame,{caption:`Add Gmail MX records`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/gmail-mx-dialog.png?fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=a1b8dd6f284ca6360da58058797b0f10`,alt:`Add Gmail MX records dialog listing ASPMX.L.GOOGLE.COM and ALT1 to ALT4 Google mail servers, a warning that existing MX records will be overridden, and Cancel and Add records buttons`,\"data-og-width\":`608`,width:`608`,\"data-og-height\":`356`,height:`356`,\"data-path\":`images/web-panel/gmail-mx-dialog.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/gmail-mx-dialog.png?w=280\u0026fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=1a49c2a5390f17569530c10e39fd42ff 280w, https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/gmail-mx-dialog.png?w=560\u0026fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=06f1f9613120b8db9a214d036ab9150d 560w, https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/gmail-mx-dialog.png?w=840\u0026fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=8e891fdc8f6b270ef60ea570562cc1c0 840w, https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/gmail-mx-dialog.png?w=1100\u0026fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=1b99f06bba94ea59b166b366740a30f1 1100w, https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/gmail-mx-dialog.png?w=1650\u0026fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=d7e565d4ba2f057e5ab16166e0509a8f 1650w, https://mintcdn.com/freakhostingltd/p0TGPFhMJ61UBHgI/images/web-panel/gmail-mx-dialog.png?w=2500\u0026fit=max\u0026auto=format\u0026n=p0TGPFhMJ61UBHgI\u0026q=85\u0026s=d8fef2e2a04473dff6bb770718116a5c 2500w`})})]}),_jsx(Step,{title:`Click Add records`,children:_jsxs(_components.p,{children:[`Then set `,_jsx(_components.strong,{children:`Mail routing settings`}),` to `,_jsx(_components.strong,{children:`Remote mail`}),` (see above).`]})}),_jsx(Step,{title:`Finish in Google`,children:_jsx(_components.p,{children:`Follow Google’s own steps to verify your domain and add Google’s SPF and DKIM records as TXT records.`})})]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Using Microsoft 365 or another provider? Add the MX records they give you by hand in `,_jsx(_components.a,{href:`/portals/web-panel/how-to-manage-dns-records-and-dnssec`,children:`DNS records`}),`, delete our default MX record, and choose `,_jsx(_components.strong,{children:`Remote mail`}),`.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`DKIM still says NOT VALIDATED`,id:`dkim-still-says-not-validated`,children:_jsxs(_components.p,{children:[`If your domain uses our nameservers, wait up to 48 hours. If your DNS is elsewhere, check the TXT record is named `,_jsx(_components.code,{children:`hostingcp._domainkey`}),` (some providers add your domain automatically, so enter only that part) and that the value was copied in full.`]})}),_jsx(Accordion,{title:`My emails go to spam`,id:`my-emails-go-to-spam`,children:_jsx(_components.p,{children:`Turn on DKIM and check it validates, add SPF and DMARC records, and avoid sending lots of identical messages at once.`})}),_jsx(Accordion,{title:`Contact form emails never arrive in Gmail or Outlook`,id:`contact-form-emails-never-arrive-in-gmail-or-outlook`,children:_jsxs(_components.p,{children:[`Your mail routing is set to `,_jsx(_components.strong,{children:`Local mail`}),` while your mailboxes are with another provider. Switch to `,_jsx(_components.strong,{children:`Remote mail`}),`.`]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Note,{children:[_jsx(Heading,{level:`3`,id:`need-extra-help`,children:`Need Extra Help?`}),_jsx(_components.p,{children:`If you encounter any issues, our support team is ready to assist:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Live Chat:`}),` Quick assistance via our website.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Support Ticket:`}),` `,_jsx(_components.a,{href:`https://freakhosting.com/clientarea/submitticket.php`,children:`Open a Ticket`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Discord:`}),` `,_jsx(_components.a,{href:`https://discord.gg/freakhosting`,children:`Join our Community`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Email:`}),` `,_jsx(_components.a,{href:`mailto:support@freakhosting.com`,children:`support@freakhosting.com`})]}),`\n`]})]}),`\n`,_jsxs(Tip,{children:[_jsx(Heading,{level:`3`,id:`save-on-your-hosting`,children:`Save on Your Hosting`}),_jsxs(_components.p,{children:[`Ready to upgrade your hosting? Use code `,_jsx(_components.strong,{children:`KB20`}),` at checkout for `,_jsx(_components.strong,{children:`20% off`}),` your first order!`]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(`div`,{align:`center`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Last Updated:`}),` October 2026`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"How to Set Up DKIM, Mail Routing and Gmail for Your Domain","sidebarTitle":"Email Authentication \u0026 Routing","description":"Turn on DKIM, choose local or remote mail routing, and add Google Workspace (Gmail) MX records in one click in the FREAKHOSTING Web Panel.","keywords":["FREAKHOSTING","web panel","DKIM","email authentication","mail routing","Gmail","Google Workspace","MX records","spam folder"],"href":"/portals/web-panel/how-to-configure-email-authentication-and-routing"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Open the domain’s email settings","slug":"open-the-domain’s-email-settings","depth":2,"children":[]},{"title":"Turn on DKIM","slug":"turn-on-dkim","depth":2,"children":[]},{"title":"Choose where incoming email goes","slug":"choose-where-incoming-email-goes","depth":2,"children":[]},{"title":"Use Gmail or Google Workspace","slug":"use-gmail-or-google-workspace","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[{"title":"Need Extra Help?","slug":"need-extra-help","depth":3,"children":[]},{"title":"Save on Your Hosting","slug":"save-on-your-hosting","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"freakhostingltd","siteName":"FREAKHOSTING","title":"How to Set Up DKIM, Mail Routing and Gmail for Your Domain - FREAKHOSTING","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-24T16:57:31.124Z","originalFileLocation":"portals/web-panel/how-to-configure-email-authentication-and-routing.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Turn on DKIM, choose local or remote mail routing, and add Google Workspace (Gmail) MX records in one click in the FREAKHOSTING Web Panel.\">\u003cmeta data-mint-head name=\"application-name\" content=\"FREAKHOSTING\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/x-icon\" sizes=\"180x180\" href=\"https://cdn.freakhosting.com/website/favicon.ico\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"32x32\" href=\"https://cdn.freakhosting.com/website/favicon.ico\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"16x16\" href=\"https://cdn.freakhosting.com/website/favicon.ico\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://cdn.freakhosting.com/website/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"How to Set Up DKIM, Mail Routing and Gmail for Your Domain - FREAKHOSTING\">\u003cmeta data-mint-head property=\"og:description\" content=\"Turn on DKIM, choose local or remote mail routing, and add Google Workspace (Gmail) MX records in one click in the FREAKHOSTING Web Panel.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FREAKHOSTING Help Center\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://help.freakhosting.com/portals/web-panel/how-to-configure-email-authentication-and-routing\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cdn.freakhosting.com/core/assets/heldesk-main.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"How to Set Up DKIM, Mail Routing and Gmail for Your Domain - FREAKHOSTING\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Turn on DKIM, choose local or remote mail routing, and add Google Workspace (Gmail) MX records in one click in the FREAKHOSTING Web Panel.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cdn.freakhosting.com/core/assets/heldesk-main.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/freakhostingltd/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FREAKHOSTING\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1a6fd1\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_GB\">\u003cmeta data-mint-head name=\"author\" content=\"FREAKHOSTING LTD\">\u003cmeta data-mint-head name=\"copyright\" content=\"Copyright 2018-2026 FREAKHOSTING LTD\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#0a0e17\">\u003cmeta data-mint-head name=\"color-scheme\" content=\"light dark\">\u003clink data-mint-head rel=\"canonical\" href=\"https://help.freakhosting.com/portals/web-panel/how-to-configure-email-authentication-and-routing\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/portals/web-panel/how-to-configure-email-authentication-and-routing.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://freakhosting.com/#organization\",\"name\":\"FREAKHOSTING\",\"legalName\":\"FREAKHOSTING LTD\",\"url\":\"https://freakhosting.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://cdn.freakhosting.com/core/assets/img/logo-footer.png\"},\"sameAs\":[\"https://x.com/freakhosting\",\"https://discord.gg/freakhosting\",\"https://github.com/freakhosting\"]},{\"@type\":\"WebSite\",\"@id\":\"https://help.freakhosting.com#website\",\"name\":\"FREAKHOSTING\",\"url\":\"https://help.freakhosting.com\",\"publisher\":{\"@id\":\"https://freakhosting.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://help.freakhosting.com/portals/web-panel/how-to-configure-email-authentication-and-routing#webpage\",\"url\":\"https://help.freakhosting.com/portals/web-panel/how-to-configure-email-authentication-and-routing\",\"name\":\"How to Set Up DKIM, Mail Routing and Gmail for Your Domain\",\"description\":\"Turn on DKIM, choose local or remote mail routing, and add Google Workspace (Gmail) MX records in one click in the FREAKHOSTING Web Panel.\",\"dateModified\":\"2026-10-24T16:57:31.124Z\",\"isPartOf\":{\"@id\":\"https://help.freakhosting.com#website\"},\"breadcrumb\":{\"@id\":\"https://help.freakhosting.com/portals/web-panel/how-to-configure-email-authentication-and-routing#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://help.freakhosting.com/portals/web-panel/how-to-configure-email-authentication-and-routing#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Domains \u0026 DNS\",\"item\":\"https://help.freakhosting.com/portals/web-panel/how-to-manage-domains-and-dns-records\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Up DKIM, Mail Routing and Gmail for Your Domain\",\"item\":\"https://help.freakhosting.com/portals/web-panel/how-to-configure-email-authentication-and-routing\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://help.freakhosting.com/portals/web-panel/how-to-configure-email-authentication-and-routing#article\",\"headline\":\"How to Set Up DKIM, Mail Routing and Gmail for Your Domain\",\"name\":\"How to Set Up DKIM, Mail Routing and Gmail for Your Domain\",\"description\":\"Turn on DKIM, choose local or remote mail routing, and add Google Workspace (Gmail) MX records in one click in the FREAKHOSTING Web Panel.\",\"url\":\"https://help.freakhosting.com/portals/web-panel/how-to-configure-email-authentication-and-routing\",\"mainEntityOfPage\":{\"@id\":\"https://help.freakhosting.com/portals/web-panel/how-to-configure-email-authentication-and-routing#webpage\"},\"image\":\"https://cdn.freakhosting.com/core/assets/heldesk-main.png\",\"dateModified\":\"2026-10-24T16:57:31.124Z\",\"keywords\":\"FREAKHOSTING, web panel, DKIM, email authentication, mail routing, Gmail, Google Workspace, MX records, spam folder\",\"publisher\":{\"@id\":\"https://freakhosting.com/#organization\"},\"isPartOf\":{\"@id\":\"https://help.freakhosting.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FREAKHOSTING\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"FREAKHOSTING","nav":{"global":null,"tabs":[{"tab":"Get Started","icon":"rocket","pages":[{"title":"Get Started","href":"/get-started/welcome"}]},{"tab":"Billing Area","icon":"credit-card","pages":[{"title":"Billing Area","href":"/portals/billing/how-to-login-and-access-the-billing-panel"}]},{"tab":"Game Panel","icon":"gamepad","pages":[{"title":"Game Panel","href":"/portals/game-panel/how-to-login-and-access-the-game-panel"}]},{"tab":"VPS Panel","icon":"server","pages":[{"title":"VPS Panel","href":"/portals/vps-panel/how-to-login-and-access-the-vps-control-panel"}]},{"tab":"Web Panel","icon":"globe","groups":[{"group":"Getting Started","pages":[{"title":"How to Find Your Way Around the Web Hosting Panel","sidebarTitle":"Panel Overview","href":"/portals/web-panel/web-panel-overview-and-dashboard"},{"title":"How to Add, Restart, Disable and Delete a Website","sidebarTitle":"Manage Websites","href":"/portals/web-panel/how-to-add-and-manage-websites"},{"title":"How to Install WordPress and Other Apps","sidebarTitle":"Install WordPress \u0026 Apps","href":"/portals/web-panel/how-to-install-wordpress-and-web-apps"},{"title":"How to Manage WordPress With the WordPress Toolkit","sidebarTitle":"WordPress Toolkit","href":"/portals/web-panel/how-to-manage-wordpress-with-the-toolkit"},{"title":"How to Give Someone Access to Your Websites","sidebarTitle":"Team \u0026 Collaborators","href":"/portals/web-panel/how-to-invite-team-members-and-collaborators"},{"title":"How to Manage Your Panel Account, Two-Factor Authentication and Plan Usage","sidebarTitle":"Account, 2FA \u0026 Usage","href":"/portals/web-panel/how-to-manage-your-account-and-two-factor-authentication"}]},{"group":"File Management","pages":[{"title":"How to Use the File Manager","sidebarTitle":"File Manager","href":"/portals/web-panel/how-to-use-the-file-manager"},{"title":"How to Create and Manage FTP Accounts","sidebarTitle":"FTP Accounts","href":"/portals/web-panel/how-to-create-and-manage-ftp-accounts"},{"title":"How to Connect to Your Website with SSH and SFTP","sidebarTitle":"SSH \u0026 SFTP Access","href":"/portals/web-panel/how-to-connect-with-ssh-and-sftp"}]},{"group":"Domains \u0026 DNS","pages":[{"title":"How to Point Your Domain and Manage Domains and Subdomains","sidebarTitle":"Domains \u0026 Subdomains","href":"/portals/web-panel/how-to-manage-domains-and-dns-records"},{"title":"How to Manage DNS Records and DNSSEC","sidebarTitle":"DNS Records \u0026 DNSSEC","description":"Add, edit and delete DNS records (A, AAAA, CNAME, TXT, MX, SRV, CAA and more) for your domain in the FREAKHOSTING Web Panel, and turn on DNSSEC.","href":"/portals/web-panel/how-to-manage-dns-records-and-dnssec"},{"title":"How to Set Up DKIM, Mail Routing and Gmail for Your Domain","sidebarTitle":"Email Authentication \u0026 Routing","href":"/portals/web-panel/how-to-configure-email-authentication-and-routing"},{"title":"How to Set Up URL Redirects","sidebarTitle":"URL Redirects","description":"Create 301 (permanent) and 302 (temporary) redirects in the FREAKHOSTING Web Panel to send visitors from an old page or domain to a new address.","href":"/portals/web-panel/how-to-setup-url-redirects"},{"title":"How to Connect Cloudflare or Slack to Your Web Hosting","sidebarTitle":"Cloudflare \u0026 Slack","href":"/portals/web-panel/how-to-connect-cloudflare-and-slack-integrations"}]},{"group":"Databases","pages":[{"title":"How to Create and Manage MySQL Databases","sidebarTitle":"MySQL Databases","href":"/portals/web-panel/how-to-manage-mysql-databases"}]},{"group":"SSL \u0026 Security","pages":[{"title":"How to Get a Free SSL Certificate and Force HTTPS","sidebarTitle":"SSL \u0026 HTTPS","href":"/portals/web-panel/how-to-manage-ssl-certificates-and-https"},{"title":"How to Install a Custom SSL Certificate and Fix SSL Problems","sidebarTitle":"Custom SSL \u0026 Troubleshooting","href":"/portals/web-panel/how-to-install-custom-ssl-and-troubleshoot"}]},{"group":"Email Services","pages":[{"title":"How to Create and Manage Email Accounts","sidebarTitle":"Email Accounts","href":"/portals/web-panel/how-to-create-and-manage-email-accounts"},{"title":"How to Configure Spam Filtering, Forwarding and Auto-Replies","sidebarTitle":"Spam, Forwarding \u0026 Auto-Replies","href":"/portals/web-panel/how-to-configure-email-spam-and-forwarding"},{"title":"How to Use Webmail and Set Up Email on Your Computer or Phone","sidebarTitle":"Webmail \u0026 Email Apps","href":"/portals/web-panel/how-to-setup-email-clients-and-devices"}]},{"group":"Performance \u0026 PHP","pages":[{"title":"How to Speed Up Your Website","sidebarTitle":"Website Performance","href":"/portals/web-panel/how-to-optimize-website-performance"},{"title":"How to Change Your PHP Version, Extensions and php.ini Settings","sidebarTitle":"PHP Version \u0026 Settings","href":"/portals/web-panel/how-to-change-php-version"},{"title":"How to Run a Node.js App with Worker Processes","sidebarTitle":"Node.js \u0026 Worker Processes","href":"/portals/web-panel/how-to-deploy-nodejs-applications"},{"title":"How to Set Up Cron Jobs (Scheduled Tasks)","sidebarTitle":"Cron Jobs","href":"/portals/web-panel/how-to-set-up-cron-jobs"}]},{"group":"Backups \u0026 Analytics","pages":[{"title":"How to Restore Your Website From a Backup","sidebarTitle":"Backups \u0026 Restore","href":"/portals/web-panel/how-to-create-and-restore-backups"},{"title":"How to Check Your Website's Visitors and Bandwidth","sidebarTitle":"Analytics \u0026 Bandwidth","href":"/portals/web-panel/understanding-website-analytics-and-bandwidth"}]}]},{"tab":"Firewall Panel","icon":"shield","pages":[{"title":"Firewall Panel","href":"/portals/firewall/firewall-panel-overview"}]},{"tab":"Games","icon":"dice","pages":[{"title":"Games","href":"/games/getting-started"}]},{"tab":"Other","icon":"ellipsis","pages":[{"title":"Other","href":"/portals/other/how-to-connect-to-database-using-heidisql"}]}]},"basePath":"","title":"How to Set Up DKIM, Mail Routing and Gmail for Your Domain - FREAKHOSTING","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DW6UFrUy.js","DynamicMarkdown-B62XqCSI.js","zoom-image-lightbox-eHyQ0tlO.js","lightbox-handle-r17bVUz3.js"]}