Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nginx
GitHub Repository: nginx/nginx.org
Path: blob/main/xml/en/docs/mail/ngx_mail_imap_module.xml
1 views
1
<?xml version="1.0"?>
2
3
<!--
4
Copyright (C) 2006, 2007 Anton Yuzhaninov
5
Copyright (C) Nginx, Inc.
6
-->
7
8
<!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9
10
<module name="Module ngx_mail_imap_module"
11
link="/en/docs/mail/ngx_mail_imap_module.html"
12
lang="en"
13
rev="7">
14
15
<section id="directives" name="Directives">
16
17
<directive name="imap_auth">
18
<syntax><value>method</value> ...</syntax>
19
<default>plain</default>
20
<context>mail</context>
21
<context>server</context>
22
23
<para>
24
Sets permitted methods of authentication for IMAP clients.
25
Supported methods are:
26
<list type="tag">
27
28
<tag-name><literal>plain</literal></tag-name>
29
<tag-desc>
30
<link url="https://datatracker.ietf.org/doc/html/rfc3501">LOGIN</link>,
31
<link url="https://datatracker.ietf.org/doc/html/rfc4616">AUTH=PLAIN</link>
32
</tag-desc>
33
34
<tag-name><literal>login</literal></tag-name>
35
<tag-desc>
36
<link url="https://datatracker.ietf.org/doc/html/draft-murchison-sasl-login-00">AUTH=LOGIN</link>
37
</tag-desc>
38
39
<tag-name><literal>cram-md5</literal></tag-name>
40
<tag-desc>
41
<link url="https://datatracker.ietf.org/doc/html/rfc2195">AUTH=CRAM-MD5</link>.
42
In order for this method to work, the password must be stored unencrypted.
43
</tag-desc>
44
45
<tag-name><literal>external</literal></tag-name>
46
<tag-desc>
47
<link url="https://datatracker.ietf.org/doc/html/rfc4422">AUTH=EXTERNAL</link> (1.11.6).
48
</tag-desc>
49
50
</list>
51
</para>
52
53
<para>
54
Plain text authentication methods
55
(the <literal>LOGIN</literal> command, <literal>AUTH=PLAIN</literal>,
56
and <literal>AUTH=LOGIN</literal>) are always enabled,
57
though if the <literal>plain</literal> and <literal>login</literal> methods
58
are not specified,
59
<literal>AUTH=PLAIN</literal> and <literal>AUTH=LOGIN</literal>
60
will not be automatically included in <link id="imap_capabilities"/>.
61
</para>
62
63
</directive>
64
65
66
<directive name="imap_capabilities">
67
<syntax><value>extension</value> ...</syntax>
68
<default>IMAP4 IMAP4rev1 UIDPLUS</default>
69
<context>mail</context>
70
<context>server</context>
71
72
<para>
73
Sets the
74
<link url="https://datatracker.ietf.org/doc/html/rfc3501">IMAP protocol</link>
75
extensions list that is passed to the client in response to
76
the <literal>CAPABILITY</literal> command.
77
The authentication methods specified in the <link id="imap_auth"/> directive and
78
<link url="https://datatracker.ietf.org/doc/html/rfc2595">STARTTLS</link>
79
are automatically added to this list depending on the
80
<link doc="ngx_mail_ssl_module.xml" id="starttls"/> directive value.
81
</para>
82
83
<para>
84
It makes sense to specify the extensions
85
supported by the IMAP backends
86
to which the clients are proxied (if these extensions are related to commands
87
used after the authentication, when nginx transparently proxies a client
88
connection to the backend).
89
</para>
90
91
<para>
92
The current list of standardized extensions is published at
93
<link url="http://www.iana.org/assignments/imap4-capabilities">www.iana.org</link>.
94
</para>
95
96
</directive>
97
98
99
<directive name="imap_client_buffer">
100
<syntax><value>size</value></syntax>
101
<default>4k|8k</default>
102
<context>mail</context>
103
<context>server</context>
104
105
<para>
106
Sets the <value>size</value> of the buffer used for reading IMAP commands.
107
By default, the buffer size is equal to one memory page.
108
This is either 4K or 8K, depending on a platform.
109
</para>
110
111
</directive>
112
113
</section>
114
115
</module>
116
117