{"id":822,"date":"2025-01-14T17:24:53","date_gmt":"2025-01-14T17:24:53","guid":{"rendered":"https:\/\/gratisvps.net\/blog\/?p=822"},"modified":"2025-01-14T17:24:53","modified_gmt":"2025-01-14T17:24:53","slug":"setting-up-a-mail-server-on-ubuntu","status":"publish","type":"post","link":"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/","title":{"rendered":"Setting Up a Mail Server on Ubuntu"},"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-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Setting_Up_a_Mail_Server_on_Ubuntu\" >Setting Up a Mail Server on Ubuntu<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Prerequisites\" >Prerequisites:<\/a><\/li><\/ul><\/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\/setting-up-a-mail-server-on-ubuntu\/#Introduction_to_Email_Servers\" >Introduction to Email Servers<\/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\/setting-up-a-mail-server-on-ubuntu\/#Installing_Required_Packages\" >Installing Required Packages<\/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\/setting-up-a-mail-server-on-ubuntu\/#Configuring_Postfix\" >Configuring Postfix<\/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\/setting-up-a-mail-server-on-ubuntu\/#Step_1_Basic_Configuration\" >Step 1: 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\/setting-up-a-mail-server-on-ubuntu\/#Step_2_Enable_SASL_Authentication\" >Step 2: Enable SASL Authentication<\/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\/setting-up-a-mail-server-on-ubuntu\/#Step_3_Enabling_TLS\" >Step 3: Enabling TLS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Step_4_Restart_Postfix\" >Step 4: Restart Postfix<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Setting_Up_Dovecot\" >Setting Up Dovecot<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Step_1_Enable_Mail_Location\" >Step 1: Enable Mail Location<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Step_2_Enable_Authentication\" >Step 2: Enable Authentication<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Step_3_Restart_Dovecot\" >Step 3: Restart Dovecot<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Configuring_MySQL_for_Email_Users\" >Configuring MySQL for Email Users<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Step_1_Create_MySQL_Database_and_User\" >Step 1: Create MySQL Database and User<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Step_2_Import_Roundcube_Schema\" >Step 2: Import Roundcube Schema<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Installing_and_Configuring_Roundcube\" >Installing and Configuring Roundcube<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Step_1_Install_Roundcube\" >Step 1: Install Roundcube<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Step_2_Configure_Roundcube\" >Step 2: Configure Roundcube<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Step_3_Configure_SMTP_and_IMAP_Settings\" >Step 3: Configure SMTP and IMAP Settings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Step_4_Enable_URL_Rewrite\" >Step 4: Enable URL Rewrite<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Securing_Your_Mail_Server\" >Securing Your Mail Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#Testing_Your_Mail_Server_%E2%80%93_Setting_Up_a_Mail_Server_on_Ubuntu\" >Testing Your Mail Server &#8211; Setting Up a Mail Server on Ubuntu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#FAQs\" >FAQs<\/a><\/li><\/ul><\/nav><\/div>\n<h3 id=\"advanced-tutorial-setting-up-a-mail-server-on-ubuntu\"><span class=\"ez-toc-section\" id=\"Setting_Up_a_Mail_Server_on_Ubuntu\"><\/span>Setting Up a Mail Server on Ubuntu<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>Objective:<\/strong>\u00a0This tutorial will guide you through the installation and configuration of a fully functional mail server on Ubuntu using Postfix as the MTA (Mail Transfer Agent), Dovecot for IMAP and POP3 services, and Roundcube as a web-based email client.<\/p>\n<hr \/>\n<h4 id=\"prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>An Ubuntu server (20.04 or later)<\/li>\n<li>Sudo access<\/li>\n<li>A registered domain name<\/li>\n<li>Proper DNS configurations (MX records)<br \/>\n<hr \/>\n<p><\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"introduction-to-email-servers-a-nameintroductiona\"><span class=\"ez-toc-section\" id=\"Introduction_to_Email_Servers\"><\/span>Introduction to Email Servers<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>An email server is a server that sends and receives email messages. It handles the transmission of messages and stores them for retrieval by the user. Setting up your own mail server can seem daunting, but it gives you complete control over your email communications.<\/p>\n<hr \/>\n<h3 id=\"installing-required-packages-a-nameinstalling-packagesa\"><span class=\"ez-toc-section\" id=\"Installing_Required_Packages\"><\/span>Installing Required Packages<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>First, ensure your system is updated:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo apt update \r\nsudo apt upgrade -y<\/code><\/pre>\n<p>Now, install the necessary packages for Postfix, Dovecot, and MySQL:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo apt install postfix dovecot-core dovecot-imapd dovecot-pop3d mysql-server php php-mysql php-mbstring php-xml php-zip -y<\/code><\/pre>\n<p>During the Postfix installation, you will be prompted to choose a configuration type. Select\u00a0<strong>Internet Site<\/strong>\u00a0and set your mail server name to your domain (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\"><\/span>Configuring Postfix<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4 id=\"step-1-basic-configuration\"><span class=\"ez-toc-section\" id=\"Step_1_Basic_Configuration\"><\/span>Step 1: Basic Configuration<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Edit the Postfix main configuration file:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo nano \/etc\/postfix\/main.cf<\/code><\/pre>\n<p>Add or modify the following lines:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">myhostname = 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<\/code><\/pre>\n<h4 id=\"step-2-enable-sasl-authentication\"><span class=\"ez-toc-section\" id=\"Step_2_Enable_SASL_Authentication\"><\/span>Step 2: Enable SASL Authentication<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Add the following lines to enable SASL (Simple Authentication and Security Layer):<\/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  \r\nsmtpd_sasl_authenticated_header = yes<\/code><\/pre>\n<h4 id=\"step-3-enabling-tls\"><span class=\"ez-toc-section\" id=\"Step_3_Enabling_TLS\"><\/span>Step 3: Enabling TLS<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To secure the mail server, you\u2019ll need TLS. 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\/mailserver.crt -keyout \/etc\/ssl\/private\/mailserver.key<\/code><\/pre>\n<p>Modify\u00a0<code>main.cf<\/code>\u00a0to add:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">smtpd_use_tls = yes  \r\nsmtpd_tls_cert_file = \/etc\/ssl\/certs\/mailserver.crt  \r\nsmtpd_tls_key_file = \/etc\/ssl\/private\/mailserver.key<\/code><\/pre>\n<h4 id=\"step-4-restart-postfix\"><span class=\"ez-toc-section\" id=\"Step_4_Restart_Postfix\"><\/span>Step 4: Restart Postfix<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>After making changes, restart Postfix:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo systemctl restart postfix<\/code><\/pre>\n<hr \/>\n<h3 id=\"setting-up-dovecot-a-namesetting-up-dovecota\"><span class=\"ez-toc-section\" id=\"Setting_Up_Dovecot\"><\/span>Setting Up Dovecot<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Edit the Dovecot configuration file:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo nano \/etc\/dovecot\/dovecot.conf<\/code><\/pre>\n<p>Add the following line to enable SSL:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">ssl = required<\/code><\/pre>\n<p>Now, configure the SSL settings in\u00a0<code>dovecot.conf<\/code>:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">ssl_cert = &lt;\/etc\/ssl\/certs\/mailserver.crt  \r\nssl_key = &lt;\/etc\/ssl\/private\/mailserver.key<\/code><\/pre>\n<h4 id=\"step-1-enable-mail-location\"><span class=\"ez-toc-section\" id=\"Step_1_Enable_Mail_Location\"><\/span>Step 1: Enable Mail Location<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Edit the\u00a0<code>conf.d\/10-mail.conf<\/code>\u00a0file:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo nano \/etc\/dovecot\/conf.d\/10-mail.conf<\/code><\/pre>\n<p>Set the mail location:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">mail_location = maildir:~\/Maildir<\/code><\/pre>\n<h4 id=\"step-2-enable-authentication\"><span class=\"ez-toc-section\" id=\"Step_2_Enable_Authentication\"><\/span>Step 2: Enable Authentication<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Edit\u00a0<code>conf.d\/10-auth.conf<\/code>\u00a0and set:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">auth_mechanisms = plain login<\/code><\/pre>\n<h4 id=\"step-3-restart-dovecot\"><span class=\"ez-toc-section\" id=\"Step_3_Restart_Dovecot\"><\/span>Step 3: Restart Dovecot<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>After making changes, restart Dovecot:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo systemctl restart dovecot<\/code><\/pre>\n<hr \/>\n<h3 id=\"configuring-mysql-for-email-users-a-nameconfiguring-mysqla\"><span class=\"ez-toc-section\" id=\"Configuring_MySQL_for_Email_Users\"><\/span>Configuring MySQL for Email Users<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4 id=\"step-1-create-mysql-database-and-user\"><span class=\"ez-toc-section\" id=\"Step_1_Create_MySQL_Database_and_User\"><\/span>Step 1: Create MySQL Database and User<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Log into MySQL:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo mysql -u root -p<\/code><\/pre>\n<p>Create a database and user for Roundcube:<\/p>\n<pre><code class=\"lang-sql hljs language-sql\"><span class=\"hljs-keyword\">CREATE<\/span> DATABASE roundcube;\r\n<span class=\"hljs-keyword\">CREATE<\/span> <span class=\"hljs-keyword\">USER<\/span> <span class=\"hljs-string\">'roundcubeuser'<\/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> roundcube.<span class=\"hljs-operator\">*<\/span> <span class=\"hljs-keyword\">TO<\/span> <span class=\"hljs-string\">'roundcubeuser'<\/span>@<span class=\"hljs-string\">'localhost'<\/span>;\r\nFLUSH PRIVILEGES;\r\nEXIT;<\/code><\/pre>\n<h4 id=\"step-2-import-roundcube-schema\"><span class=\"ez-toc-section\" id=\"Step_2_Import_Roundcube_Schema\"><\/span>Step 2: Import Roundcube Schema<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Navigate to the Roundcube SQL directory:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\"><span class=\"hljs-built_in\">cd<\/span> \/usr\/share\/doc\/roundcube\/SQL<\/code><\/pre>\n<p>Import the schema:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo mysql -u roundcubeuser -p roundcube &lt; mysql.sql<\/code><\/pre>\n<hr \/>\n<h3 id=\"installing-and-configuring-roundcube-a-nameinstalling-roundcubea\"><span class=\"ez-toc-section\" id=\"Installing_and_Configuring_Roundcube\"><\/span>Installing and Configuring Roundcube<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4 id=\"step-1-install-roundcube\"><span class=\"ez-toc-section\" id=\"Step_1_Install_Roundcube\"><\/span>Step 1: Install Roundcube<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Install <a href=\"https:\/\/roundcube.net\/\">Roundcube<\/a>:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo apt install roundcube roundcube-core roundcube-mysql -y<\/code><\/pre>\n<h4 id=\"step-2-configure-roundcube\"><span class=\"ez-toc-section\" id=\"Step_2_Configure_Roundcube\"><\/span>Step 2: Configure Roundcube<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Edit the Roundcube configuration:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo nano \/etc\/roundcube\/config.inc.php<\/code><\/pre>\n<p>Set the database configuration:<\/p>\n<pre><code class=\"lang-php hljs language-php\"><span class=\"hljs-variable\">$config<\/span>[<span class=\"hljs-string\">'db_dsnw'<\/span>] = <span class=\"hljs-string\">'mysql:\/\/roundcubeuser:yourpassword@localhost\/roundcube'<\/span>;<\/code><\/pre>\n<h4 id=\"step-3-configure-smtp-and-imap-settings\"><span class=\"ez-toc-section\" id=\"Step_3_Configure_SMTP_and_IMAP_Settings\"><\/span>Step 3: Configure SMTP and IMAP Settings<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Add the SMTP and IMAP settings:<\/p>\n<pre><code class=\"lang-php hljs language-php\"><span class=\"hljs-variable\">$config<\/span>[<span class=\"hljs-string\">'smtp_server'<\/span>] = <span class=\"hljs-string\">'tls:\/\/mail.yourdomain.com'<\/span>;\r\n<span class=\"hljs-variable\">$config<\/span>[<span class=\"hljs-string\">'smtp_port'<\/span>] = <span class=\"hljs-number\">587<\/span>;\r\n<span class=\"hljs-variable\">$config<\/span>[<span class=\"hljs-string\">'imap_server'<\/span>] = <span class=\"hljs-string\">'ssl:\/\/mail.yourdomain.com'<\/span>;\r\n<span class=\"hljs-variable\">$config<\/span>[<span class=\"hljs-string\">'imap_port'<\/span>] = <span class=\"hljs-number\">993<\/span>;<\/code><\/pre>\n<h4 id=\"step-4-enable-url-rewrite\"><span class=\"ez-toc-section\" id=\"Step_4_Enable_URL_Rewrite\"><\/span>Step 4: Enable URL Rewrite<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To enable URL rewriting for Roundcube, you need to edit the Apache configuration:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo nano \/etc\/apache2\/conf-available\/roundcube.conf<\/code><\/pre>\n<p>Add the following lines:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">Alias \/roundcube \/usr\/share\/roundcube  \r\n&lt;Directory \/usr\/share\/roundcube\/&gt;\r\n    Options +FollowSymLinks  \r\n    DirectoryIndex index.php  \r\n    AllowOverride All  \r\n    Require all granted  \r\n&lt;\/Directory&gt;<\/code><\/pre>\n<p>Enable the configuration and rewrite module:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo a2enconf roundcube  \r\nsudo a2enmod rewrite  \r\nsudo systemctl restart apache2<\/code><\/pre>\n<hr \/>\n<h3 id=\"securing-your-mail-server-a-namesecuring-your-mail-servera\"><span class=\"ez-toc-section\" id=\"Securing_Your_Mail_Server\"><\/span>Securing Your Mail Server<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol start=\"1\">\n<li><strong>Firewall Configuration:<\/strong>\u00a0Use UFW to manage your firewall:\n<pre><code class=\"lang-bash hljs language-bash\">sudo ufw allow OpenSSH  \r\nsudo ufw allow <span class=\"hljs-string\">'Apache Full'<\/span>\r\nsudo ufw allow 25\/tcp  \r\nsudo ufw allow 465\/tcp  \r\nsudo ufw allow 587\/tcp  \r\nsudo ufw allow 993\/tcp  \r\nsudo ufw allow 995\/tcp  \r\nsudo ufw <span class=\"hljs-built_in\">enable<\/span><\/code><\/pre>\n<\/li>\n<li><strong>Fail2Ban Installation:<\/strong>\u00a0Protect your server from brute-force attacks:\n<pre><code class=\"lang-bash hljs language-bash\">sudo apt install fail2ban -y<\/code><\/pre>\n<p>Create a jail configuration:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo nano \/etc\/fail2ban\/jail.local<\/code><\/pre>\n<p>Add the following lines:<\/p>\n<pre><code class=\"lang-plaintext hljs language-plaintext\">[postfix]\r\nenabled = true  \r\nport = smtp  \r\nfilter = postfix  \r\nlogpath = \/var\/log\/mail.log  \r\nmaxretry = 3  \r\nfindtime = 10  \r\nbantime = 600<\/code><\/pre>\n<p>Restart Fail2Ban:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo systemctl restart fail2ban<\/code><\/pre>\n<\/li>\n<\/ol>\n<hr \/>\n<h3 id=\"testing-your-mail-server-a-nametesting-your-mail-servera\"><span class=\"ez-toc-section\" id=\"Testing_Your_Mail_Server_%E2%80%93_Setting_Up_a_Mail_Server_on_Ubuntu\"><\/span>Testing Your Mail Server &#8211; Setting Up a Mail Server on Ubuntu<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol start=\"1\">\n<li><strong>Sending Email:<\/strong>\u00a0Use the\u00a0<code>mail<\/code>\u00a0command to send a test email:\n<pre><code class=\"lang-bash hljs language-bash\"><span class=\"hljs-built_in\">echo<\/span> <span class=\"hljs-string\">\"Test email message\"<\/span> | mail -s <span class=\"hljs-string\">\"Test Subject\"<\/span> user@yourdomain.com<\/code><\/pre>\n<\/li>\n<li><strong>Check Mailbox:<\/strong>\u00a0Log in to Roundcube at\u00a0<code>http:\/\/mail.yourdomain.com\/roundcube<\/code>\u00a0and check if you received the test email.<\/li>\n<li><strong>Inspect Logs:<\/strong>\u00a0If you encounter any issues, check the 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  \r\nsudo <span class=\"hljs-built_in\">tail<\/span> -f \/var\/log\/mail.err<\/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 isn&#8217;t Postfix sending emails?<\/strong><\/p>\n<ul>\n<li>Check your configuration in\u00a0<code>\/etc\/postfix\/main.cf<\/code>\u00a0for any typos. Ensure your DNS settings, particularly MX records, are correctly pointing to your mail server.<\/li>\n<\/ul>\n<p><strong>Q2: How do I create additional email users?<\/strong><\/p>\n<ul>\n<li>You can create new users using the following MySQL command after logging in:\n<pre><code class=\"lang-sql hljs language-sql\"><span class=\"hljs-keyword\">INSERT<\/span> <span class=\"hljs-keyword\">INTO<\/span> users (username, password, email) <span class=\"hljs-keyword\">VALUES<\/span> (<span class=\"hljs-string\">'newuser'<\/span>, <span class=\"hljs-string\">'hashedpassword'<\/span>, <span class=\"hljs-string\">'newuser@yourdomain.com'<\/span>);<\/code><\/pre>\n<p>Ensure the password is hashed properly, for example using\u00a0<code>doveadm pw<\/code>.<\/li>\n<\/ul>\n<p><strong>Q3: How can I enable DKIM for my emails?<\/strong><\/p>\n<ul>\n<li>Install OpenDKIM, generate keys, and configure Postfix and DKIM to add digital signatures to your emails for better deliverability.<\/li>\n<\/ul>\n<p><strong>Q4: What can I do to improve the security of my mail server?<\/strong><\/p>\n<ul>\n<li>Regularly update your packages, implement rate limiting, configure spam filtering, and use tools like Fail2Ban to block repeated failed login attempts.<\/li>\n<\/ul>\n<hr \/>\n<p>By following this comprehensive guide, you now have a functional and secure mail server on <a href=\"https:\/\/gratisvps.net\/blog\/installing-the-lamp-stack-on-ubuntu-vps\/\">Ubuntu<\/a> using Postfix, Dovecot, and Roundcube. If you have any questions or need further assistance, feel free to ask!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting Up a Mail Server on Ubuntu Objective:\u00a0This tutorial will guide you through the installation and configuration of a fully [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":823,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[249,215,210,128],"tags":[250,211],"class_list":["post-822","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-email-server","category-tutorial","category-ubuntu","category-vps","tag-email-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>Setting Up a Mail Server on Ubuntu<\/title>\n<meta name=\"description\" content=\"Setting Up a Mail Server on Ubuntu , This tutorial will guide you through the installation of a fully functional mail server in Ubuntu.\" \/>\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\/setting-up-a-mail-server-on-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting Up a Mail Server on Ubuntu\" \/>\n<meta property=\"og:description\" content=\"Setting Up a Mail Server on Ubuntu , This tutorial will guide you through the installation of a fully functional mail server in Ubuntu.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"Free VPS Hosting Guides\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-14T17:24:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/ubuntu-email.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\\\/setting-up-a-mail-server-on-ubuntu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/setting-up-a-mail-server-on-ubuntu\\\/\"},\"author\":{\"name\":\"ariete\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#\\\/schema\\\/person\\\/cddcf8cb5192d0713c19b79425c77fc4\"},\"headline\":\"Setting Up a Mail Server on Ubuntu\",\"datePublished\":\"2025-01-14T17:24:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/setting-up-a-mail-server-on-ubuntu\\\/\"},\"wordCount\":603,\"publisher\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/setting-up-a-mail-server-on-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/ubuntu-email.png\",\"keywords\":[\"Email Server\",\"Ubuntu\"],\"articleSection\":[\"Email Server\",\"Tutorial\",\"Ubuntu\",\"VPS\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/setting-up-a-mail-server-on-ubuntu\\\/\",\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/setting-up-a-mail-server-on-ubuntu\\\/\",\"name\":\"Setting Up a Mail Server on Ubuntu\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/setting-up-a-mail-server-on-ubuntu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/setting-up-a-mail-server-on-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/ubuntu-email.png\",\"datePublished\":\"2025-01-14T17:24:53+00:00\",\"description\":\"Setting Up a Mail Server on Ubuntu , This tutorial will guide you through the installation of a fully functional mail server in Ubuntu.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/setting-up-a-mail-server-on-ubuntu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gratisvps.net\\\/blog\\\/setting-up-a-mail-server-on-ubuntu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/setting-up-a-mail-server-on-ubuntu\\\/#primaryimage\",\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/ubuntu-email.png\",\"contentUrl\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/ubuntu-email.png\",\"width\":832,\"height\":448,\"caption\":\"Setting Up a Mail Server on Ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/setting-up-a-mail-server-on-ubuntu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting Up a Mail Server on Ubuntu\"}]},{\"@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":"Setting Up a Mail Server on Ubuntu","description":"Setting Up a Mail Server on Ubuntu , This tutorial will guide you through the installation of a fully functional mail server in Ubuntu.","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\/setting-up-a-mail-server-on-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"Setting Up a Mail Server on Ubuntu","og_description":"Setting Up a Mail Server on Ubuntu , This tutorial will guide you through the installation of a fully functional mail server in Ubuntu.","og_url":"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/","og_site_name":"Free VPS Hosting Guides","article_published_time":"2025-01-14T17:24:53+00:00","og_image":[{"width":832,"height":448,"url":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/ubuntu-email.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\/setting-up-a-mail-server-on-ubuntu\/#article","isPartOf":{"@id":"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/"},"author":{"name":"ariete","@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/person\/cddcf8cb5192d0713c19b79425c77fc4"},"headline":"Setting Up a Mail Server on Ubuntu","datePublished":"2025-01-14T17:24:53+00:00","mainEntityOfPage":{"@id":"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/"},"wordCount":603,"publisher":{"@id":"https:\/\/gratisvps.net\/blog\/#organization"},"image":{"@id":"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/ubuntu-email.png","keywords":["Email Server","Ubuntu"],"articleSection":["Email Server","Tutorial","Ubuntu","VPS"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/","url":"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/","name":"Setting Up a Mail Server on Ubuntu","isPartOf":{"@id":"https:\/\/gratisvps.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/ubuntu-email.png","datePublished":"2025-01-14T17:24:53+00:00","description":"Setting Up a Mail Server on Ubuntu , This tutorial will guide you through the installation of a fully functional mail server in Ubuntu.","breadcrumb":{"@id":"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#primaryimage","url":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/ubuntu-email.png","contentUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/ubuntu-email.png","width":832,"height":448,"caption":"Setting Up a Mail Server on Ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/gratisvps.net\/blog\/setting-up-a-mail-server-on-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gratisvps.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Setting Up a Mail Server on Ubuntu"}]},{"@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\/822","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=822"}],"version-history":[{"count":1,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts\/822\/revisions"}],"predecessor-version":[{"id":824,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts\/822\/revisions\/824"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/media\/823"}],"wp:attachment":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/media?parent=822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/categories?post=822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/tags?post=822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}