{"id":30611,"date":"2020-04-29T14:12:40","date_gmt":"2020-04-29T19:12:40","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=30611"},"modified":"2022-06-03T03:33:01","modified_gmt":"2022-06-03T08:33:01","slug":"set-up-a-mail-server-with-postfixadmin-on-debian-9","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/","title":{"rendered":"Set up a Mail Server with PostfixAdmin on Debian 9"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-32340\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/set-up-mail-server-with-postfixadmin-on-debian9.jpg\" alt=\"\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/set-up-mail-server-with-postfixadmin-on-debian9.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/set-up-mail-server-with-postfixadmin-on-debian9-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/set-up-mail-server-with-postfixadmin-on-debian9-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we will show you how to set up a mail server with PostfixAdmin on a <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Debian 9 VPS<\/a>. We will configure a mail server with Postfix, Dovecot, and MariaDB.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-32338\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/install-postfixadmin-mail-server-for-debian9-vps.jpg\" alt=\"\" width=\"108\" height=\"54\" \/>PostfixAdmin is a web based GUI to the database that is used by Postfix. You can easily manage your mail server, like adding and removing domains, email accounts, aliases, and quotas through the use of Postfixadmin. The web-based GUI makes these functions and features more accessible, and allows you to change and access information while away from your terminal. Let&#8217;s get started.<!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e7b2c03645c\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><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><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e7b2c03645c\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#Prerequisites\" >Prerequisites:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#Step-1-Log-in-via-SSH-and-Update-the-System\" >Step 1: Log in via SSH and Update the System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#Step-2-Create-a-System-User\" >Step 2: Create a System User<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#Step-3-Install-MariaDB-Server\" >Step 3: Install MariaDB Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#Step-4-Install-PHP-and-all-Necessary-PHP-Modules\" >Step 4: Install PHP and all Necessary PHP Modules<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#Step-5-Install-Postfix\" >Step 5: Install Postfix<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#Step-6-Install-Dovecot\" >Step 6: Install Dovecot<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#Step-7-Install-PostfixAdmin\" >Step 7: Install PostfixAdmin<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>a <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Debian 9 VPS<\/a><\/li>\n<li>SSH access with root privileges, or access to a user that has sudo privileges<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Log-in-via-SSH-and-Update-the-System\"><\/span>Step 1: Log in via SSH and Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Log in to your Debian 9 VPS:<\/p>\n<pre># ssh root@IP_Address -p Port_number<\/pre>\n<p>You can check whether you have the proper Debian version installed on your server with the following command:<\/p>\n<pre># lsb_release -a<\/pre>\n<p>You should get this output:<\/p>\n<pre>Distributor ID: Debian\r\nDescription: Debian GNU\/Linux 9.9 (Stretch)\r\nRelease: 9.9\r\nCodename: stretch\r\n<\/pre>\n<p>Then, run the following command to make sure that all installed packages on the server are updated to their latest available versions:<\/p>\n<pre># apt update &amp;&amp; apt upgrade<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Create-a-System-User\"><\/span>Step 2: Create a System User<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>For security reasons, we will create a new system user who will be the owner of all mailboxes.<\/p>\n<pre># useradd -r -u 150 -g mail -d \/var\/vmail -s \/sbin\/nologin -c \"Virtual Mail User\" vmail\r\n# mkdir -p \/var\/vmail\r\n# chmod -R 770 \/var\/vmail\r\n# chown -R vmail:mail \/var\/vmail\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Install-MariaDB-Server\"><\/span>Step 3: Install MariaDB Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>PostfixAdmin supports MySQL\/MariaDB, PostgreSQL, and SQLite database systems. In this tutorial, we will use MySQL\/MariaDB as the database storage engine.<\/p>\n<pre># apt install mariadb-server<\/pre>\n<p>To start the MariaDB service and enable it to start on boot, execute the following commands:<\/p>\n<pre># systemctl start mariadb\r\n# systemctl enable mariadb\r\n<\/pre>\n<p>Now, you can skip the following step if you prefer not to have a MySQL root password.<\/p>\n<pre># mysql_secure_installation<\/pre>\n<p>When prompted, answer the questions below by following the guide.<\/p>\n<pre>Enter current password for root (enter for none): Just press the [Enter] key since there is no default password\r\nSet root password? [Y\/n]: Y\r\nNew password: Enter password\r\nRe-enter new password: Repeat password\r\nRemove anonymous users? [Y\/n]: Y\r\nDisallow root login remotely? [Y\/n]: Y\r\nRemove test database and access to it? [Y\/n]: Y\r\nReload privilege tables now? [Y\/n]: Y\r\n<\/pre>\n<p>If you followed the above step, then you would have a newly set password for MySQL root user.<\/p>\n<p>Next, run this command to access the MySQL shell.<\/p>\n<pre># mysql -u root -p<\/pre>\n<p>Remember to enter your root password if you ran the secure installation script.<\/p>\n<p>Let\u2019s proceed with creating a database for PostfixAdmin:<\/p>\n<pre>MariaDB [(none)]&gt; CREATE DATABASE postfixadmin;\r\nMariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON postfixadmin.* TO 'postfixadmin'@'localhost' IDENTIFIED BY '<span style=\"color: #ff0000;\">M0d1fyth15<\/span>';\r\nMariaDB [(none)]&gt; FLUSH PRIVILEGES;\r\nMariaDB [(none)]&gt; \\q<\/pre>\n<p>Make sure to replace the password for the database user to a good unique password.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Install-PHP-and-all-Necessary-PHP-Modules\"><\/span>Step 4: Install PHP and all Necessary PHP Modules<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This is<\/p>\n<pre>apt install apache2 php php-mbstring php-imap php-mysql libapache2-mod-php7.0<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Install-Postfix\"><\/span>Step 5: Install Postfix<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Install Postfix with the command below:<\/p>\n<pre># apt install postfix-mysql<\/pre>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-30632\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install_postfix_1.png\" alt=\"\" width=\"666\" height=\"459\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install_postfix_1.png 666w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install_postfix_1-150x103.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install_postfix_1-300x207.png 300w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><br \/>\nChoose Internet Site and click on Ok to continue.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-30629\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install_postfix_2.png\" alt=\"\" width=\"1337\" height=\"265\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install_postfix_2.png 1337w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install_postfix_2-150x30.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install_postfix_2-300x59.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install_postfix_2-768x152.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install_postfix_2-1024x203.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/install_postfix_2-1080x214.png 1080w\" sizes=\"(max-width: 1337px) 100vw, 1337px\" \/><\/p>\n<p>You will be asked for the system mail name, make sure this is the same with your hostname.<\/p>\n<p>Once the installation is completed, we need to create configuration files:<\/p>\n<pre># mkdir -p \/etc\/postfix\/sql\/<\/pre>\n<p>From here, several configuration files will be created. Make sure to replace any and all values that are different here to the necessary values, or your configuration may not work.<\/p>\n<pre># nano \/etc\/postfix\/sql\/mysql_virtual_alias_domain_catchall_maps.cf<\/pre>\n<pre>user = postfixadmin\r\npassword = <span style=\"color: #ff0000;\">M0d1fyth15<\/span>\r\nhosts = localhost\r\ndbname = postfixadmin\r\nquery = SELECT goto FROM alias,alias_domain WHERE alias_domain.alias_domain = '%d' and alias.address = CONCAT('@', alias_domain.target_domain) AND alias.active = 1 AND alias_domain.active='1'\r\n<\/pre>\n<pre># nano \/etc\/postfix\/sql\/mysql_virtual_alias_domain_mailbox_maps.cf<\/pre>\n<pre>user = postfixadmin\r\npassword = <span style=\"color: #ff0000;\">M0d1fyth15<\/span>\r\nhosts = localhost\r\ndbname = postfixadmin\r\nquery = SELECT maildir FROM mailbox,alias_domain WHERE alias_domain.alias_domain = '%d' and mailbox.username = CONCAT('%u', '@', alias_domain.target_domain) AND mailbox.active = 1 AND alias_domain.active='1'\r\n<\/pre>\n<pre># nano \/etc\/postfix\/sql\/mysql_virtual_alias_domain_maps.cf<\/pre>\n<pre>user = postfixadmin\r\npassword = <span style=\"color: #ff0000;\">M0d1fyth15<\/span>\r\nhosts = localhost\r\ndbname = postfixadmin\r\nquery = SELECT goto FROM alias,alias_domain WHERE alias_domain.alias_domain = '%d' and alias.address = CONCAT('%u', '@', alias_domain.target_domain) AND alias.active = 1 AND alias_domain.active='1'\r\n<\/pre>\n<pre># nano \/etc\/postfix\/sql\/mysql_virtual_alias_maps.cf<\/pre>\n<pre>user = postfixadmin\r\npassword = <span style=\"color: #ff0000;\">M0d1fyth15<\/span>\r\nhosts = localhost\r\ndbname = postfixadmin\r\nquery = SELECT goto FROM alias WHERE address='%s' AND active = '1'\r\n<\/pre>\n<pre># nano \/etc\/postfix\/sql\/mysql_virtual_domains_maps.cf<\/pre>\n<pre>user = postfixadmin\r\npassword = <span style=\"color: #ff0000;\">M0d1fyth15<\/span>\r\nhosts = localhost\r\ndbname = postfixadmin\r\nquery = SELECT domain FROM domain WHERE domain='%s' AND active = '1'\r\n<\/pre>\n<pre># nano \/etc\/postfix\/sql\/mysql_virtual_mailbox_limit_maps.cf<\/pre>\n<pre>user = postfixadmin\r\npassword = <span style=\"color: #ff0000;\">M0d1fyth15<\/span>\r\nhosts = localhost\r\ndbname = postfixadmin\r\nquery = SELECT quota FROM mailbox WHERE username='%s' AND active = '1'\r\n<\/pre>\n<pre># nano \/etc\/postfix\/sql\/mysql_virtual_mailbox_maps.cf<\/pre>\n<pre>user = postfixadmin\r\npassword = <span style=\"color: #ff0000;\">M0d1fyth15<\/span>\r\nhosts = localhost\r\ndbname = postfixadmin\r\nquery = SELECT maildir FROM mailbox WHERE username='%s' AND active = '1'\r\n<\/pre>\n<p>In the configuration files above, we use &#8216;<span style=\"color: #ff0000;\">m0d1fyth15<\/span>&#8216; as the password, please change it to your own password.<\/p>\n<p>Now, let&#8217;s edit the <code>main.cf<\/code> file by invoking the following commands:<\/p>\n<pre>postconf -e \"myhostname = $(hostname -f)\"\r\npostconf -e \"virtual_mailbox_domains = proxy:mysql:\/etc\/postfix\/sql\/mysql_virtual_domains_maps.cf\"\r\npostconf -e \"virtual_alias_maps = proxy:mysql:\/etc\/postfix\/sql\/mysql_virtual_alias_maps.cf, proxy:mysql:\/etc\/postfix\/sql\/mysql_virtual_alias_domain_maps.cf, proxy:mysql:\/etc\/postfix\/sql\/mysql_virtual_alias_domain_catchall_maps.cf\"\r\npostconf -e \"virtual_mailbox_maps = proxy:mysql:\/etc\/postfix\/sql\/mysql_virtual_mailbox_maps.cf, proxy:mysql:\/etc\/postfix\/sql\/mysql_virtual_alias_domain_mailbox_maps.cf\"\r\npostconf -e \"smtpd_tls_cert_file = \/etc\/ssl\/certs\/ssl-cert-snakeoil.pem\"\r\npostconf -e \"smtpd_tls_key_file = \/etc\/ssl\/private\/ssl-cert-snakeoil.key\"\r\npostconf -e \"smtpd_use_tls = yes\"\r\npostconf -e \"smtpd_tls_auth_only = yes\"\r\npostconf -e \"smtpd_sasl_type = dovecot\"\r\npostconf -e \"smtpd_sasl_path = private\/auth\"\r\npostconf -e \"smtpd_sasl_auth_enable = yes\"\r\npostconf -e \"smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination\"\r\npostconf -e \"mydestination = localhost\"\r\npostconf -e \"mynetworks = 127.0.0.0\/8\"\r\npostconf -e \"inet_protocols = ipv4\"\r\npostconf -e \"inet_interfaces = all\"\r\npostconf -e \"virtual_transport = lmtp:unix:private\/dovecot-lmtp\"<\/pre>\n<p>Open the <code>master.cf<\/code> file, find <code>submission inet n<\/code> and <code>smtps inet n<\/code> sections and edit as follows:<\/p>\n<pre># nano \/etc\/postfix\/master.cf<\/pre>\n<pre>smtp inet n - y - - smtpd\r\n#smtp inet n - y - 1 postscreen\r\n#smtpd pass - - y - - smtpd\r\n#dnsblog unix - - y - 0 dnsblog\r\n#tlsproxy unix - - y - 0 tlsproxy\r\nsubmission inet n - y - - smtpd\r\n-o syslog_name=postfix\/submission\r\n-o smtpd_tls_security_level=encrypt\r\n-o smtpd_sasl_auth_enable=yes\r\n# -o smtpd_reject_unlisted_recipient=no\r\n# -o smtpd_client_restrictions=$mua_client_restrictions\r\n# -o smtpd_helo_restrictions=$mua_helo_restrictions\r\n# -o smtpd_sender_restrictions=$mua_sender_restrictions\r\n# -o smtpd_recipient_restrictions=\r\n# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject\r\n-o smtpd_client_restrictions=permit_sasl_authenticated,reject\r\n-o milter_macro_daemon_name=ORIGINATING\r\nsmtps inet n - y - - smtpd\r\n-o syslog_name=postfix\/smtps\r\n# -o smtpd_tls_wrappermode=yes\r\n-o smtpd_sasl_auth_enable=yes\r\n# -o smtpd_reject_unlisted_recipient=no\r\n-o smtpd_client_restrictions=permit_sasl_authenticated,reject\r\n# -o smtpd_client_restrictions=$mua_client_restrictions\r\n# -o smtpd_helo_restrictions=$mua_helo_restrictions\r\n# -o smtpd_sender_restrictions=$mua_sender_restrictions\r\n# -o smtpd_recipient_restrictions=\r\n# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject\r\n-o milter_macro_daemon_name=ORIGINATING\r\n<\/pre>\n<p>Enable and restart the Postfix service:<\/p>\n<pre># systemctl enable postfix\r\n# systemctl restart postfix<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Install-Dovecot\"><\/span>Step 6: Install Dovecot<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Install Dovecot using the command below:<\/p>\n<pre># apt install dovecot-mysql<\/pre>\n<p>Open the<span style=\"color: #ff0000;\"> \/etc\/dovecot\/conf.d\/10-mail.conf<\/span> file and change the following values:<\/p>\n<pre># nano \/etc\/dovecot\/conf.d\/10-mail.conf<\/pre>\n<pre>mail_location = maildir:\/var\/vmail\/%d\/%n\r\nmail_privileged_group = mail\r\nmail_uid = vmail\r\nmail_gid = mail\r\nfirst_valid_uid = 150\r\nlast_valid_uid = 150\r\n<\/pre>\n<p>Open the <span style=\"color: #ff0000;\">\/etc\/dovecot\/conf.d\/10-auth.conf<\/span> file and change the following values:<\/p>\n<pre># nano \/etc\/dovecot\/conf.d\/10-auth.conf<\/pre>\n<pre>auth_mechanisms = plain login\r\n#!include auth-system.conf.ext\r\n!include auth-sql.conf.ext\r\n<\/pre>\n<p>Edit the <code>dovecot-sql.conf.ext<\/code> file, then append these lines:<\/p>\n<pre># nano \/etc\/dovecot\/dovecot-sql.conf.ext<\/pre>\n<pre>driver = mysql\r\nconnect = host=localhost dbname=postfixadmin user=postfixadmin password=<span style=\"color: #ff0000;\">M0d1fyth15<\/span>\r\ndefault_pass_scheme = MD5-CRYPT\r\npassword_query = SELECT username as user, password, '\/var\/vmail\/%d\/%n' as userdb_home, 'maildir:\/var\/vmail\/%d\/%n' as userdb_mail, 150 as userdb_uid, 8 as userdb_gid FROM mailbox WHERE username = '%u' AND active = '1'\r\nuser_query = SELECT '\/var\/vmail\/%d\/%u' as home, 'maildir:\/var\/vmail\/%d\/%u' as mail, 150 AS uid, 8 AS gid, concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username = '%u' AND active = '1'<\/pre>\n<p>Remember to replace the password as well as any other different values here as well.<\/p>\n<p>In the <span style=\"color: #ff0000;\">\/etc\/dovecot\/conf.d\/10-ssl.conf<\/span> file, enable SSL support:<\/p>\n<pre># nano \/etc\/dovecot\/conf.d\/10-ssl.conf<\/pre>\n<pre>ssl = yes<\/pre>\n<p>Open the<span style=\"color: #ff0000;\"> \/etc\/dovecot\/conf.d\/15-lda.conf<\/span> file and set the <code>postmaster_address<\/code> email address.<\/p>\n<pre># nano \/etc\/dovecot\/conf.d\/15-lda.conf<\/pre>\n<pre>postmaster_address = postmaster@yourdomain.com<\/pre>\n<p>Open the <span style=\"color: #ff0000;\">\/etc\/dovecot\/conf.d\/10-master.conf<\/span> file, find the service lmtp section and change it to the following:<\/p>\n<pre># nano \/etc\/dovecot\/conf.d\/10-master.conf<\/pre>\n<pre>service lmtp {\r\n     unix_listener \/var\/spool\/postfix\/private\/dovecot-lmtp {\r\n     mode = 0600\r\n     user = postfix\r\n     group = postfix\r\n     }\r\n}\r\n<\/pre>\n<p>find the service auth section and change it to:<\/p>\n<pre>service auth {\r\n     unix_listener \/var\/spool\/postfix\/private\/auth {\r\n     mode = 0666\r\n     user = postfix\r\n     group = postfix\r\n}\r\n\r\nunix_listener auth-userdb {\r\n     mode = 0600\r\n     user = vmail\r\n\r\n}\r\nuser = dovecot\r\n}\r\n\r\n<\/pre>\n<p>Change the service auth-worker section to the following:<\/p>\n<pre>service auth-worker {\r\nuser = vmail\r\n}\r\n<\/pre>\n<p>Set the permissions:<\/p>\n<pre># chown -R vmail:dovecot \/etc\/dovecot\r\n# chmod -R o-rwx \/etc\/dovecot<\/pre>\n<p>Enable and restart the Dovecot service<\/p>\n<pre># systemctl enable dovecot\r\n# systemctl restart dovecot<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-7-Install-PostfixAdmin\"><\/span>Step 7: Install PostfixAdmin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this step, we will download PostfixAdmin from Github and store it in the <code>\/opt<\/code> directory.<\/p>\n<pre># apt install git\r\n# cd \/opt\r\n# git clone https:\/\/github.com\/postfixadmin\/postfixadmin.git\r\n\r\n# ln -s \/opt\/postfixadmin\/public\/ \/var\/www\/html\/mailadmin<\/pre>\n<p>Insert these lines to <span style=\"color: #ff0000;\">\/opt\/postfixadmin\/config.local.php<\/span><\/p>\n<pre># nano \/opt\/postfixadmin\/config.local.php<\/pre>\n<pre>&lt;?php\r\n$CONF['database_type'] = 'mysqli';\r\n$CONF['database_host'] = 'localhost';\r\n$CONF['database_user'] = 'postfixadmin';\r\n$CONF['database_password'] = 'M0d1fyth15';\r\n$CONF['database_name'] = 'postfixadmin';\r\n$CONF['configured'] = true;\r\n\r\n?&gt;\r\n<\/pre>\n<pre># mkdir \/opt\/postfixadmin\/templates_c\r\n\r\n# chown -R www-data: \/opt\/postfixadmin<\/pre>\n<p>Connect to http:\/\/<span style=\"color: #ff0000;\">1.2.3.4<\/span>\/mailadmin\/setup.php, making sure to replace\u00a0<span style=\"color: #ff0000;\">1.2.3.4<\/span> with your server actual IP address. If everything is okay, scroll down and create a setup password.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-30631\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/postfixadmin_setup.png\" alt=\"\" width=\"517\" height=\"442\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/postfixadmin_setup.png 517w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/postfixadmin_setup-150x128.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/postfixadmin_setup-300x256.png 300w\" sizes=\"(max-width: 517px) 100vw, 517px\" \/><\/p>\n<p>click on generate hash, and you will see this:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-30630\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/postfixadmin_setup_2.png\" alt=\"\" width=\"725\" height=\"509\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/postfixadmin_setup_2.png 725w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/postfixadmin_setup_2-150x105.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/04\/postfixadmin_setup_2-300x211.png 300w\" sizes=\"(max-width: 725px) 100vw, 725px\" \/><\/p>\n<p>You need to paste the <code>setup_password<\/code> hash as shown in the picture above to <span style=\"color: #ff0000;\">\/opt\/postfixadmin\/config.local.php<\/span>, it should look like this<\/p>\n<pre>&lt;?php\r\n$CONF['database_type'] = 'mysqli';\r\n$CONF['database_host'] = 'localhost';\r\n$CONF['database_user'] = 'postfixadmin';\r\n$CONF['database_password'] = 'M0d1fyth15';\r\n$CONF['database_name'] = 'postfixadmin';\r\n$CONF['configured'] = true;\r\n\r\n<span style=\"color: #ff0000;\">$CONF['setup_password'] = 'd7b5b4ed7e91d81f246d802a6f09474a:69478ddf65feb4036215cb2c6f48c3dfd815ee8c';<\/span>\r\n?&gt;\r\n<\/pre>\n<p>Save the file, then you can go back to the setup page to create a PostfixAdmin admin user. The setup password in that page is the same password you used in the previous step &#8211; fill the other blanks as you wish, then click on the &#8216;Add admin&#8217; button.<\/p>\n<p>Now, you can go to <code>http:\/\/1.2.3.4\/mailadmin\/login.php<\/code> to add your domains and create email addresses there.<\/p>\n<p>That&#8217;s it! You now have PostfixAdmin set up and running on your Debian 9 server.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-32339\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/get-expert-help-for-mail-server-support-from-experienced-admins-on-debian-vps.jpg\" alt=\"\" width=\"108\" height=\"54\" \/>Of course, you don\u2019t have to set up a mail server with PostfixAdmin on Debian 9 if you use one of our <a href=\"https:\/\/www.rosehosting.com\/email-hosting.html\">Mail Server Hosting<\/a> services, in which case you can simply ask our expert Linux admins to set up a mail server for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post on how to set up a mail server with PostfixAdmin on Debian 9, or if you found it helpful, please share it with your friends on the social networks using the share shortcuts, or simply leave a comment in the Comments Section below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; In this tutorial, we will show you how to set up a mail server with PostfixAdmin on a Debian &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Set up a Mail Server with PostfixAdmin on Debian 9\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#more-30611\" aria-label=\"Read more about Set up a Mail Server with PostfixAdmin on Debian 9\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":32340,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,1706,13],"tags":[],"class_list":["post-30611","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-email-servers","category-tutorials","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Set up a Mail Server with PostfixAdmin on Debian 9 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Set up a Mail Server with PostfixAdmin on Debian 9 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set up a Mail Server with PostfixAdmin on Debian 9\" \/>\n<meta property=\"og:description\" content=\"Set up a Mail Server with PostfixAdmin on Debian 9 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-29T19:12:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:33:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/set-up-mail-server-with-postfixadmin-on-debian9.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Set up a Mail Server with PostfixAdmin on Debian 9\",\"datePublished\":\"2020-04-29T19:12:40+00:00\",\"dateModified\":\"2022-06-03T08:33:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/\"},\"wordCount\":872,\"commentCount\":9,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/set-up-mail-server-with-postfixadmin-on-debian9.jpg\",\"articleSection\":[\"Debian\",\"Email Servers\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/\",\"name\":\"Set up a Mail Server with PostfixAdmin on Debian 9 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/set-up-mail-server-with-postfixadmin-on-debian9.jpg\",\"datePublished\":\"2020-04-29T19:12:40+00:00\",\"dateModified\":\"2022-06-03T08:33:01+00:00\",\"description\":\"Set up a Mail Server with PostfixAdmin on Debian 9 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/set-up-mail-server-with-postfixadmin-on-debian9.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/set-up-mail-server-with-postfixadmin-on-debian9.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/set-up-a-mail-server-with-postfixadmin-on-debian-9\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set up a Mail Server with PostfixAdmin on Debian 9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Set up a Mail Server with PostfixAdmin on Debian 9 | RoseHosting","description":"Set up a Mail Server with PostfixAdmin on Debian 9 | RoseHosting","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:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/","og_locale":"en_US","og_type":"article","og_title":"Set up a Mail Server with PostfixAdmin on Debian 9","og_description":"Set up a Mail Server with PostfixAdmin on Debian 9 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2020-04-29T19:12:40+00:00","article_modified_time":"2022-06-03T08:33:01+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/set-up-mail-server-with-postfixadmin-on-debian9.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Set up a Mail Server with PostfixAdmin on Debian 9","datePublished":"2020-04-29T19:12:40+00:00","dateModified":"2022-06-03T08:33:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/"},"wordCount":872,"commentCount":9,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/set-up-mail-server-with-postfixadmin-on-debian9.jpg","articleSection":["Debian","Email Servers","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/","url":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/","name":"Set up a Mail Server with PostfixAdmin on Debian 9 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/set-up-mail-server-with-postfixadmin-on-debian9.jpg","datePublished":"2020-04-29T19:12:40+00:00","dateModified":"2022-06-03T08:33:01+00:00","description":"Set up a Mail Server with PostfixAdmin on Debian 9 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/set-up-mail-server-with-postfixadmin-on-debian9.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/set-up-mail-server-with-postfixadmin-on-debian9.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/set-up-a-mail-server-with-postfixadmin-on-debian-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Set up a Mail Server with PostfixAdmin on Debian 9"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=30611"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30611\/revisions"}],"predecessor-version":[{"id":41659,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30611\/revisions\/41659"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/32340"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=30611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=30611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=30611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}