A brief analysis of variable format in Dovecot with Mail_location as an example

Source: Internet
Author: User
Tags dovecot

Reference Original URL: http://wiki2.dovecot.org/MailLocation

???? When learning the Dovecot parameter configuration, it is often used to configure the format of the variable. Sometimes, the configuration format of some variables is not very understanding. Therefore, the main reference to the official document, based on the format of the mail_location variable as an example, the common variables in the dovecot format to simplify the analysis.
???? In Dovecot, the variable configuration format for Mail_location is as follows:

mail_location = mailbox-fomat:path[:key=value...]

which

    • Mailbox-format is the format of the message, the DOVECOT supported message formats are:

      • mbox--traditional UNIX Message format
      • maildir--a file contains the format of a message message
      • Dbox--dovecot is a dedicated, efficient mail file format that can be subdivided into three categories: Sdbox, Mdbox, and Dbox
      • Cydir--dovecot-specific message formats like the Cyrus format
    • Path is the route for the message, must be an absolute path, and cannot use the root directory. For details, please refer to here
    • Key=value is used to set many optional parameters, which can be referred to here for specific optional parameters.
      ???? Specifically, the following is a mal_location configuration case:
maildir:~/Maildir:INDEX=/var/indexes/%u

In this format, the maildir message is stored in the format, the ~/Maildir path for the message is stored, INDEX=/var/indexes/%u and an optional parameter is set to indicate the index files storage path in Dovecot.
???? What does it mean to be confused here %u ? In fact, this is a format for the variable represented in Dovecot, with the following meanings:

    • %u: Full name of email address
    • %n: The user name in the message. Take [email protected] As an example, %n referring user to the %u[email protected]
    • %d: The domain name part of the message. Also, take the email address above as an example, %d referring to thedomain.com

???? In the process of variable parameter configuration, the parameter variable configuration of software such as Postfix and Dovecot often uses similar format, but the specific meaning needs to be differentiated in detail according to the software and variables used.

A brief analysis of variable format in Dovecot with Mail_location as an example

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.