*Back to [[Book|Administrator's Configuration File Reference#cfr]] [[Topic|Administrator's Configuration File Reference#chap3]]*
h2. {{server.xml}} elements beginning with M
The following elements are discussed below:
| [#{{mail-resource}}] | [#{{mime-file}}] |
h3. {{mail-resource}} {anchor:m1}
The {{mail-resource}} element configures a mail store resource. This element may appear zero or more times within the {{server}} element. For more information, see [{{server}}|S#s3].
h4. Subelements
The {{mail-resource}} element can contain the following subelements:
Table 3-34 List of {{mail-resource}} Subelements
||Element ||Occurrences ||Description ||
|{{enabled}} |0 or 1 |Determines whether the mail resource is enabled at runtime. The default value is {{true}}. |
|{{jndi-name}} |1 |The JNDI name of the resource. |
|{{description}} |0 or 1 |The description of the resource |
|{{property}} |0 or more |Configures optional mail-resource-specific properties. The properties are the standard JavaMail properties For more details, see the JavaMail API Specification at [http://java.sun.com/products/javamail/JavaMail-1.2.pdf], and [{{property}}|P#p3]. |
|{{store-protocol}} |0 or 1 |The protocol used to retrieve messages. |
|{{store-protocol-class}} |0 or 1 |The storage service provider implementation for store-protocol. The value is a name of a class that implements store-protocol. The default value is {{com.sun.mail.imap.IMAPStore}}. |
|{{transport-protocol}} |0 or 1 |The protocol used to send messages. |
|{{transport-protocol-class}} |0 or 1 |The transport service provider implementation for transport-protocol. The value is a name of a class that implements transport-protocol. The default value is {{com.sun.mail.smtp.SMTPTransport}}. |
|{{host}} |1 |The mail server host name. |
|{{user}} |1 |The mail server username. |
|{{from}} |1 |The email address from which the server sends email. |
|{{description}} |0 or 1 |The description of the mail resource. |
h3. {{mime-file}} {anchor:m2}
The {{mime-file}} element defines a file that configures the MIME type mappings for the server. This element may appear zero or more times within the {{server}} element and zero or more times within the {{virtual-server}} element. For more information, see [{{server}}|S#s3], and [{{virtual-server}}|V & W#v2].
The value of this element is the file name of a MIME types file. If a relative path is used, it is relative to the server's {{config}} directory. This element does not contain any subelements.
For more information, see [MIME Types|Administrator's Configuration File Reference#chap8].
h2. {{server.xml}} elements beginning with M
The following elements are discussed below:
| [#{{mail-resource}}] | [#{{mime-file}}] |
h3. {{mail-resource}} {anchor:m1}
The {{mail-resource}} element configures a mail store resource. This element may appear zero or more times within the {{server}} element. For more information, see [{{server}}|S#s3].
h4. Subelements
The {{mail-resource}} element can contain the following subelements:
Table 3-34 List of {{mail-resource}} Subelements
||Element ||Occurrences ||Description ||
|{{enabled}} |0 or 1 |Determines whether the mail resource is enabled at runtime. The default value is {{true}}. |
|{{jndi-name}} |1 |The JNDI name of the resource. |
|{{description}} |0 or 1 |The description of the resource |
|{{property}} |0 or more |Configures optional mail-resource-specific properties. The properties are the standard JavaMail properties For more details, see the JavaMail API Specification at [http://java.sun.com/products/javamail/JavaMail-1.2.pdf], and [{{property}}|P#p3]. |
|{{store-protocol}} |0 or 1 |The protocol used to retrieve messages. |
|{{store-protocol-class}} |0 or 1 |The storage service provider implementation for store-protocol. The value is a name of a class that implements store-protocol. The default value is {{com.sun.mail.imap.IMAPStore}}. |
|{{transport-protocol}} |0 or 1 |The protocol used to send messages. |
|{{transport-protocol-class}} |0 or 1 |The transport service provider implementation for transport-protocol. The value is a name of a class that implements transport-protocol. The default value is {{com.sun.mail.smtp.SMTPTransport}}. |
|{{host}} |1 |The mail server host name. |
|{{user}} |1 |The mail server username. |
|{{from}} |1 |The email address from which the server sends email. |
|{{description}} |0 or 1 |The description of the mail resource. |
h3. {{mime-file}} {anchor:m2}
The {{mime-file}} element defines a file that configures the MIME type mappings for the server. This element may appear zero or more times within the {{server}} element and zero or more times within the {{virtual-server}} element. For more information, see [{{server}}|S#s3], and [{{virtual-server}}|V & W#v2].
The value of this element is the file name of a MIME types file. If a relative path is used, it is relative to the server's {{config}} directory. This element does not contain any subelements.
For more information, see [MIME Types|Administrator's Configuration File Reference#chap8].