{"id":2544,"date":"2013-11-18T13:03:44","date_gmt":"2013-11-18T19:03:44","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=2544"},"modified":"2025-07-18T06:46:46","modified_gmt":"2025-07-18T11:46:46","slug":"mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/","title":{"rendered":"Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<h5 class=\"wp-block-heading\" id=\"h-status-this-os-is-no-longer-supported\">Status: This OS is no longer supported<\/h5>\n\n\n\n<p><em>This article, &#8220;Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS,&#8221; covers a version of CentOS that reached end of life (EOL). It is no longer supported. As such, this guide is no longer maintained. If you are currently operating a server running CentOS 6, we highly recommend contacting <a href=\"https:\/\/www.rosehosting.com\/support\/\">RoseHosting&#8217;s fully managed support<\/a>. They can upgrade or migrate you to a supported version of AlmaLinux.<\/em><\/p>\n\n\n\n<!--more-->\n\n\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-2546\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png\" alt=\"mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6\" width=\"350\" height=\"284\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png 350w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6-300x243.png 300w\" sizes=\"(max-width: 350px) 100vw, 350px\" \/><\/a>The following article will show you how to install and run a simple <strong>POP3<\/strong>\/<strong>IMAP<\/strong>\/<strong>SMTP<\/strong> mail server in your <a title=\"CentOS VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS VPS<\/a> using <strong>virtual users and domains<\/strong> with <strong>Postfix <\/strong>and <strong>Dovecot<\/strong><\/p>\n<p><strong>What is Postfix?<\/strong> It is a drop in replacement for the old and mature Sendmail. Postfix also attempts to be very fast, easy to administer, and secure.<\/p>\n<p><strong>What is Dovecot?<\/strong> It is an open-source IMAP and POP3 server for *NIX-like systems, written primarily with security in mind.<\/p>\n<p>\u00a0<\/p>\n<h3>PRE-REQ<\/h3>\n<p>You may want to check if your hostname\/domainname is a valid FQDN (fully qualified domain name) and it has a valid MX DNS record.<\/p>\n<pre>## if ! type -path \"dig\" &gt; \/dev\/null 2&gt;&amp;1; then yum install bind-utils -y; fi<\/pre>\n<pre>## DOMAIN=mydomain.com\n## NSHOSTS=( \"$(dig @4.2.2.2 +short MX ${DOMAIN}|sort -n|cut -d' ' -f2)\" )\n## for NS in ${NSHOSTS[@]}; do printf \"%-15s =&gt; %-s\\n\" \"$(dig @4.2.2.2 +short A ${NS})\" \"${NS}\"; done\n## unset DOMAIN NSHOSTS<\/pre>\n<h3>UPDATE THE SYSTEM<\/h3>\n<pre>## screen -U -S mailserver-screen\n## yum update<\/pre>\n<h3>SET-UP SYSTEM USER<\/h3>\n<p>Create a group used for virtual mailboxes<\/p>\n<pre>## groupadd vmail -g 2222<\/pre>\n<p>Create a user used for virtual mailboxes<\/p>\n<pre>## useradd vmail -r -g 2222 -u 2222 -d \/var\/vmail -m -c \"mail user\"<\/pre>\n<h3>INSTALL POSTFIX<\/h3>\n<pre>## yum remove exim sendmail\n## yum install postfix cronie<\/pre>\n<p>Edit postfix <code>main.cf<\/code> configuration file<\/p>\n<pre>## cp \/etc\/postfix\/main.cf{,.orig}\n## vim \/etc\/postfix\/main.cf<\/pre>\n<pre>queue_directory = \/var\/spool\/postfix\ncommand_directory = \/usr\/sbin\ndaemon_directory = \/usr\/libexec\/postfix\ndata_directory = \/var\/lib\/postfix\nmail_owner = postfix\nunknown_local_recipient_reject_code = 550\nalias_maps = hash:\/etc\/postfix\/aliases\nalias_database = $alias_maps\n\ninet_interfaces = all\ninet_protocols = ipv4\nmydestination = $myhostname, localhost.$mydomain, localhost\n\ndebug_peer_level = 2\ndebugger_command =\n         PATH=\/bin:\/usr\/bin:\/usr\/local\/bin:\/usr\/X11R6\/bin\n         ddd $daemon_directory\/$process_name $process_id &amp; sleep 5\n\nsendmail_path = \/usr\/sbin\/sendmail.postfix\nnewaliases_path = \/usr\/bin\/newaliases.postfix\nmailq_path = \/usr\/bin\/mailq.postfix\nsetgid_group = postdrop\nhtml_directory = no\nmanpage_directory = \/usr\/share\/man\nsample_directory = \/usr\/share\/doc\/postfix-2.6.6\/samples\nreadme_directory = \/usr\/share\/doc\/postfix-2.6.6\/README_FILES\n\nrelay_domains = *\nvirtual_alias_maps=hash:\/etc\/postfix\/vmail_aliases\nvirtual_mailbox_domains=hash:\/etc\/postfix\/vmail_domains\nvirtual_mailbox_maps=hash:\/etc\/postfix\/vmail_mailbox\n\nvirtual_mailbox_base = \/var\/vmail\nvirtual_minimum_uid = 2222\nvirtual_transport = virtual\nvirtual_uid_maps = static:2222\nvirtual_gid_maps = static:2222\n\nsmtpd_sasl_auth_enable = yes\nsmtpd_sasl_type = dovecot\nsmtpd_sasl_path = \/var\/run\/dovecot\/auth-client\nsmtpd_sasl_security_options = noanonymous\nsmtpd_sasl_tls_security_options = $smtpd_sasl_security_options\nsmtpd_sasl_local_domain = $mydomain\nbroken_sasl_auth_clients = yes\n\nsmtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination\nsmtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination<\/pre>\n<p>Create <code>vmail_domains<\/code> configuration file. This is where you add your virtual domains.<\/p>\n<pre>## vim \/etc\/postfix\/vmail_domains<\/pre>\n<pre>mydomain.com            OK\nmy-otherdomain.com      OK<\/pre>\n<p>Create <code>vmail_mailbox<\/code> configuration file. This is where you define your mailboxes.<\/p>\n<pre>## vim \/etc\/postfix\/vmail_mailbox<\/pre>\n<pre>info@mydomain.com           mydomain.com\/info\/\ninfo@my-otherdomain.com     my-otherdomain.com\/info\/<\/pre>\n<p>Create <code>vmail_aliases<\/code> configuration file. This is where you define your virtual aliases.<\/p>\n<pre>## vim \/etc\/postfix\/vmail_aliases<\/pre>\n<pre>info@mydomain.com           info@mydomain.com\ninfo@my-otherdomain.com     foo@bar.tld<\/pre>\n<p>Hash the configuration files<\/p>\n<p>&lt;pre&gt;## postmap \/etc\/postfix\/vmail_domains ## postmap \/etc\/postfix\/vmail_mailbox ## postmap \/etc\/postfix\/vmail_aliases<\/p>\n<pre>## touch \/etc\/postfix\/aliases\n## vim +\/submission \/etc\/postfix\/master.cf<\/pre>\n<pre>submission inet n       -       n       -       -       smtpd<\/pre>\n<h3>INSTALL DOVECOT<\/h3>\n<pre>## yum install dovecot<\/pre>\n<p>Edit dovecot &lt;code&gt;dovecot.conf configuration file<\/p>\n<pre>## cp \/etc\/dovecot\/dovecot.conf{,.orig}\n## vim \/etc\/dovecot\/dovecot.conf<\/pre>\n<pre>listen = *\nssl = no\nprotocols = imap lmtp\ndisable_plaintext_auth = no\nauth_mechanisms = plain login\nmail_access_groups = vmail\ndefault_login_user = vmail\nfirst_valid_uid = 2222\nfirst_valid_gid = 2222\n#mail_location = maildir:~\/Maildir\nmail_location = maildir:\/var\/vmail\/%d\/%n\n\npassdb {\n    driver = passwd-file\n    args = scheme=SHA1 \/etc\/dovecot\/passwd\n}\nuserdb {\n    driver = static\n    args = uid=2222 gid=2222 home=\/var\/vmail\/%d\/%n allow_all_users=yes\n}\nservice auth {\n    unix_listener auth-client {\n        group = postfix\n        mode = 0660\n        user = postfix\n    }\n    user = root\n}\nservice imap-login {\n  process_min_avail = 1\n  user = vmail\n}<\/pre>\n<p>Create a virtual user&#8217;s configuration file <code>passwd<\/code>. This is where usernames and password hashes will be stored.<\/p>\n<pre>## touch \/etc\/dovecot\/passwd\n## doveadm pw -s sha1 | cut -d '}' -f2\n\n## vim \/etc\/dovecot\/passwd<\/pre>\n<pre>info@mydomain.com:DOzcsKI8HY0bg8LAuz0DPKwS3WA=<\/pre>\n<pre>## chown root: \/etc\/dovecot\/passwd\n## chmod 600 \/etc\/dovecot\/passwd<\/pre>\n<h3>START SERVICES<\/h3>\n<pre>## chkconfig postfix on\n## chkconfig dovecot on\n## service postfix restart\n## service dovecot restart<\/pre>\n<h3>TEST THE SET-UP<\/h3>\n<p>Open your favorite e-mail client and configure it to use the newly created <code>info@mydomain.com<\/code> account. Try to send\/receive an email. If you experience any issues, check if there&#8217;s something logged in <code>\/var\/log\/maillog<\/code><\/p>\n<p>You can also use <code>swaks<\/code> to test your SMTP server, for example:<\/p>\n<pre>swaks --to support@mydomain.com --from email@address.net<\/pre>\n<p>more information about <code>swaks<\/code> you can find at <code>man swaks<\/code><\/p>\n<h3>ADD ANOTHER ACCOUNT<\/h3>\n<p>Set up the account&#8217;s mailbox<\/p>\n<pre>## vim \/etc\/postfix\/vmail_mailbox\n...\nsupport@mydomain.com           mydomain.com\/support\/<\/pre>\n<p>set-up account&#8217;s alias(es)<\/p>\n<pre>## vim \/etc\/postfix\/vmail_aliases\n...\nsupport@mydomain.com           support@mydomain.com<\/pre>\n<p>Postmap configuration files and restart Postfix<\/p>\n<pre>## postmap \/etc\/postfix\/vmail_mailbox\n## postmap \/etc\/postfix\/vmail_aliases\n## service postfix restart<\/pre>\n<p>Generate password hash and add username:password-hash to the passwd file.<\/p>\n<pre>## doveadm pw -s sha1 | cut -d '}' -f2\n## vim \/etc\/dovecot\/passwd\n...\nsupport@mydomain.com:DOzcsKI8HY0bg8LAuz0DPKwS3WA=<\/pre>\n<hr \/>\n<p>This is a simple, yet very robust mail server set-up on a <a title=\"CentOS VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 6 VPS<\/a> which supports SMTP and IMAP without SSL, webmail, anti-spam, anti-virus, filter rules, opendkim, etc. However, in the next few related articles, we will be adding additional features to the setup to make it even more powerful, so stay tuned.<\/p>\n<ul>\n<li><a title=\"Permalink to Install and set-up Roundcube webmail interface\" href=\"https:\/\/www.rosehosting.com\/blog\/install-and-set-up-roundcube-webmail-interface\/\" target=\"_blank\" rel=\"bookmark noopener noreferrer\">Part 2 &#8211; Install and set up Roundcube webmail interface<\/a><\/li>\n<li><a title=\"Permalink to Set-up SSL encrypted connection in Postfix, Dovecot and Apache\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-ssl-encrypted-connection-in-postfix-dovecot-and-apache\/\" target=\"_blank\" rel=\"bookmark noopener noreferrer\">Part 3 &#8211; Set up SSL-encrypted connection in Postfix, Dovecot, and Apache<\/a><\/li>\n<li><a title=\"How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/\" target=\"_blank\" rel=\"noopener noreferrer\">Part 4 &#8211; How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS<\/a><\/li>\n<li><a title=\"How to install and integrate OpenDKIM with Postfix on a CentOS 6 VPS\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-opendkim-with-postfix-on-a-centos-6-vps\/\" target=\"_blank\" rel=\"noopener noreferrer\">Part 5 &#8211; How to install and integrate OpenDKIM with Postfix on a CentOS 6 VPS<\/a><\/li>\n<li><a title=\"How to set-up server-side email filtering with Dovecot Sieve and Roundcube on a CentOS 6 VPS\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/\" target=\"_blank\" rel=\"noopener noreferrer\">Part 6 &#8211; How to set up server-side email filtering with Dovecot Sieve and Roundcube on a CentOS 6 VPS<\/a><\/li>\n<\/ul>\n<hr \/>\n<p>Of course, if you are one of our <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS Hosting<\/a> customers, you don\u2019t have to do any of this; simply ask our admins, sit back, and relax. Our admins will set this up for you immediately.<\/p>\n<p><strong>PS.<\/strong> If you liked this post, please share it with your friends or leave a reply below. Thanks.<\/p>","protected":false},"excerpt":{"rendered":"<p>Status: This OS is no longer supported This article, &#8220;Mailserver with virtual users and domains using Postfix and Dovecot on &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/#more-2544\" aria-label=\"Read more about Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":2546,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,1706,13],"tags":[124,157,71,15,334,220,1152],"class_list":["post-2544","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-email-servers","category-tutorials","tag-centos-vps","tag-centos6","tag-dovecot","tag-mail","tag-mailserver","tag-postfix","tag-rosehosting","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>Postfix and Dovecot on a CentOS 6 Explained | RoseHosting<\/title>\n<meta name=\"description\" content=\"Discover how to install Postfix and Dovecot on a CentOS 6 system for a reliable mail server setup with virtual users.\" \/>\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\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS\" \/>\n<meta property=\"og:description\" content=\"Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/\" \/>\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=\"2013-11-18T19:03:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-18T11:46:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png\" \/>\n\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t<meta property=\"og:image:height\" content=\"284\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS\",\"datePublished\":\"2013-11-18T19:03:44+00:00\",\"dateModified\":\"2025-07-18T11:46:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/\"},\"wordCount\":564,\"commentCount\":86,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/11\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png\",\"keywords\":[\"centos vps\",\"centos6\",\"Dovecot\",\"mail\",\"mailserver\",\"postfix\",\"rosehosting\"],\"articleSection\":[\"CentOS\",\"Email Servers\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/\",\"name\":\"Postfix and Dovecot on a CentOS 6 Explained | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/11\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png\",\"datePublished\":\"2013-11-18T19:03:44+00:00\",\"dateModified\":\"2025-07-18T11:46:46+00:00\",\"description\":\"Discover how to install Postfix and Dovecot on a CentOS 6 system for a reliable mail server setup with virtual users.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/11\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/11\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png\",\"width\":350,\"height\":284,\"caption\":\"mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS\"}]},{\"@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":"Postfix and Dovecot on a CentOS 6 Explained | RoseHosting","description":"Discover how to install Postfix and Dovecot on a CentOS 6 system for a reliable mail server setup with virtual users.","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\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/","og_locale":"en_US","og_type":"article","og_title":"Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS","og_description":"Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2013-11-18T19:03:44+00:00","article_modified_time":"2025-07-18T11:46:46+00:00","og_image":[{"width":350,"height":284,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png","type":"image\/png"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS","datePublished":"2013-11-18T19:03:44+00:00","dateModified":"2025-07-18T11:46:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/"},"wordCount":564,"commentCount":86,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png","keywords":["centos vps","centos6","Dovecot","mail","mailserver","postfix","rosehosting"],"articleSection":["CentOS","Email Servers","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/","url":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/","name":"Postfix and Dovecot on a CentOS 6 Explained | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png","datePublished":"2013-11-18T19:03:44+00:00","dateModified":"2025-07-18T11:46:46+00:00","description":"Discover how to install Postfix and Dovecot on a CentOS 6 system for a reliable mail server setup with virtual users.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6.png","width":350,"height":284,"caption":"mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-in-centos-6"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS"}]},{"@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\/2544","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=2544"}],"version-history":[{"count":2,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/2544\/revisions"}],"predecessor-version":[{"id":50831,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/2544\/revisions\/50831"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/2546"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=2544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=2544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=2544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}