{"id":6266,"date":"2022-02-07T11:43:46","date_gmt":"2022-02-07T17:43:46","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=6266"},"modified":"2022-02-07T11:43:47","modified_gmt":"2022-02-07T17:43:47","slug":"how-to-configure-subaddressing-plusaddressing-in-directadmin","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/","title":{"rendered":"How to Configure Subaddressing\/PlusAddressing in DirectAdmin?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #212121;color:#212121\" 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: #212121;color:#212121\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#what_is_subaddressing\" >What is Subaddressing?<\/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.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#configure_exim_to_support_subaddressing\" >Configure Exim To Support Subaddressing<\/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.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#configure_dovecot_for_subaddressing\" >Configure Dovecot for Subaddressing<\/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.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#add_the_managesieve_filters\" >Add the ManageSieve Filters<\/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.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#applying_the_filter_globally_to_all_email_addresses\" >Applying the Filter Globally to All Email Addresses<\/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.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#applying_the_filter_to_a_single_email_address\" >Applying the Filter to a Single Email Address<\/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.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#applying_the_filter_for_system_email_accounts\" >Applying the Filter for System Email Accounts<\/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.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#result\" >Result<\/a><\/li><\/ul><\/nav><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"what-is-subaddressing\"><span class=\"ez-toc-section\" id=\"what_is_subaddressing\"><\/span>What is Subaddressing?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Subaddressing is also known as &#8216;plus addressing&#8217; or &#8216;detailed addressing&#8217;, and describes the ability to send email to an address that not only contains an email username, an&nbsp;<em>@<\/em>&nbsp;character, and a domain, but also a delimiter character and a &#8216;detail&#8217; string. For example, sending an email to the address&nbsp;<em>admin+mailinglist@domain.com<\/em>, which uses the&nbsp;<em>+<\/em>&nbsp;as the delimiter and&nbsp;<em>mailinglist<\/em>&nbsp;as the detail, constitutes subaddressing.<\/p>\n\n\n\n<p>The different parts of the email address are defined like so according to&nbsp;<a href=\"https:\/\/tools.ietf.org\/html\/rfc5233\">RFC 5233<\/a>,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>          :user \"+\" :detail  \"@\" :domain\n         \\-----------------\/\n             :local-part<\/code><\/pre>\n\n\n\n<p>So, the local-part is composed of both the user and the detail components with regards to subaddressing.<\/p>\n\n\n\n<p>The&nbsp;RFC, which outlines Sieve Email Filtering, describes subaddressing like so,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>   Subaddressing is the practice of augmenting the local-part of an\n   &#91;RFC2822] address with some 'detail' information in order to give\n   some extra meaning to that address.  One common way of encoding\n   'detail' information into the local-part is to add a 'separator\n   character sequence', such as \"+\", to form a boundary between the\n   'user' (original local-part) and 'detail' sub-parts of the address,\n   much like the \"@\" character forms the boundary between the local-part\n   and domain.\n\n   Typical uses of subaddressing might be:\n\n   o  A message addressed to \"ken+sieve@example.org\" is delivered into a\n      mailbox called \"sieve\" belonging to the user \"ken\".\n\n   o  A message addressed to \"5551212#123@example.com\" is delivered to\n      the voice mailbox number \"123\" at phone number \"5551212\".<\/code><\/pre>\n\n\n\n<p>Why would one want to use this? Some use cases include:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Better organization of one&#8217;s inbox by organizing mailing list subscriptions into their own folders<\/li><li>Identifying subscriptions that may have sold your contact information\/email address<\/li><li>To detect and discard or redirect spam messages<\/li><\/ul>\n\n\n\n<p>To configure subaddressing on a DirectAdmin box, one must edit the configurations of Exim and Dovecot, and then add the appropriate Sieve filter rules. Sieve filtering is accomplished via Pigeonhole for Dovecot, which adds support for the Sieve language (RFC&nbsp;5228) and the ManageSieve protocol (RFC&nbsp;5804) to Dovecot.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configure-exim-to-support-subaddressing\"><span class=\"ez-toc-section\" id=\"configure_exim_to_support_subaddressing\"><\/span>Configure Exim To Support Subaddressing<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Exim already includes a condition for plus addressing,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  .include_if_exists \/etc\/exim\/local_part_suffix.conf<\/code><\/pre>\n\n\n\n<p>So all we need to do is create the parent directory and the file with the necessary contents.<\/p>\n\n\n\n<p>Create the directory like so,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  mkdir \/etc\/exim<\/code><\/pre>\n\n\n\n<p>Then create the file,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  touch \/etc\/exim\/local_part_suffix.conf<\/code><\/pre>\n\n\n\n<p>Add the following contents to the file,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  local_part_suffix = +*\n  local_part_suffix_optional<\/code><\/pre>\n\n\n\n<p>Or, if you want to allow a plus, a hyphen, and an underscore to all function as delimiters that separate the local_part into user and detail parts,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  local_part_suffix = +* : -* : _*\n  local_part_suffix_optional<\/code><\/pre>\n\n\n\n<p>Now restart Exim and plus addressing should now work in Exim,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  service restart exim<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configure-dovecot-for-subaddressing\"><span class=\"ez-toc-section\" id=\"configure_dovecot_for_subaddressing\"><\/span>Configure Dovecot for Subaddressing<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, enable&nbsp;<a href=\"https:\/\/pigeonhole.dovecot.org\/\">Pigeonhole<\/a>,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  cd \/usr\/local\/directadmin\/custombuild\n  .\/build set pigeonhole yes\n  .\/build pigeonhole\n  .\/build roundcube<\/code><\/pre>\n\n\n\n<p>Upon enabling Pigeonhole, you will see a &#8220;Filters&#8221; section in RoundCube settings.<\/p>\n\n\n\n<p>Next, create the following file,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  \/etc\/dovecot\/conf.d\/subaddressing.conf<\/code><\/pre>\n\n\n\n<p>Add the following contents into the subaddressing.conf file,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  recipient_delimiter = +\n  lmtp_save_to_detail_mailbox = yes\n  lda_mailbox_autocreate = yes\n  lda_mailbox_autosubscribe = yes<\/code><\/pre>\n\n\n\n<p>Note that if you wanted to support multiple characters for the delimiter, such as the plus sign, the hyphen, and the underscore, you could use this instead of the single recipient delimiter above,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  recipient_delimiter = +-_<\/code><\/pre>\n\n\n\n<p>Restart Dovecot,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  service dovecot restart<\/code><\/pre>\n\n\n\n<p>Listed below are the meanings of the configuration values used above as described by&nbsp;<a href=\"https:\/\/doc.dovecot.org\/settings\/core\/\">Dovecot Core Settings<\/a>,<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">recipient_delimiter<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\">Default: +<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">The separator between the :user and :detail address parts.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">lmtp_save_to_detail_mailbox<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\">Default: no<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">Values: Boolean<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">If the recipient address includes a detail element \/ role (as in user+detail format), save the message to the detail mailbox.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">lda_mailbox_autocreate<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\">Default: no<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">Values: Boolean<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">Should LDA create a non-existent mailbox automatically when attempting to save a mail message?<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">lda_mailbox_autosubscribe<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\">Default: no<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">Values: Boolean<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">Should automatically created mailboxes be subscribed to?<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-the-managesieve-filters\"><span class=\"ez-toc-section\" id=\"add_the_managesieve_filters\"><\/span>Add the ManageSieve Filters<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>The Subaddressing ManageSieve Filter<\/strong><\/p>\n\n\n\n<p>Add the ManageSieve filter for the email address that you want to support subaddressing. The filter is as follows,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  # subaddressing rules\n\n  require &#91;\"fileinto\",\"subaddress\",\"variables\"];\n  # rule:&#91;subaddressing]\n  if address :detail :matches \"to\" \"*\"\n  {\n      set :lower \"detail\" \"${1}\";\n      fileinto \"INBOX.${detail}\";\n  }<\/code><\/pre>\n\n\n\n<p>The instructions outlined in the sections that follow detail how to add the filter manually via SSH, however, you could alternatively add the filter via Roundcube.<\/p>\n\n\n\n<p>Simply log into Roundcube for the email address you wish to enable subaddressing for, click&nbsp;<em>Settings<\/em>, then click&nbsp;<em>Filters<\/em>, and then click on&nbsp;<em>managesieve<\/em>&nbsp;to highlight, click&nbsp;<em>Actions<\/em>, then&nbsp;<em>Edit Filter Set<\/em>. Enter the rules as shown in the image below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"717\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2022\/02\/roundcube-Subaddressing-1024x717.jpg\" alt=\"roundcube Subaddressing\" class=\"wp-image-6283\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2022\/02\/roundcube-Subaddressing-1024x717.jpg 1024w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2022\/02\/roundcube-Subaddressing-300x210.jpg 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2022\/02\/roundcube-Subaddressing-768x538.jpg 768w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2022\/02\/roundcube-Subaddressing.jpg 1157w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"applying-the-filter-globally-to-all-email-addresses\"><span class=\"ez-toc-section\" id=\"applying_the_filter_globally_to_all_email_addresses\"><\/span>Applying the Filter Globally to All Email Addresses<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To create a global sieve filter so that all email accounts support subaddressing, add the sieve filter above to the file&nbsp;<em>\/var\/lib\/dovecot\/sieve\/default.sieve&nbsp;<\/em>and use the&nbsp;<strong>sievec<\/strong>&nbsp;command line utility to compile it,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  sievec \/var\/lib\/dovecot\/sieve\/default.sieve<\/code><\/pre>\n\n\n\n<p>This will create the appropriate&nbsp;<em>\/var\/lib\/dovecot\/sieve\/default.svbin&nbsp;<\/em>file.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"applying-the-filter-to-a-single-email-address\"><span class=\"ez-toc-section\" id=\"applying_the_filter_to_a_single_email_address\"><\/span>Applying the Filter to a Single Email Address<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To create the rule for a single email user, edit the following file instead and compile (note that you must replace USERNAME with the actual Linux username of the DirectAdmin account, DOMAIN.TLD with the actual domain, and EMAILUSERNAME with the actual email account username),<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  \/home\/USERNAME\/imap\/DOMAIN.TLD\/EMAILUSERNAME\/sieve\/managesieve.sieve<\/code><\/pre>\n\n\n\n<p>Use this sequence of steps to correctly create and compile the rules for the single user (again, make sure to make the necessary replacements for USERNAME, DOMAIN.TLD, and EMAILUSERNAME),<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  mkdir  \/home\/USERNAME\/imap\/DOMAIN.TLD\/EMAILUSERNAME\/sieve\n  chmod 600 \/home\/USERNAME\/imap\/DOMAIN.TLD\/EMAILUSERNAME\/sieve\n  nano \/home\/USERNAME\/imap\/DOMAIN.TLD\/EMAILUSERNAME\/sieve\/managesieve.sieve  # add the sieve filter rules here\n  sievec \/home\/USERNAME\/imap\/DOMAIN.TLD\/EMAILUSERNAME\/sieve\/managesieve.sieve\n  chown -R USERNAME.mail  \/home\/USERNAME\/imap\/DOMAIN.TLD\/EMAILUSERNAME\/sieve\n  cd  \/home\/USERNAME\/imap\/DOMAIN.TLD\/EMAILUSERNAME\n  ln -s sieve\/managesieve.sieve .dovecot.sieve\n  chown USERNAME.mail  \/home\/USERNAME\/imap\/DOMAIN.TLD\/EMAILUSERNAME\/.dovecot.sieve<\/code><\/pre>\n\n\n\n<p>Go ahead and send a test email to test functionality. Tail the Exim log to know when it is received,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  tail -f \/var\/log\/exim\/mainlog<\/code><\/pre>\n\n\n\n<p>Upon successful receipt, you can check your email for your new email folder,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  ls -lah \/home\/USERNAME\/imap\/DOMAIN.TLD\/EMAILUSERNAME\/Maildir\/<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"applying-the-filter-for-system-email-accounts\"><span class=\"ez-toc-section\" id=\"applying_the_filter_for_system_email_accounts\"><\/span>Applying the Filter for System Email Accounts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Alternatively, for system email accounts (those email accounts that are created automatically when you create a new DirectAdmin user account and are formatted like username@domain.tld rather than emailusername@domain.tld), you can use this command (make sure to replace USERNAME with your actual DirectAdmin username in the commands that follow!),<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>   ls -lah \/home\/USERNAME\/Maildir<\/code><\/pre>\n\n\n\n<p>To add Sieve rules for system accounts, create and edit the following file for the ManageSieve rules,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  \/home\/USERNAME\/sieve\/managesieve.sieve<\/code><\/pre>\n\n\n\n<p>You will need to do the following with this,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  mkdir  \/home\/USERNAME\/sieve\n  chmod 600 \/home\/USERNAME\/sieve\n  nano  \/home\/USERNAME\/sieve\/managesieve.sieve  # add the sieve filter rules here\n  sievec \/home\/USERNAME\/sieve\/managesieve.sieve\n  chown -R USERNAME.mail  \/home\/USERNAME\/sieve\/\n  cd \/home\/USERNAME\n  ln -s sieve\/managesieve.sieve .dovecot.sieve\n  chown USERNAME.mail  \/home\/USERNAME\/.dovecot.*<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"result\"><span class=\"ez-toc-section\" id=\"result\"><\/span>Result<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Let&#8217;s say you send an email to testuser<strong>+testing<\/strong>@domain.tld. You would see the &#8216;testing&#8217; mailbox listed in Roundcube under the &#8216;INBOX&#8217; (due to the automatic subscription configuration setting in Dovecot) and you would see a directory structure like the following, where &#8216;<em>.INBOX.testing<\/em>&#8216; was automatically created and the email placed within it,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  &#91;root@host1 scripts]# ls -lah  \/home\/USER\/imap\/DOMAIN.TLD\/testuser\/Maildir\/\n  total 28K\n  drwxrwx--- 6 testuser mail 269 Sep 26 19:24 .\n  drwxrwx--- 3 testuser mail  21 Sep 26 19:21 ..\n  drwxrwx--- 2 testuser mail   6 Sep 26 19:21 cur\n  -rw-rw---- 1 testuser mail  40 Sep 26 19:24 dovecot.index.log\n  -rw-rw---- 1 testuser mail 912 Sep 26 19:24 dovecot.list.index.log\n  -rw-rw---- 1 testuser mail  24 Sep 26 19:24 dovecot.mailbox.log\n  -rw-rw---- 1 testuser mail  51 Sep 26 19:24 dovecot-uidlist\n  -rw-rw---- 1 testuser mail   8 Sep 26 19:24 dovecot-uidvalidity\n  -r--r--r-- 1 testuser mail   0 Sep 26 19:24 dovecot-uidvalidity.5f6fdba3\n  drwxrwx--- 5 testuser mail 135 Sep 26 19:24 .INBOX.testing \n  -rw-rw---- 1 testuser mail  10 Sep 26 19:24 maildirsize\n  drwxrwx--- 2testuser  mail   6 Sep 26 19:21 new\n  -rw-rw---- 1 testuser mail  19 Sep 26 19:24 subscriptions\n  drwxrwx--- 2 testuser mail   6 Sep 26 19:24 tmp<\/code><\/pre>\n\n\n\n<p><strong>NOTE<\/strong>: <\/p>\n\n\n\n<p>As of Directadmin v.1.61.5, the following feature has been added which affects the creation of email accounts that contain a plus sign in their :user portion of the :local-part of the email address:<\/p>\n\n\n\n<p><em><strong>option to block\/allow plus char in new email names<\/strong><\/em><\/p>\n\n\n\n<p>This feature does not appear to affect the setup outlined in this article for enabling subaddressing when set to the default of&nbsp;<em><strong>allow_email_plus=0<\/strong><\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Subaddressing? Subaddressing is also known as &#8216;plus addressing&#8217; or &#8216;detailed addressing&#8217;, and describes the ability to send email to an address that not only contains an email username, an&nbsp;@&nbsp;character, and a domain, but also a delimiter character and a &#8216;detail&#8217; string. For example, sending an email to the address&nbsp;admin+mailinglist@domain.com, which uses the&nbsp;+&nbsp;as the [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[128,599,598],"class_list":["post-6266","post","type-post","status-publish","format-standard","hentry","category-directadmin","tag-directadmin","tag-plusaddressing","tag-subaddressing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Configure Subaddressing\/PlusAddressing in DirectAdmin? - KnownHost<\/title>\n<meta name=\"description\" content=\"Subaddressing is known as plus-addressing or detailed addressing &amp; describes the ability to send email to an address contains email username\" \/>\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.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Configure Subaddressing\/PlusAddressing in DirectAdmin? - KnownHost\" \/>\n<meta property=\"og:description\" content=\"Subaddressing is known as plus-addressing or detailed addressing &amp; describes the ability to send email to an address contains email username\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-07T17:43:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-07T17:43:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2022\/02\/roundcube-Subaddressing-1024x717.jpg\" \/>\n<meta name=\"author\" content=\"Somesh Z\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Somesh Z\" \/>\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.knownhost.com\\\/kb\\\/how-to-configure-subaddressing-plusaddressing-in-directadmin\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-configure-subaddressing-plusaddressing-in-directadmin\\\/\"},\"author\":{\"name\":\"Somesh Z\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\"},\"headline\":\"How to Configure Subaddressing\\\/PlusAddressing in DirectAdmin?\",\"datePublished\":\"2022-02-07T17:43:46+00:00\",\"dateModified\":\"2022-02-07T17:43:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-configure-subaddressing-plusaddressing-in-directadmin\\\/\"},\"wordCount\":960,\"image\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-configure-subaddressing-plusaddressing-in-directadmin\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/roundcube-Subaddressing-1024x717.jpg\",\"keywords\":[\"directadmin\",\"PlusAddressing\",\"Subaddressing\"],\"articleSection\":[\"DirectAdmin\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-configure-subaddressing-plusaddressing-in-directadmin\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-configure-subaddressing-plusaddressing-in-directadmin\\\/\",\"name\":\"How to Configure Subaddressing\\\/PlusAddressing in DirectAdmin? - KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-configure-subaddressing-plusaddressing-in-directadmin\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-configure-subaddressing-plusaddressing-in-directadmin\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/roundcube-Subaddressing-1024x717.jpg\",\"datePublished\":\"2022-02-07T17:43:46+00:00\",\"dateModified\":\"2022-02-07T17:43:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\"},\"description\":\"Subaddressing is known as plus-addressing or detailed addressing & describes the ability to send email to an address contains email username\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-configure-subaddressing-plusaddressing-in-directadmin\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-configure-subaddressing-plusaddressing-in-directadmin\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-configure-subaddressing-plusaddressing-in-directadmin\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/roundcube-Subaddressing.jpg\",\"contentUrl\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/roundcube-Subaddressing.jpg\",\"width\":1157,\"height\":810,\"caption\":\"roundcube Subaddressing\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-configure-subaddressing-plusaddressing-in-directadmin\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Configure Subaddressing\\\/PlusAddressing in DirectAdmin?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\",\"name\":\"Somesh Z\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"caption\":\"Somesh Z\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Configure Subaddressing\/PlusAddressing in DirectAdmin? - KnownHost","description":"Subaddressing is known as plus-addressing or detailed addressing & describes the ability to send email to an address contains email username","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.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/","og_locale":"en_US","og_type":"article","og_title":"How to Configure Subaddressing\/PlusAddressing in DirectAdmin? - KnownHost","og_description":"Subaddressing is known as plus-addressing or detailed addressing & describes the ability to send email to an address contains email username","og_url":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/","og_site_name":"KnownHost","article_published_time":"2022-02-07T17:43:46+00:00","article_modified_time":"2022-02-07T17:43:47+00:00","og_image":[{"url":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2022\/02\/roundcube-Subaddressing-1024x717.jpg","type":"","width":"","height":""}],"author":"Somesh Z","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Somesh Z","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/"},"author":{"name":"Somesh Z","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1"},"headline":"How to Configure Subaddressing\/PlusAddressing in DirectAdmin?","datePublished":"2022-02-07T17:43:46+00:00","dateModified":"2022-02-07T17:43:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/"},"wordCount":960,"image":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2022\/02\/roundcube-Subaddressing-1024x717.jpg","keywords":["directadmin","PlusAddressing","Subaddressing"],"articleSection":["DirectAdmin"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/","url":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/","name":"How to Configure Subaddressing\/PlusAddressing in DirectAdmin? - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#primaryimage"},"image":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2022\/02\/roundcube-Subaddressing-1024x717.jpg","datePublished":"2022-02-07T17:43:46+00:00","dateModified":"2022-02-07T17:43:47+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1"},"description":"Subaddressing is known as plus-addressing or detailed addressing & describes the ability to send email to an address contains email username","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#primaryimage","url":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2022\/02\/roundcube-Subaddressing.jpg","contentUrl":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2022\/02\/roundcube-Subaddressing.jpg","width":1157,"height":810,"caption":"roundcube Subaddressing"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/how-to-configure-subaddressing-plusaddressing-in-directadmin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Configure Subaddressing\/PlusAddressing in DirectAdmin?"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1","name":"Somesh Z","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","caption":"Somesh Z"}}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/6266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=6266"}],"version-history":[{"count":0,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/6266\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=6266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=6266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=6266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}