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
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