{"id":33079,"date":"2021-07-20T17:51:35","date_gmt":"2021-07-20T17:51:35","guid":{"rendered":"\/tutorials\/?p=33079"},"modified":"2026-03-10T10:07:01","modified_gmt":"2026-03-10T10:07:01","slug":"how-to-host-your-own-email-server","status":"publish","type":"post","link":"\/my\/tutorials\/how-to-host-your-own-email-server","title":{"rendered":"Host Your Own Email Server: How to Set Up a Self-Hosted Email Service in 2026"},"content":{"rendered":"<p>Business owners typically use pre-configured mail servers from third-party providers to host their mailing services. While they are sufficient for some users, others might need higher flexibility and control.<\/p><p>For such users, self-hosting email servers can be a better option. In addition to providing complete control over the service, they are more secure since each account has a dedicated, isolated environment.<\/p><p>In this article, we will explain how to host your own email server with Hostinger&rsquo;s virtual private server (VPS) using the CyberPanel control panel. Before getting into the steps, we will also explain the benefits of creating a private mail server.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Linux-Commands-Cheat-Sheet.pdf\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"1024\" height=\"283\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet-1024x283.png\" alt=\"\" class=\"wp-image-69262\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/11\/Linux-cheat-sheet-1536x425.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/11\/Linux-cheat-sheet-300x83.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/11\/Linux-cheat-sheet-150x41.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/11\/Linux-cheat-sheet-768x212.png 768w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/11\/Linux-cheat-sheet.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-why-host-your-own-email-server\">Why Host Your Own Email Server?<\/h2><p>A self-hosted email server requires some technical expertise to set up and manage. However, it has many benefits compared to a third-party service:<\/p><ul class=\"wp-block-list\">\n<li><strong>Control<\/strong>. Users can choose a mail transfer agent (MTA), set up any email server software, and customize the features. This is different from third-party providers, commonly offering pre-configured plans with limited customization.<\/li>\n\n\n\n<li><strong>Data privacy<\/strong>. A VPS provides each account with an isolated environment. It prevents other users from accessing your data, improving your email server privacy.&nbsp;<\/li>\n\n\n\n<li><strong>Reputation<\/strong>. A free email provider usually lacks a <a href=\"\/my\/tutorials\/dedicated-ip\">dedicated IP address<\/a>. This might impact deliverability since other mailing services within the same server can affect it.<\/li>\n\n\n\n<li><strong>Cost efficiency<\/strong>. Mailing hosting services might be cheaper in the short term. However, a self-hosted server can host more email accounts and provide more storage.<\/li>\n\n\n\n<li><strong>Scalability<\/strong>. Users can scale up their private email server hardware and set up a load balancer. In comparison, email hosting providers usually offer limited plans with fixed resources.<\/li>\n\n\n\n<li><strong>Security<\/strong>. A self-hosted server is safer when properly configured since users can implement any security measures and firewall rules based on their needs.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-how-to-host-your-own-mail-server\">How to Host Your Own Mail Server<\/h2><p>In this section, we will explain the steps on how to host your own private email server, from purchasing a VPS hosting plan to sending a test email.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-select-the-right-vps-plan\">1. Select the Right VPS Plan<\/h3><p>While you can host an email service on a personal computer, managing it requires more time and effort. Moreover, you would need server-grade hardware to run the machine 24\/7, increasing the total cost.<\/p><p>Email hosting on a VPS is simpler since the provider will set up and manage the hardware. As such, it is more cost-efficient and offers various features that help simplify the email server configuration process.<\/p><p>To pick the <a href=\"\/my\/tutorials\/best-vps-hosting\">best VPS hosting provider<\/a> and plan for your needs, consider the following factors:<\/p><ul class=\"wp-block-list\">\n<li><strong>Resources<\/strong>. The VPS plan must offer sufficient bandwidth, storage, and computing power to host your email service.<\/li>\n\n\n\n<li><strong>Reliability and uptime<\/strong>. The ideal VPS hosting plan should guarantee high uptime to maintain your mailing service availability.<\/li>\n\n\n\n<li><strong>Dedicated IP<\/strong>. A dedicated IP address isolates your mailing service from other users, improving email reputation and deliverability.<\/li>\n\n\n\n<li><strong>Management tool<\/strong>. Management tools like a graphical control panel and one-click installer help simplify email server maintenance and configuration.<\/li>\n<\/ul><p>Hostinger offers four <a href=\"\/my\/vps-hosting\">VPS KVM plans<\/a> starting at <strong>RM29.99\/month<\/strong> with a 30-day money-back guarantee. We use reliable hardware and network infrastructure to ensure <strong>99.9% uptime<\/strong>, ideal for self-hosted email for businesses.<\/p><p>All Hostinger VPS hosting plans include a dedicated IP address to improve email deliverability and reputation. Moreover, users can configure various operating systems and control panels in one click via <strong>hPanel <\/strong>without any <a href=\"\/my\/tutorials\/linux-commands\">Linux commands<\/a>.<\/p><p>We also provide the <a href=\"\/blog\/vps-ai-assistant\">Kodee AI Assistant<\/a> to help troubleshoot server problems using simple prompts. For example, ask, &ldquo;I have pointed my domain using custom nameservers, but it won&rsquo;t propagate. Explain the issues and their solutions,&rdquo; and the tool will give the guide to fix it.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a href=\"\/my\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner-1024x300.png\" alt=\"\" class=\"wp-image-77934\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/02\/VPS-hosting-banner.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/02\/VPS-hosting-banner-300x88.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/02\/VPS-hosting-banner-150x44.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/02\/VPS-hosting-banner-768x225.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-2-set-up-your-virtual-private-server\">2. Set Up Your Virtual Private Server<\/h3><p>After purchasing a plan, navigate to the <strong>VPS<\/strong> section on the top menu of hPanel and select your new server. Complete the setup process by entering a hostname, selecting a server location, and choosing an operating system.<\/p><p>For this tutorial, we will use <strong>AlmaLinux 8 with CyberPanel<\/strong>. You can change the operating system anytime by following these steps:<\/p><ol class=\"wp-block-list\">\n<li>Log in to<strong> <\/strong><a href=\"https:\/\/hpanel.hostinger.com\/\" target=\"_blank\" rel=\"noopener\">hPanel<\/a> and head to <strong>VPS <\/strong>on the top menu. Select your server.<\/li>\n\n\n\n<li>On the sidebar, go to <strong>Settings<\/strong> &rarr; <strong>OS &amp; Panel<\/strong> &rarr; <strong>Operating System<\/strong>.<\/li>\n\n\n\n<li>Select <strong>OS with Control Panel<\/strong>.<\/li>\n\n\n\n<li>From the drop-down menu, select <strong>AlmaLinux 8 with CyberPanel<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Change OS<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/The-operating-system-installation-menu-in-hPanel.png\"><img decoding=\"async\" width=\"1024\" height=\"492\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/The-operating-system-installation-menu-in-hPanel-1024x492.png\" alt=\"The operating system installation menu in hPanel\" class=\"wp-image-100372\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/The-operating-system-installation-menu-in-hPanel-1024x492.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/The-operating-system-installation-menu-in-hPanel-300x144.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/The-operating-system-installation-menu-in-hPanel-150x72.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/The-operating-system-installation-menu-in-hPanel-768x369.png 768w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/The-operating-system-installation-menu-in-hPanel.png 1260w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>    <p class=\"warning\">\n        <strong>Warning!<\/strong> Changing your VPS operating system and control panel will wipe all your existing data. We strongly suggest creating a backup before doing so.    <\/p>\n    \n\n\n\n<\/p><p>If you prefer to use another Linux distribution, install CyberPanel using commands. To do so, connect to your remote server <a href=\"\/my\/tutorials\/how-to-use-putty-ssh\">using an SSH client like PuTTY<\/a>.<\/p><p>Enter the SSH login credentials, which you can obtain in your VPS overview&rsquo;s <strong>SSH Access<\/strong> tab. Run the following command to start the installation wizard and follow the instructions:<\/p><pre class=\"wp-block-preformatted\">sh &lt;(curl https:\/\/cyberpanel.net\/install.sh || wget -O - https:\/\/cyberpanel.net\/install.sh)<\/pre><h3 class=\"wp-block-heading\" id=\"h-3-point-the-domain-to-your-mail-server\">3. Point the Domain to Your Mail Server<\/h3><p>After setting up your VPS, <a href=\"\/my\/domain-name-search\">purchase a domain<\/a> from Hostinger. Log in to <strong>hPanel<\/strong> and follow these steps to point it to your outgoing mail server:<\/p><ol class=\"wp-block-list\">\n<li>Go to <strong>Domains <\/strong>on the top menu.<\/li>\n\n\n\n<li>Select the domain you want to configure.<\/li>\n\n\n\n<li>Navigate to <strong>DNS\/Nameservers <\/strong>on the sidebar &rarr; <strong>Child Nameservers<\/strong>.<\/li>\n\n\n\n<li>Name your child nameservers. For simplicity, we&rsquo;ll name them <strong>ns1.domain.tld<\/strong> and <strong>ns2.domain.tld<\/strong>.<\/li>\n\n\n\n<li>Enter your VPS <strong>IP address<\/strong>. You can find this information in the <strong>VPS overview<\/strong> menu. Then, press both of the <strong>Save <\/strong>buttons.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/Child-nameservers-configuration-menu-in-hPanel-1.png\"><img decoding=\"async\" width=\"1024\" height=\"380\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/Child-nameservers-configuration-menu-in-hPanel-1-1024x380.png\" alt=\"Child nameservers configuration menu in hPanel\" class=\"wp-image-100373\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Child-nameservers-configuration-menu-in-hPanel-1-1024x380.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Child-nameservers-configuration-menu-in-hPanel-1-300x111.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Child-nameservers-configuration-menu-in-hPanel-1-150x56.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Child-nameservers-configuration-menu-in-hPanel-1-768x285.png 768w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Child-nameservers-configuration-menu-in-hPanel-1.png 1400w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"6\">\n<li>Navigate to the <strong>DNS Record <\/strong>tab.<\/li>\n\n\n\n<li>Under the <strong>Nameservers <\/strong>section, click <strong>Change nameservers<\/strong>.<\/li>\n\n\n\n<li>Select <strong>Change nameservers <\/strong>and enter the two child nameservers. Leave the rest of the fields empty.<\/li>\n\n\n\n<li>Press <strong>Save <\/strong>to apply the changes.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/Nameservers-configuration-menu-in-hPanel-1.png\"><img decoding=\"async\" width=\"1024\" height=\"600\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/Nameservers-configuration-menu-in-hPanel-1-1024x600.png\" alt=\"Nameservers configuration menu in hPanel\" class=\"wp-image-100374\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Nameservers-configuration-menu-in-hPanel-1-1024x600.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Nameservers-configuration-menu-in-hPanel-1-300x176.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Nameservers-configuration-menu-in-hPanel-1-150x88.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Nameservers-configuration-menu-in-hPanel-1-768x450.png 768w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Nameservers-configuration-menu-in-hPanel-1.png 1308w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Wait until the propagation process is complete, which can take up to 24 hours.<\/p><p>Note that once finished, your domain might still not point to several DNS records. We will configure them later in CyberPanel.<\/p><h3 class=\"wp-block-heading\" id=\"h-4-create-a-website-container\">4. Create a Website Container<\/h3><p>Self-hosting an email server in a <a href=\"\/my\/vps\/cyberpanel-hosting\">CyberPanel VPS<\/a> requires creating an empty website as a container. It is essential for domain binding and DNS configuration.<\/p><p>To do so, enter <strong>https:\/\/your_vps_ip:8090<\/strong> in your web browser to open CyberPanel. Alternatively, click the panel access link in hPanel&rsquo;s <strong>Operating System <\/strong>menu.<\/p><p>Enter the <strong>admin username <\/strong>and <strong>password <\/strong>to log in. If you forget the credentials, reset them via the <strong>Operating System <\/strong>menu. On the CyberPanel dashboard, follow these steps:<\/p><ol class=\"wp-block-list\">\n<li>Go to <strong>Websites<\/strong> &rarr; <strong>Create Website<\/strong>.<\/li>\n\n\n\n<li>Select <strong>Default <\/strong>from the <strong>Select Package <\/strong>drop-down menu.<\/li>\n\n\n\n<li>Choose <strong>admin <\/strong>as the <strong>Owner<\/strong>.<\/li>\n\n\n\n<li>Turn off the <strong>Test Domain <\/strong>toggle and enter your domain name without<strong> www<\/strong>.<\/li>\n\n\n\n<li>Enter an <strong>email address<\/strong> &ndash; this account will be used for email server administration.<\/li>\n\n\n\n<li>Select the <strong>PHP<\/strong> version, ideally the newest one.<\/li>\n\n\n\n<li>Check the <strong>DKIM Support<\/strong> box. It will improve your mail security, prevent spoofing, and ensure deliverability.<\/li>\n\n\n\n<li>Click <strong>Create Website<\/strong> to complete the process.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-container-creation-settings-in-CyberPanel-1.png\"><img decoding=\"async\" width=\"1024\" height=\"605\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/Website-container-creation-settings-in-CyberPanel-1-1024x605.png\" alt=\"Website container creation settings in CyberPanel\" class=\"wp-image-100375\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Website-container-creation-settings-in-CyberPanel-1-1024x605.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Website-container-creation-settings-in-CyberPanel-1-300x177.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Website-container-creation-settings-in-CyberPanel-1-150x89.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Website-container-creation-settings-in-CyberPanel-1-768x454.png 768w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/Website-container-creation-settings-in-CyberPanel-1.png 1394w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p><div><p class=\"important\"><strong>Important!<\/strong> When accessing CyberPanel for the first time, your web browser might warn you about an unsafe website. You can ignore the warning and proceed to the login page.<\/p><\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-5-create-nameservers-in-cyberpanel\">5. Create Nameservers in CyberPanel<\/h3><p>Create nameservers in CyberPanel to connect your mailing service with the domain. Here are the steps:<\/p><ol class=\"wp-block-list\">\n<li>On your CyberPanel dashboard, navigate to <strong>DNS<\/strong> &rarr; <strong>Create Nameserver<\/strong>.<\/li>\n\n\n\n<li>Enter your <strong>child nameservers <\/strong>and your <strong>VPS IP address<\/strong> in the respective fields.<\/li>\n\n\n\n<li>Select <strong>Create Nameserver<\/strong>.<\/li>\n<\/ol><p>CyberPanel will generate all the DNS records, including <strong>MX<\/strong>, which allows your server to receive and send emails. Check them by navigating to <strong>DNS &rarr; Add\/Delete record<\/strong>.<\/p><p>In addition, head to <strong>Email<\/strong> &rarr; <strong>DKIM Manager <\/strong>and select your website from the list. Ensure your domain has the <strong>public<\/strong> and <strong>private key<\/strong> pairs. Otherwise, email providers like <strong>Gmail<\/strong> might flag your messages as spam.<\/p><p>Before creating an email account, wait until the propagation completes. Use an online <a href=\"https:\/\/dnschecker.org\/all-dns-records-of-domain.php\" target=\"_blank\" rel=\"noopener\">DNS checker tool<\/a> to see if all the records appear, then proceed to the next step.<\/p><h3 class=\"wp-block-heading\" id=\"h-6-issue-an-ssl-certificate-for-the-domain\">6. Issue an SSL Certificate for the Domain<\/h3><p><a href=\"\/my\/tutorials\/what-is-ssl\">Secure sockets layer (SSL)<\/a> certificates enable encryption to improve your email server security. CyberPanel provides free, unlimited Let&rsquo;s Encrypt SSL, which you can issue via the control panel dashboard.<\/p><p>To do so, go to <strong>SSL<\/strong> &rarr; <strong>MailServer SSL<\/strong>. Select your domain from the drop-down list, then click <strong>Issue SSL<\/strong>. The process might take a few minutes.<\/p><h3 class=\"wp-block-heading\" id=\"h-7-set-up-reverse-dns-for-your-vps\">7. Set Up Reverse DNS for Your VPS<\/h3><p>Setting up a reverse DNS helps improve message deliverability. It enables other mail servers like <strong>Gmail<\/strong> and <strong>Yahoo<\/strong> to track back your server IP address using the domain, bypassing the spam filters.<\/p><p>Hostinger users can set up a reverse DNS using <a href=\"\/my\/tutorials\/what-is-a-ptr-record-and-how-to-do-reverse-ip-lookup\">PTR records<\/a> via hPanel. Here are the steps:<\/p><ol class=\"wp-block-list\">\n<li>In <strong>hPanel<\/strong>, click <strong>VPS<\/strong> on the top bar.<\/li>\n\n\n\n<li>Select the relevant <strong>VPS<\/strong> and click <strong>Settings<\/strong> on the sidebar.<\/li>\n\n\n\n<li>Hit the <strong>IP address<\/strong> tab &rarr; <strong>Set PTR record<\/strong>.<\/li>\n\n\n\n<li>Enter your <strong>domain name<\/strong> and click <strong>Save<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/PTR-records-configuration-in-hPanel.png\"><img decoding=\"async\" width=\"1024\" height=\"327\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/PTR-records-configuration-in-hPanel-1024x327.png\" alt=\"PTR records configuration in hPanel\" class=\"wp-image-100376\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/PTR-records-configuration-in-hPanel-1024x327.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/PTR-records-configuration-in-hPanel-300x96.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/PTR-records-configuration-in-hPanel-150x48.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/PTR-records-configuration-in-hPanel-768x245.png 768w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/PTR-records-configuration-in-hPanel.png 1291w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Wait until the propagation process finishes. To check if your VPS IP address resolves to the correct domain, run this command on Terminal:<\/p><pre class=\"wp-block-preformatted\">dig -x ip_address<\/pre><h3 class=\"wp-block-heading\" id=\"h-8-create-your-email-account\">8. Create Your Email Account<\/h3><p>After the server and domain are set, create your mail address. Open your CyberPanel dashboard and navigate to <strong>Email <\/strong>&rarr; <strong>Create Email<\/strong>.<\/p><p>Select the<strong> domain<\/strong> from the drop-down list. Enter your <strong>email address<\/strong> and <strong>password<\/strong>, then press <strong>Create Email<\/strong>.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/New-email-account-creation-settings-in-CyberPanel-1.png\"><img decoding=\"async\" width=\"1024\" height=\"400\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/New-email-account-creation-settings-in-CyberPanel-1-1024x400.png\" alt=\"New email account creation settings in CyberPanel\" class=\"wp-image-100377\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/New-email-account-creation-settings-in-CyberPanel-1-1024x400.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/New-email-account-creation-settings-in-CyberPanel-1-300x117.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/New-email-account-creation-settings-in-CyberPanel-1-150x59.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/New-email-account-creation-settings-in-CyberPanel-1-768x300.png 768w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/12\/New-email-account-creation-settings-in-CyberPanel-1.png 1335w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>To see all the email accounts, navigate to<strong> Email<\/strong> &rarr; <strong>List Emails<\/strong> on the sidebar. This menu also displays the <strong>SMTP<\/strong> and <strong>POP3\/IMAP<\/strong> server configuration for setting up email clients like Thunderbird.<\/p><p>Integrating your SMTP mail server into your service helps improve deliverability and security.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Suggested Reading<\/h4>\n                    <p>Read our article to learn more about <a href=\"\/my\/tutorials\/wordpress-smtp\">WordPress SMTP server setup<\/a> and the best email provider for it.<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-9-test-your-email-server\">9. Test Your Email Server<\/h3><p>Check whether your server works properly by sending emails. Here&rsquo;s how to do so using CyberPanel&rsquo;s built-in <strong>Webmail<\/strong> mail client:<\/p><ol class=\"wp-block-list\">\n<li>On your CyberPanel dashboard, go to <strong>Email <\/strong>&rarr; <strong>Access Webmail<\/strong>.<\/li>\n\n\n\n<li>It will redirect you to the email client dashboard. Input your login credentials and press <strong>Enter<\/strong>.<\/li>\n\n\n\n<li>Press the <strong>New <\/strong>button on the top left corner to create a new email.&nbsp;<\/li>\n\n\n\n<li>Write a test email and send it to another account.<\/li>\n\n\n\n<li>Open the destination email inbox to check if the server successfully sends the message.<\/li>\n\n\n\n<li>In return, send email messages to the server&rsquo;s inbox to see if it receives them.<\/li>\n<\/ol><p><div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>For mobile devices, switch the Webmail user interface by enabling the <strong>Mobile version<\/strong> in your account settings.<\/p>\n                <\/div>\n\n\n\n<\/p><p>In addition, test your email server&rsquo;s spam score. To do so, use an online tool like <a href=\"https:\/\/www.mail-tester.com\/\" target=\"_blank\" rel=\"noopener\">Mail Tester<\/a>, which will rate your email deliverability from the recipient server side.<\/p><p>When using this tool, ensure your test emails are long enough and don&rsquo;t contain words like <strong>test<\/strong>. Otherwise, the anti-spam filter might falsely flag them, negatively impacting the score. Then, expand the report to see suggested areas of improvement, like configuring spam protection software.<\/p><p>Moreover, use <strong>Kodee<\/strong>, our AI assistant, to help identify deliverability problems and their solutions.<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Hosting email on a Linux server provides users with control and flexibility. It also offers higher performance, storage, and scalability than third-party services, making it suitable for businesses wanting to host many accounts.<\/p><p>In this tutorial, we have explained the steps of email server setup with your own domain. Here&rsquo;s a recap:<\/p><ol class=\"wp-block-list\">\n<li><strong>Purchase a VPS hosting plan<\/strong>.<strong> <\/strong>Buy a VPS hosting plan with a dedicated IP address, control panel support<strong>, <\/strong>and a high uptime guarantee like one from Hostinger.<\/li>\n\n\n\n<li><strong>Set up the VPS<\/strong>. Choose a data center location, set a root password, and install the <strong>AlmaLinux 8 with CyberPanel <\/strong>template via hPanel.<\/li>\n\n\n\n<li><strong>Point your domain<\/strong>.<strong> <\/strong>Create child nameservers pointing to your VPS IP address and configure your domain.<\/li>\n\n\n\n<li><strong>Create a website container<\/strong>. Open the CyberPanel dashboard and navigate to the <strong>Website <\/strong>menu to create a new empty website.<\/li>\n\n\n\n<li><strong>Create nameservers in CyberPanel<\/strong>. Create <strong>ns1.domain.tld <\/strong>and <strong>ns2.domain.tld<\/strong> nameservers via CyberPanel&rsquo;s DNS menu.<\/li>\n\n\n\n<li><strong>Issue an SSL certificate<\/strong>. Open CyberPanel&rsquo;s <strong>SSL<\/strong> section and install the free <strong>Let&rsquo;s Encrypt SSL<\/strong> certificate to enable secure email hosting.<\/li>\n\n\n\n<li><strong>Set up reverse DNS<\/strong>. Navigate to hPanel and add the domain as the reverse <strong>PTR record<\/strong> for your VPS IP addresses.<\/li>\n\n\n\n<li><strong>Create your email account<\/strong>. Go to the<strong> Email<\/strong> section on the CyberPanel dashboard and create a new email account.<\/li>\n\n\n\n<li><strong>Test your email server<\/strong>. Open the <strong>Access Webmail <\/strong>menu and log in to your new account. Send a test email to another address inbox and check deliverability using a tool like <strong>Mail Tester<\/strong>.<\/li>\n<\/ol><p>Keep in mind that the process might differ depending on your hosting provider and server requirements. If you have a question, leave us a comment below. Good luck!<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Discover Other Types of Servers You Can Set Up With VPS Hosting<\/h4>\n                    <p><a href=\"\/my\/tutorials\/how-to-make-a-teamspeak-3-server\/\">How to Make a TeamSpeak Server<\/a><br>\n<a href=\"\/my\/tutorials\/how-to-setup-minecraft-server\">How to Make a Minecraft Server<\/a><br>\n<a href=\"\/my\/tutorials\/how-to-set-up-a-linux-vpn-server-with-openvpn\/\">How to Set Up a Linux VPN Server<\/a><\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-host-your-own-email-server-faq\">Host Your Own Email Server FAQ<\/h2><p>In this section, we will answer several questions about hosting a private email server.&nbsp;<\/p><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1703064439472\"><h3 class=\"schema-faq-question\">Is It Worth Hosting Your Own Email Server?<\/h3> <p class=\"schema-faq-answer\">It depends on your needs. Self-hosting your personal email server is worth the effort if you prioritize control, flexibility, and scalability. However, email hosting services are more suitable if you want a preconfigured and simple solution.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1703064504357\"><h3 class=\"schema-faq-question\">How Much Does It Cost to Host Your Own Email Server?<\/h3> <p class=\"schema-faq-answer\">The cost of VPS email hosting depends on the provider. For example, Hostinger VPS plans start at <strong>RM29.99\/month<\/strong>. Also, consider other fees like domain subscriptions and software licenses.<br><br>We don&rsquo;t recommend using a personal machine since setting up and maintaining it requires a lot of effort.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1703064695738\"><h3 class=\"schema-faq-question\">Is Hosting My Own Email Server Secure?<\/h3> <p class=\"schema-faq-answer\">A self-hosted mail server is secure if you configure it properly, like installing an SSL certificate and enabling a firewall. Conversely, DIY email hosting is more prone to cyber attacks when misconfigured since the user is responsible for managing all the security aspects.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Business owners typically use pre-configured mail servers from third-party providers to host their mailing services. While they are sufficient for some users, others might need higher flexibility and control. For such users, self-hosting email servers can be a better option. In addition to providing complete control over the service, they are more secure since each [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/my\/tutorials\/how-to-host-your-own-email-server\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":337,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Host Your Own Email Server in 2025","rank_math_description":"Learn how to make your own email server using Hostinger VPS with CyberPanel: 1. Purchase VPS 2. Set up your server 3. Point your domain + more.","rank_math_focus_keyword":"host your own email server","footnotes":""},"categories":[22640,22639],"tags":[],"class_list":["post-33079","post","type-post","status-publish","format-standard","hentry","category-vps-use-cases","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-host-your-own-email-server","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/creer-serveur-mail","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-configurar-servidor-de-correo-propio","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-membuat-email-server-menggunakan-vps","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-host-your-own-email-server","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-host-your-own-email-server","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-host-your-own-email-server","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/como-configurar-servidor-de-correo-propio","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-configurar-servidor-de-correo-propio","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-configurar-servidor-de-correo-propio","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-host-your-own-email-server","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-host-your-own-email-server","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-host-your-own-email-server","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-host-your-own-email-server","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/33079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/users\/337"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/comments?post=33079"}],"version-history":[{"count":44,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/33079\/revisions"}],"predecessor-version":[{"id":123309,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/33079\/revisions\/123309"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/media?parent=33079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/categories?post=33079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/tags?post=33079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}