{"id":16823,"date":"2015-02-17T13:37:29","date_gmt":"2015-02-17T19:37:29","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=16823"},"modified":"2022-06-03T03:46:21","modified_gmt":"2022-06-03T08:46:21","slug":"how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/","title":{"rendered":"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps.png\"><img decoding=\"async\" class=\"alignleft wp-image-16824 size-medium\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps-300x191.png\" alt=\"how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\" width=\"300\" height=\"191\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps-300x191.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps-157x100.png 157w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps-50x32.png 50w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps-75x48.png 75w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps.png 823w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>In this article we will walk you through the steps on <strong>how to setup a mailserver with Exim4 and DBMail on a Debian 7 (Wheezy) <a title=\"Linux VPS\" href=\"https:\/\/www.rosehosting.com\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS<\/a><\/strong>.<\/p>\n<p><strong>What is Exim4?<\/strong><\/p>\n<p>It is a mail transfer agent (MTA) used on Unix-like operating systems which is responsible for receiving, routing, and delivering e-mail messages.<\/p>\n<p><strong>What is DBMail?<\/strong><\/p>\n<p>It is fast and scalable sql based email service which stores email messages in a relational database. It supports multiple front-ends like <strong>IMAP4<\/strong>, <strong>POP3<\/strong>, <strong>ManageSieve<\/strong>, <strong>LMTP<\/strong> etc. and multiple back-ends like <strong>MySQL<\/strong>, <strong>PostgreSQL<\/strong>, <strong>Oracle<\/strong> and <strong>SQLite<\/strong>.<\/p>\n<p>Main <strong>advantages of DBMail<\/strong> are:<\/p>\n<ul>\n<li>Scalability<\/li>\n<li>Manageability<\/li>\n<li>Speed<\/li>\n<li>Security<\/li>\n<li>Flexibility<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p><strong>System Requirements?<\/strong><\/p>\n<ul>\n<li>A Debian 7 <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS Hosting<\/a><\/li>\n<li>Database server<\/li>\n<li>Exim MTA<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><b>UPDATE SYSTEM<\/b><\/h3>\n<p>First thing to do is to SSH to your <a title=\"Debian VPS\" href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Debian VPS<\/a>, fire up a <code>screen<\/code> session and update your <a title=\"Linux VPS\" href=\"https:\/\/www.rosehosting.com\" target=\"_blank\" rel=\"noopener noreferrer\">linux vps<\/a> using the following commands:<\/p>\n<pre>## screen -U -S exim-dbmail\r\n## apt-get update\r\n## apt-get upgrade<\/pre>\n<p>&nbsp;<\/p>\n<h3><b>ADD DBMAIL SOURCES<\/b><\/h3>\n<p>Proceed with adding DBMail&#8217;s sources to your <code>sources.list<\/code> so you can install the required packages in the next step. You can add the sources using the following commands:<\/p>\n<pre>## cp \/etc\/apt\/sources.list{,.orig}\r\n## echo \"deb http:\/\/debian.nfgd.net\/debian stable main\" &gt;&gt; \/etc\/apt\/sources.list\r\n## echo \"deb-src http:\/\/debian.nfgd.net\/debian stable main\" &gt;&gt; \/etc\/apt\/sources.list<\/pre>\n<p>&nbsp;<\/p>\n<h3><b>INSTALL REQUIRED PACKAGES<\/b><\/h3>\n<p>Update the sources using <code>apt<\/code> and install the necessary packages by executing the following commands in your terminal as root:<\/p>\n<pre>## apt-get update\r\n## apt-get install exim4 exim4-daemon-heavy mysql-server mysql-client dbmail\r\n## apt-get purge sendmail*<\/pre>\n<p>&nbsp;<\/p>\n<h3><b>CREATE DBMAIL DATABASE<\/b><\/h3>\n<p>Next, DBMail requires a database as its back-end and since in this article we are using the MySQL database server, proceed with creating a new user and database by running the following commands:<\/p>\n<pre>## mysql -u root -p\r\n\r\nCREATE DATABASE dbmail;\r\nGRANT ALL ON dbmail.* TO dbmail@localhost IDENTIFIED BY 'DATABASE_PASSWORD';\r\n\\q<\/pre>\n<h3><b>POPULATE DBMAIL DATABASE TABLES<\/b><\/h3>\n<p>Ok, next thing to do is to populate the newly created database with the required database tables provided by DBMail. You can achieve this using the following commands:<\/p>\n<pre>## zcat \/usr\/share\/doc\/dbmail\/examples\/create_tables.mysql.gz &gt; \/tmp\/dbmail_create_tables.sql\r\n## mysql -u dbmail -p dbmail &lt; \/tmp\/dbmail_create_tables.sql<\/pre>\n<p>&nbsp;<\/p>\n<h3><b>CONFIGURE DBMAIL<\/b><\/h3>\n<p>Edit <code>\/etc\/dbmail\/dbmail.conf<\/code> and setup DBMail back-end by setting up the following:<\/p>\n<pre>## vim \/etc\/dbmail\/dbmail.conf\r\n\r\ndburi = mysql:\/\/dbmail:DATABASE_PASSWORD@localhost:3306\/dbmail\r\nauthdriver = sql<\/pre>\n<p><em>do not forget to replace DATABASE_PASSWORD with the actual password you used when you created the database<br \/>\n<\/em><\/p>\n<p>Next, edit <code>\/etc\/default\/dbmail<\/code> and set the following:<\/p>\n<pre>## vim \/etc\/default\/dbmail\r\n\r\nSTART_IMAPD=true\r\nSTART_LMTPD=true<\/pre>\n<p>&nbsp;<\/p>\n<h3><b>RESTART DBMAIL SERVICE<\/b><\/h3>\n<p>With DBMail&#8217;s configuration in place, proceed with starting up the service using:<\/p>\n<pre>## service dbmail restart<\/pre>\n<p>&nbsp;<\/p>\n<h3><b>ADD DBMAIL TO SYSTEM STARTUP<\/b><\/h3>\n<p>Add DBMail service to your <a title=\"Debian VPS\" href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Debain VPS<\/a> startup so that the service is automatically started when you reboot your server:<\/p>\n<pre>## update-rc.d -f dbmail enable<\/pre>\n<p>&nbsp;<\/p>\n<h3><b>CONFIGURE EXIM<\/b><\/h3>\n<p>Next, you have to appropriately configure Exim with DBMail. This includes setting up user database lookups, authentication, routing and transport. First setup Exim main configuration file and continue with user lookups, so:<\/p>\n<pre>## vim \/etc\/exim4\/update-exim4.conf.conf\r\n\r\ndc_eximconfig_configtype='internet'\r\ndc_other_hostnames='mydomain.com'\r\ndc_local_interfaces=''\r\ndc_readhost=''\r\ndc_relay_domains=''\r\ndc_minimaldns='false'\r\ndc_relay_nets='127.0.0.0\/8'\r\ndc_smarthost=''\r\nCFILEMODE='644'\r\ndc_use_split_config='true'\r\ndc_hide_mailname=''\r\ndc_mailname_in_oh='true'\r\ndc_localdelivery='maildir_home'<\/pre>\n<p><em>replace mydomain.com with your actual domain name<\/em><\/p>\n<pre>## vim \/etc\/exim4\/conf.d\/main\/05_exim4-config_dbmail_user_lookup\r\n\r\nhide mysql_servers = localhost\/dbmail\/dbmail\/DATABASE_PASSWORD<\/pre>\n<p>Setup MTA banner by adding the following:<\/p>\n<pre>## vim \/etc\/exim4\/conf.d\/main\/06_exim4-config_smtp_banner\r\n\r\nsmtp_banner = $smtp_active_hostname MTA<\/pre>\n<p>Now, setup DBMail lmtp by configuring the following:<\/p>\n<pre>## vim \/etc\/exim4\/conf.d\/transport\/30_exim4-config_dbmail_lmtp\r\n\r\ndbmail_lmtp:\r\n\tdriver = smtp\r\n\tprotocol = lmtp\r\n\thosts = 127.0.0.1\r\n\tallow_localhost\r\n\treturn_path_add<\/pre>\n<p>Next, setup user lookup:<\/p>\n<pre>## vim \/etc\/exim4\/conf.d\/router\/750_exim4-config_dbmail_user\r\n\r\ndbmail_user:\r\n\tdebug_print = \"R: dbmail_user for $local_part@$domain\"\r\n\tdriver = accept\r\n\tcondition = ${lookup mysql{\\\r\n\t\tSELECT alias_idnr FROM dbmail_aliases WHERE \\\r\n\t\talias='${quote_mysql:$local_part@$domain}' OR \\\r\n\t\talias='${quote_mysql:@$domain}'}{yes}{no}}\r\n\ttransport = dbmail_lmtp\r\n\tcannot_route_message = Unknown user<\/pre>\n<p>and proceed with setting up the user authentication:<\/p>\n<pre>## vim \/etc\/exim4\/conf.d\/auth\/10_exim4_config_dbmail_auth_plain\r\n\r\nauth_plain:\r\n\tdriver = plaintext\r\n\tpublic_name = PLAIN\r\n\tserver_condition = ${lookup mysql{\\\r\n\t\tSELECT user_idnr FROM dbmail_users WHERE \\\r\n\t\tuserid='${quote_mysql:$2}' AND \\\r\n\t\tpasswd='${quote_mysql:$3}'}{yes}{no}}\r\n\tserver_prompts =:\r\n\tserver_set_id = $2<\/pre>\n<pre>## vim \/etc\/exim4\/conf.d\/auth\/15_exim4-config_dbmail_auth_login\r\n\r\nauth_login:\r\n\tdriver = plaintext\r\n\tpublic_name = LOGIN\r\n\tserver_condition = ${lookup mysql{\\\r\n\t\tSELECT user_idnr FROM dbmail_users WHERE \\\r\n\t\tuserid='${quote_mysql:$1}' AND \\\r\n\t\tpasswd='${quote_mysql:$2}'}{yes}{no}}\r\n\tserver_prompts = Username::: Password::\r\n\tserver_set_id = $1<\/pre>\n<pre>## vim \/etc\/exim4\/conf.d\/auth\/20_exim4-config_dbmail_auth_cram_md5\r\n\r\nauth_cram_md5:\r\n\tdriver = cram_md5\r\n\tpublic_name = CRAM-MD5\r\n\tserver_secret = ${lookup mysql{\\\r\n\t\tSELECT passwd FROM dbmail_users WHERE \\\r\n\t\tuserid='${quote_mysql:$1}'}{$value}fail}\r\n\tserver_set_id = $1<\/pre>\n<p>Add lmtp to <code>\/etc\/services<\/code><\/p>\n<pre>## vim \/etc\/services\r\n\r\nlmtp            24\/tcp<\/pre>\n<p>and finally update Exim configuration and restart the MTA using:<\/p>\n<pre>## update-exim4.conf\r\n## service exim4 restart<\/pre>\n<p>&nbsp;<\/p>\n<h3><b>CREATE A NEW EMAIL ACCOUNT<\/b><\/h3>\n<p>DBMail provides some nice command line utilities to manage the accounts. For example, to create a new account you would use:<\/p>\n<pre>## dbmail-users -a USERNAME -w PASSWORD -s user@domain.com<\/pre>\n<p>More information on this you can find at <code>http:\/\/www.dbmail.org\/dokuwiki\/doku.php\/manage_users<\/code><\/p>\n<p>&nbsp;<\/p>\n<h3><b>ADDING ANOTHER DOMAIN<\/b><\/h3>\n<p>To add another domain to the mail server, you need to edit <code>\/etc\/exim4\/update-exim4.conf.conf<\/code> and add your domain in <code>dc_other_hostnames<\/code> separated by a semicolon as in:<\/p>\n<pre>## vim \/etc\/exim4\/update-exim4.conf.conf\r\n\r\ndc_other_hostnames='mydomain.com;myotherdomain.org'<\/pre>\n<p>save and close the file, update Exim configuration file and restart the MTA using:<\/p>\n<pre>## update-exim4.conf\r\n## service exim4 restart<\/pre>\n<p>Use the following command:<\/p>\n<pre>## tail -f \/var\/log\/exim4\/mainlog  \/var\/log\/dbmail\/dbmail.* \/var\/log\/mail.log<\/pre>\n<p>to read your mail server log files.<\/p>\n<p>That&#8217;s it. Head over to <code>http:\/\/www.dbmail.org\/dokuwiki\/doku.php<\/code> to learn more about DBMail and how to use it.<\/p>\n<hr \/>\n<p>Of course you don\u2019t have to do any of this if you use 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> services, in which case you can simply ask our expert Linux admins to <strong>install Exim with DBMail<\/strong>. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span>.<\/strong> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article we will walk you through the steps on how to setup a mailserver with Exim4 and DBMail &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/#more-16823\" aria-label=\"Read more about How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":16824,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,1706,13],"tags":[715,48,487,177,384],"class_list":["post-16823","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-email-servers","category-tutorials","tag-dbmail","tag-debian","tag-exim","tag-linux-vps","tag-mail-server","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>How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS | 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\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS\" \/>\n<meta property=\"og:description\" content=\"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-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=\"2015-02-17T19:37:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:46:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps.png\" \/>\n\t<meta property=\"og:image:width\" content=\"823\" \/>\n\t<meta property=\"og:image:height\" content=\"523\" \/>\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=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS\",\"datePublished\":\"2015-02-17T19:37:29+00:00\",\"dateModified\":\"2022-06-03T08:46:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/\"},\"wordCount\":618,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps.png\",\"keywords\":[\"dbmail\",\"debian\",\"exim\",\"linux vps\",\"mail-server\"],\"articleSection\":[\"Debian\",\"Email Servers\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/\",\"name\":\"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps.png\",\"datePublished\":\"2015-02-17T19:37:29+00:00\",\"dateModified\":\"2022-06-03T08:46:21+00:00\",\"description\":\"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps.png\",\"width\":823,\"height\":523},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to setup a mailserver with Exim4 and DBMail on a Debian 7 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":"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS | RoseHosting","description":"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS | 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\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/","og_locale":"en_US","og_type":"article","og_title":"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS","og_description":"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2015-02-17T19:37:29+00:00","article_modified_time":"2022-06-03T08:46:21+00:00","og_image":[{"width":823,"height":523,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps.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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS","datePublished":"2015-02-17T19:37:29+00:00","dateModified":"2022-06-03T08:46:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/"},"wordCount":618,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps.png","keywords":["dbmail","debian","exim","linux vps","mail-server"],"articleSection":["Debian","Email Servers","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/","name":"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps.png","datePublished":"2015-02-17T19:37:29+00:00","dateModified":"2022-06-03T08:46:21+00:00","description":"How to setup a mailserver with Exim4 and DBMail on a Debian 7 VPS | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps.png","width":823,"height":523},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-setup-a-mailserver-with-exim4-and-dbmail-on-a-debian-7-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to setup a mailserver with Exim4 and DBMail on a Debian 7 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\/16823","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=16823"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/16823\/revisions"}],"predecessor-version":[{"id":42138,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/16823\/revisions\/42138"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/16824"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=16823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=16823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=16823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}