{"id":825,"date":"2025-01-14T17:36:10","date_gmt":"2025-01-14T17:36:10","guid":{"rendered":"https:\/\/gratisvps.net\/blog\/?p=825"},"modified":"2025-01-14T17:36:10","modified_gmt":"2025-01-14T17:36:10","slug":"how-to-install-and-configure-smtp-server","status":"publish","type":"post","link":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/","title":{"rendered":"How To Install and Configure SMTP Server"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Installing_and_Configuring_SMTP_Server_on_Ubuntu\" >Installing and Configuring SMTP Server on Ubuntu<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Introduction_to_SMTP\" >Introduction to SMTP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Installing_Postfix\" >Installing Postfix<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Configuring_Postfix_%E2%80%93_How_To_Install_and_Configure_SMTP_Server\" >Configuring Postfix &#8211; How To Install and Configure SMTP Server<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Basic_Configuration\" >Basic Configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Setting_Up_Domains\" >Setting Up Domains<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Setting_Up_Virtual_Users_%E2%80%93_How_To_Install_and_Configure_SMTP_Server\" >Setting Up Virtual Users &#8211; How To Install and Configure SMTP Server<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Examples_etcpostfixmysql-virtual-domainscf\" >Examples:\u00a0\/etc\/postfix\/mysql-virtual-domains.cf<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Example_etcpostfixmysql-virtual-mailboxcf\" >Example:\u00a0\/etc\/postfix\/mysql-virtual-mailbox.cf<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Example_etcpostfixmysql-virtual-aliascf\" >Example:\u00a0\/etc\/postfix\/mysql-virtual-alias.cf<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Securing_Postfix\" >Securing Postfix<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Enabling_TLS\" >Enabling TLS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Configuring_SASL_Authentication\" >Configuring SASL Authentication<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Testing_the_SMTP_Server_%E2%80%93_How_To_Install_and_Configure_SMTP_Server\" >Testing the SMTP Server &#8211; How To Install and Configure SMTP Server<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Sending_Email_via_Command_Line\" >Sending Email via Command Line<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Using_Telnet\" >Using Telnet<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#Monitoring_and_Troubleshooting_%E2%80%93_How_To_Install_and_Configure_SMTP_Server\" >Monitoring and Troubleshooting &#8211; How To Install and Configure SMTP Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#FAQs\" >FAQs<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1 id=\"tutorial-installing-and-configuring-smtp-server-on-ubuntu\"><span class=\"ez-toc-section\" id=\"Installing_and_Configuring_SMTP_Server_on_Ubuntu\"><\/span>Installing and Configuring SMTP Server on Ubuntu<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p><strong>Objective:<\/strong> How To Install and Configure SMTP Server This tutorial will guide you through the installation and configuration of an SMTP (Simple Mail Transfer Protocol) server on Ubuntu using Postfix. We will cover installation, configuration, security measures, and testing.<\/p>\n<hr \/>\n\n<hr \/>\n<h3 id=\"introduction-to-smtp-a-nameintroductiona\"><span class=\"ez-toc-section\" id=\"Introduction_to_SMTP\"><\/span>Introduction to SMTP<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>SMTP is a protocol used to send email messages between servers. It is the most common protocol for sending emails across the Internet. An SMTP server processes outgoing messages and routes them to the recipient&#8217;s mail server, making it essential for email delivery.<\/p>\n<hr \/>\n<h3 id=\"prerequisites-a-nameprerequisitesa\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Before proceeding, ensure you have:<\/p>\n<ul>\n<li>An Ubuntu server (20.04 or later).<\/li>\n<li>Sudo access to install packages.<\/li>\n<li>A registered domain name and access to DNS settings (for MX records).<\/li>\n<li>Basic knowledge of command-line operations.<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"installing-postfix-a-nameinstalling-postfixa\"><span class=\"ez-toc-section\" id=\"Installing_Postfix\"><\/span>Installing Postfix<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Start by updating your package list:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo apt update  \r\nsudo apt upgrade -y<\/code><\/pre>\n<p>Now, install <a href=\"https:\/\/www.postfix.org\/\">Postfix<\/a>:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo apt install postfix mailutils -y<\/code><\/pre>\n<p>During installation, you will be prompted to configure Postfix. Choose &#8220;Internet Site&#8221; and enter your domain name when prompted (e.g.,\u00a0<code>mail.yourdomain.com<\/code>).<\/p>\n<hr \/>\n<h3 id=\"configuring-postfix-a-nameconfiguring-postfixa\"><span class=\"ez-toc-section\" id=\"Configuring_Postfix_%E2%80%93_How_To_Install_and_Configure_SMTP_Server\"><\/span>Configuring Postfix &#8211; How To Install and Configure SMTP Server<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4 id=\"basic-configuration\"><span class=\"ez-toc-section\" id=\"Basic_Configuration\"><\/span>Basic Configuration<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Edit the main configuration file:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo nano \/etc\/postfix\/main.cf<\/code><\/pre>\n<p>Update the following parameters:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\"># Basic Settings  \r\nmyhostname = mail.yourdomain.com  \r\nmydomain = yourdomain.com  \r\nmyorigin = \/etc\/mailname  \r\nmydestination = $myhostname, localhost.$mydomain, localhost, $mydomain  \r\nrelayhost =\r\nmynetworks = 127.0.0.0\/8  \r\ninet_interfaces = all  \r\ninet_protocols = all\r\n\r\n# Mailbox Settings  \r\nhome_mailbox = Maildir\/<\/code><\/pre>\n<p>These settings define the hostname, domain, accepted mail destinations, and the mailbox format.<\/p>\n<h4 id=\"setting-up-domains\"><span class=\"ez-toc-section\" id=\"Setting_Up_Domains\"><\/span>Setting Up Domains<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To allow your server to send and receive emails for multiple domains, add the additional domains to\u00a0<code>mydestination<\/code>. For example:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, additionaldomain.com<\/code><\/pre>\n<h4 id=\"setting-up-virtual-users\"><span class=\"ez-toc-section\" id=\"Setting_Up_Virtual_Users_%E2%80%93_How_To_Install_and_Configure_SMTP_Server\"><\/span>Setting Up Virtual Users &#8211; How To Install and Configure SMTP Server<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To manage mail for virtual users, you&#8217;ll need to set up Postfix with a database for user authentication. Install the required packages:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo apt install postfix-mysql<\/code><\/pre>\n<p>Create a MySQL database for virtual users:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo mysql -u root -p<\/code><\/pre>\n<pre><code class=\"lang-sql hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> DATABASE mailserver;\r\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">USER<\/span> <span class=\"hljs-string\">'mailuser'<\/span>@<span class=\"hljs-string\">'localhost'<\/span> IDENTIFIED <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-string\">'yourpassword'<\/span>;\r\n<span class=\"hljs-keyword\">GRANT<\/span> <span class=\"hljs-keyword\">ALL<\/span> PRIVILEGES <span class=\"hljs-keyword\">ON<\/span> mailserver.<span class=\"hljs-operator\">*<\/span> <span class=\"hljs-keyword\">TO<\/span> <span class=\"hljs-string\">'mailuser'<\/span>@<span class=\"hljs-string\">'localhost'<\/span>;\r\nFLUSH PRIVILEGES;\r\nEXIT;<\/code><\/pre>\n<p>Create tables for users and domains:<\/p>\n<pre><code class=\"lang-sql hljs language-sql\">USE mailserver;\r\n\r\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> virtual_domains (\r\n    id <span class=\"hljs-type\">INT<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">NULL<\/span> AUTO_INCREMENT,\r\n    name <span class=\"hljs-type\">VARCHAR<\/span>(<span class=\"hljs-number\">50<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">NULL<\/span>,\r\n    <span class=\"hljs-keyword\">PRIMARY<\/span> KEY (id)\r\n);\r\n\r\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">TABLE<\/span> virtual_users (\r\n    id <span class=\"hljs-type\">INT<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">NULL<\/span> AUTO_INCREMENT,\r\n    domain_id <span class=\"hljs-type\">INT<\/span> <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">NULL<\/span>,\r\n    password <span class=\"hljs-type\">VARCHAR<\/span>(<span class=\"hljs-number\">106<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">NULL<\/span>,\r\n    email <span class=\"hljs-type\">VARCHAR<\/span>(<span class=\"hljs-number\">100<\/span>) <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">NULL<\/span>,\r\n    <span class=\"hljs-keyword\">PRIMARY<\/span> KEY (id),\r\n    <span class=\"hljs-keyword\">FOREIGN<\/span> KEY (domain_id) <span class=\"hljs-keyword\">REFERENCES<\/span> virtual_domains(id) <span class=\"hljs-keyword\">ON<\/span> <span class=\"hljs-keyword\">DELETE<\/span> CASCADE  \r\n);<\/code><\/pre>\n<p>Populate the domains and users:<\/p>\n<pre><code class=\"lang-sql hljs language-sql\"><span class=\"hljs-keyword\">INSERT<\/span> <span class=\"hljs-keyword\">INTO<\/span> virtual_domains (name) <span class=\"hljs-keyword\">VALUES<\/span> (<span class=\"hljs-string\">'yourdomain.com'<\/span>);\r\n<span class=\"hljs-keyword\">INSERT<\/span> <span class=\"hljs-keyword\">INTO<\/span> virtual_users (domain_id, password, email) <span class=\"hljs-keyword\">VALUES<\/span> (<span class=\"hljs-number\">1<\/span>, ENCRYPT(<span class=\"hljs-string\">'userpassword'<\/span>), <span class=\"hljs-string\">'user@yourdomain.com'<\/span>);<\/code><\/pre>\n<p>Now, configure Postfix to use MySQL for virtual domains and users. Open\u00a0<code>main.cf<\/code>\u00a0again:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo nano \/etc\/postfix\/main.cf<\/code><\/pre>\n<p>Add the following lines:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\"># MySQL Configuration for Virtual Domains  \r\nvirtual_mailbox_domains = mysql:\/etc\/postfix\/mysql-virtual-domains.cf  \r\nvirtual_mailbox_base = \/var\/mail\/vhosts  \r\nvirtual_mailbox_maps = mysql:\/etc\/postfix\/mysql-virtual-mailbox.cf  \r\nvirtual_alias_maps = mysql:\/etc\/postfix\/mysql-virtual-alias.cf<\/code><\/pre>\n<p>Create the MySQL configuration files for domains, users, and aliases in\u00a0<code>\/etc\/postfix\/<\/code>.<\/p>\n<h5 id=\"example-etcpostfixmysql-virtual-domainscf\"><span class=\"ez-toc-section\" id=\"Examples_etcpostfixmysql-virtual-domainscf\"><\/span>Examples:\u00a0<code>\/etc\/postfix\/mysql-virtual-domains.cf<\/code><span class=\"ez-toc-section-end\"><\/span><\/h5>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">user = mailuser  \r\npassword = yourpassword  \r\nhosts = 127.0.0.1  \r\ndbname = mailserver  \r\nquery = SELECT 1 FROM virtual_domains WHERE name='%s'<\/code><\/pre>\n<h5 id=\"example-etcpostfixmysql-virtual-mailboxcf\"><span class=\"ez-toc-section\" id=\"Example_etcpostfixmysql-virtual-mailboxcf\"><\/span>Example:\u00a0<code>\/etc\/postfix\/mysql-virtual-mailbox.cf<\/code><span class=\"ez-toc-section-end\"><\/span><\/h5>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">user = mailuser  \r\npassword = yourpassword  \r\nhosts = 127.0.0.1  \r\ndbname = mailserver  \r\nquery = SELECT 1 FROM virtual_users WHERE email='%s'<\/code><\/pre>\n<h5 id=\"example-etcpostfixmysql-virtual-aliascf\"><span class=\"ez-toc-section\" id=\"Example_etcpostfixmysql-virtual-aliascf\"><\/span>Example:\u00a0<code>\/etc\/postfix\/mysql-virtual-alias.cf<\/code><span class=\"ez-toc-section-end\"><\/span><\/h5>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">user = mailuser  \r\npassword = yourpassword  \r\nhosts = 127.0.0.1  \r\ndbname = mailserver  \r\nquery = SELECT email FROM virtual_users WHERE email='%s'<\/code><\/pre>\n<hr \/>\n<h3 id=\"securing-postfix-a-namesecuring-postfixa\"><span class=\"ez-toc-section\" id=\"Securing_Postfix\"><\/span>Securing Postfix<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4 id=\"enabling-tls\"><span class=\"ez-toc-section\" id=\"Enabling_TLS\"><\/span>Enabling TLS<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To secure email transmission, enable TLS in Postfix. Generate a self-signed certificate:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo <span class=\"hljs-built_in\">mkdir<\/span> \/etc\/ssl\/private  \r\nsudo openssl req -new -x509 -days 365 -nodes -out \/etc\/ssl\/certs\/postfix.crt -keyout \/etc\/ssl\/private\/postfix.key<\/code><\/pre>\n<p>Edit\u00a0<code>main.cf<\/code>\u00a0to add TLS settings:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">smtpd_use_tls = yes  \r\nsmtpd_tls_cert_file = \/etc\/ssl\/certs\/postfix.crt  \r\nsmtpd_tls_key_file = \/etc\/ssl\/private\/postfix.key<\/code><\/pre>\n<h4 id=\"configuring-sasl-authentication\"><span class=\"ez-toc-section\" id=\"Configuring_SASL_Authentication\"><\/span>Configuring SASL Authentication<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>For secure authentication, configure SASL:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo apt install libsasl2-modules sasl2-bin<\/code><\/pre>\n<p>Edit\u00a0<code>\/etc\/default\/saslauthd<\/code>:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">START=yes  \r\nMECHANISMS=\"pam\"<\/code><\/pre>\n<p>Now, edit\u00a0<code>\/etc\/postfix\/main.cf<\/code>\u00a0to enable SASL:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">smtpd_sasl_type = dovecot  \r\nsmtpd_sasl_path = private\/auth  \r\nsmtpd_sasl_local_domain =\r\nsmtpd_sasl_security_options = noanonymous<\/code><\/pre>\n<p>Restart services:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo systemctl restart saslauthd  \r\nsudo systemctl restart postfix<\/code><\/pre>\n<hr \/>\n<h3 id=\"testing-the-smtp-server-a-nametesting-the-smtp-servera\"><span class=\"ez-toc-section\" id=\"Testing_the_SMTP_Server_%E2%80%93_How_To_Install_and_Configure_SMTP_Server\"><\/span>Testing the SMTP Server &#8211; How To Install and Configure SMTP Server<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4 id=\"sending-email-via-command-line\"><span class=\"ez-toc-section\" id=\"Sending_Email_via_Command_Line\"><\/span>Sending Email via Command Line<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>You can test sending <a href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/\">emails<\/a> using the command line:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\"><span class=\"hljs-built_in\">echo<\/span> <span class=\"hljs-string\">\"Test email body\"<\/span> | mail -s <span class=\"hljs-string\">\"Test Subject\"<\/span> user@yourdomain.com<\/code><\/pre>\n<p>Check if the email is delivered successfully.<\/p>\n<h4 id=\"using-telnet\"><span class=\"ez-toc-section\" id=\"Using_Telnet\"><\/span>Using Telnet<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>You can also test your SMTP server using Telnet:<\/p>\n<ol start=\"1\">\n<li>Install Telnet if not already installed:\n<pre><code class=\"lang-bash hljs language-bash\">sudo apt install telnet<\/code><\/pre>\n<\/li>\n<li>Connect to your SMTP server:\n<pre><code class=\"lang-bash hljs language-bash\">telnet mail.yourdomain.com 25<\/code><\/pre>\n<\/li>\n<li>Enter the following commands to simulate sending an email:\n<pre><code class=\"lang-plaintext hljs language-plaintext\">HELO yourdomain.com  \r\nMAIL FROM: &lt;sender@yourdomain.com&gt;\r\nRCPT TO: &lt;user@yourdomain.com&gt;\r\nDATA  \r\nSubject: Test Email\r\n\r\nThis is a test email.\r\n.\r\nQUIT<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>Check your email client for the received email.<\/p>\n<hr \/>\n<h3 id=\"monitoring-and-troubleshooting-a-namemonitoring-and-troubleshootinga\"><span class=\"ez-toc-section\" id=\"Monitoring_and_Troubleshooting_%E2%80%93_How_To_Install_and_Configure_SMTP_Server\"><\/span>Monitoring and Troubleshooting &#8211; How To Install and Configure SMTP Server<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol start=\"1\">\n<li><strong>Logs<\/strong>: Check the Postfix logs for errors:\n<pre><code class=\"lang-bash hljs language-bash\">sudo <span class=\"hljs-built_in\">tail<\/span> -f \/var\/log\/mail.log<\/code><\/pre>\n<\/li>\n<li><strong>Check Mail Queue<\/strong>: If emails are not being sent, check the mail queue:\n<pre><code class=\"lang-bash hljs language-bash\">mailq<\/code><\/pre>\n<\/li>\n<li><strong>Testing with\u00a0<code>swaks<\/code><\/strong>: Install\u00a0<code>swaks<\/code>\u00a0(a Swiss Army Knife for SMTP) for advanced testing:\n<pre><code class=\"lang-bash hljs language-bash\">sudo apt install swaks<\/code><\/pre>\n<p>Use it for testing SMTP:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">swaks --to user@yourdomain.com --from sender@yourdomain.com --server mail.yourdomain.com<\/code><\/pre>\n<\/li>\n<\/ol>\n<hr \/>\n<h3 id=\"faqs-a-namefaqsa\"><span class=\"ez-toc-section\" id=\"FAQs\"><\/span>FAQs<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>Q1: Why is my email not being delivered?<\/strong><\/p>\n<ul>\n<li>Check the mail logs for any errors. Ensure that your DNS settings, particularly MX records, are correct.<\/li>\n<\/ul>\n<p><strong>Q2: How can I enable user authentication for outgoing emails?<\/strong><\/p>\n<ul>\n<li>Ensure you have configured SASL authentication correctly in Postfix and Dovecot.<\/li>\n<\/ul>\n<p><strong>Q3: What if my emails are going to the spam folder?<\/strong><\/p>\n<ul>\n<li>Check your SPF, DKIM, and DMARC records. Ensure your server\u2019s IP address is not black listed.<\/li>\n<\/ul>\n<p><strong>Q4: How can I manage multiple domains?<\/strong><\/p>\n<ul>\n<li>Update the\u00a0<code>mydestination<\/code>\u00a0parameter in\u00a0<code>main.cf<\/code>\u00a0to include additional domains, and configure virtual domains and users in your MySQL database.<\/li>\n<\/ul>\n<p><strong>Q5: How do I secure my email server further?<\/strong><\/p>\n<ul>\n<li>Regularly update your software, use strong passwords, configure firewalls, and consider using fail2ban to block repeated login attempts.<\/li>\n<\/ul>\n<hr \/>\n<p>By following this tutorial, you should have a fully functional and secure SMTP server on your Ubuntu system. If you have any questions or need further assistance, feel free to ask!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing and Configuring SMTP Server on Ubuntu Objective: How To Install and Configure SMTP Server This tutorial will guide you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":826,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[249,251,215,210],"tags":[253,252,211],"class_list":["post-825","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-email-server","category-smtp","category-tutorial","category-ubuntu","tag-install-email","tag-smtp-server","tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How To Install and Configure SMTP Server<\/title>\n<meta name=\"description\" content=\"How To Install and Configure SMTP Server , An SMTP server processes outgoing messages and routes them to the recipient&#039;s mail server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install and Configure SMTP Server\" \/>\n<meta property=\"og:description\" content=\"How To Install and Configure SMTP Server , An SMTP server processes outgoing messages and routes them to the recipient&#039;s mail server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Free VPS Hosting Guides\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-14T17:36:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/install-smtp-server.png\" \/>\n\t<meta property=\"og:image:width\" content=\"832\" \/>\n\t<meta property=\"og:image:height\" content=\"448\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"ariete\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ariete\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-and-configure-smtp-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-and-configure-smtp-server\\\/\"},\"author\":{\"name\":\"ariete\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#\\\/schema\\\/person\\\/cddcf8cb5192d0713c19b79425c77fc4\"},\"headline\":\"How To Install and Configure SMTP Server\",\"datePublished\":\"2025-01-14T17:36:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-and-configure-smtp-server\\\/\"},\"wordCount\":622,\"publisher\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-and-configure-smtp-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/install-smtp-server.png\",\"keywords\":[\"Install Email\",\"SMTP Server\",\"Ubuntu\"],\"articleSection\":[\"Email Server\",\"SMTP\",\"Tutorial\",\"Ubuntu\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-and-configure-smtp-server\\\/\",\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-and-configure-smtp-server\\\/\",\"name\":\"How To Install and Configure SMTP Server\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-and-configure-smtp-server\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-and-configure-smtp-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/install-smtp-server.png\",\"datePublished\":\"2025-01-14T17:36:10+00:00\",\"description\":\"How To Install and Configure SMTP Server , An SMTP server processes outgoing messages and routes them to the recipient's mail server.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-and-configure-smtp-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-and-configure-smtp-server\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-and-configure-smtp-server\\\/#primaryimage\",\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/install-smtp-server.png\",\"contentUrl\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/install-smtp-server.png\",\"width\":832,\"height\":448,\"caption\":\"How To Install and Configure SMTP Server\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-and-configure-smtp-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install and Configure SMTP Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/\",\"name\":\"Gratisvps.net | Blog Daily Tech Info\",\"description\":\"GratisVPS.NET\",\"publisher\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#organization\",\"name\":\"Gratisvps.net | Blog Daily Tech Info\",\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/logo.png\",\"width\":250,\"height\":67,\"caption\":\"Gratisvps.net | Blog Daily Tech Info\"},\"image\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#\\\/schema\\\/person\\\/cddcf8cb5192d0713c19b79425c77fc4\",\"name\":\"ariete\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b93881052caa63fd6b2fb5468a80afcf9f985a165c6d4de11a72cc4c0775f74a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b93881052caa63fd6b2fb5468a80afcf9f985a165c6d4de11a72cc4c0775f74a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b93881052caa63fd6b2fb5468a80afcf9f985a165c6d4de11a72cc4c0775f74a?s=96&d=mm&r=g\",\"caption\":\"ariete\"},\"sameAs\":[\"https:\\\/\\\/gratisvps.net\\\/blog\"],\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/author\\\/ariete\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Install and Configure SMTP Server","description":"How To Install and Configure SMTP Server , An SMTP server processes outgoing messages and routes them to the recipient's mail server.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/","og_locale":"en_US","og_type":"article","og_title":"How To Install and Configure SMTP Server","og_description":"How To Install and Configure SMTP Server , An SMTP server processes outgoing messages and routes them to the recipient's mail server.","og_url":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/","og_site_name":"Free VPS Hosting Guides","article_published_time":"2025-01-14T17:36:10+00:00","og_image":[{"width":832,"height":448,"url":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/install-smtp-server.png","type":"image\/png"}],"author":"ariete","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ariete","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#article","isPartOf":{"@id":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/"},"author":{"name":"ariete","@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/person\/cddcf8cb5192d0713c19b79425c77fc4"},"headline":"How To Install and Configure SMTP Server","datePublished":"2025-01-14T17:36:10+00:00","mainEntityOfPage":{"@id":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/"},"wordCount":622,"publisher":{"@id":"https:\/\/gratisvps.net\/blog\/#organization"},"image":{"@id":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#primaryimage"},"thumbnailUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/install-smtp-server.png","keywords":["Install Email","SMTP Server","Ubuntu"],"articleSection":["Email Server","SMTP","Tutorial","Ubuntu"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/","url":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/","name":"How To Install and Configure SMTP Server","isPartOf":{"@id":"https:\/\/gratisvps.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#primaryimage"},"image":{"@id":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#primaryimage"},"thumbnailUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/install-smtp-server.png","datePublished":"2025-01-14T17:36:10+00:00","description":"How To Install and Configure SMTP Server , An SMTP server processes outgoing messages and routes them to the recipient's mail server.","breadcrumb":{"@id":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#primaryimage","url":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/install-smtp-server.png","contentUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/install-smtp-server.png","width":832,"height":448,"caption":"How To Install and Configure SMTP Server"},{"@type":"BreadcrumbList","@id":"https:\/\/gratisvps.net\/blog\/how-to-install-and-configure-smtp-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gratisvps.net\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Install and Configure SMTP Server"}]},{"@type":"WebSite","@id":"https:\/\/gratisvps.net\/blog\/#website","url":"https:\/\/gratisvps.net\/blog\/","name":"Gratisvps.net | Blog Daily Tech Info","description":"GratisVPS.NET","publisher":{"@id":"https:\/\/gratisvps.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gratisvps.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/gratisvps.net\/blog\/#organization","name":"Gratisvps.net | Blog Daily Tech Info","url":"https:\/\/gratisvps.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/logo.png","contentUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/logo.png","width":250,"height":67,"caption":"Gratisvps.net | Blog Daily Tech Info"},"image":{"@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/person\/cddcf8cb5192d0713c19b79425c77fc4","name":"ariete","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b93881052caa63fd6b2fb5468a80afcf9f985a165c6d4de11a72cc4c0775f74a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b93881052caa63fd6b2fb5468a80afcf9f985a165c6d4de11a72cc4c0775f74a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b93881052caa63fd6b2fb5468a80afcf9f985a165c6d4de11a72cc4c0775f74a?s=96&d=mm&r=g","caption":"ariete"},"sameAs":["https:\/\/gratisvps.net\/blog"],"url":"https:\/\/gratisvps.net\/blog\/author\/ariete\/"}]}},"_links":{"self":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts\/825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/comments?post=825"}],"version-history":[{"count":1,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts\/825\/revisions"}],"predecessor-version":[{"id":827,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts\/825\/revisions\/827"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/media\/826"}],"wp:attachment":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/media?parent=825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/categories?post=825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/tags?post=825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}