-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
wildfly-mail_3_0.xsd
212 lines (203 loc) · 8.88 KB
/
wildfly-mail_3_0.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ /*
~ * JBoss, Home of Professional Open Source.
~ * Copyright 2013, Red Hat, Inc., and individual contributors
~ * as indicated by the @author tags. See the copyright.txt file in the
~ * distribution for a full listing of individual contributors.
~ *
~ * This is free software; you can redistribute it and/or modify it
~ * under the terms of the GNU Lesser General Public License as
~ * published by the Free Software Foundation; either version 2.1 of
~ * the License, or (at your option) any later version.
~ *
~ * This software is distributed in the hope that it will be useful,
~ * but WITHOUT ANY WARRANTY; without even the implied warranty of
~ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ * Lesser General Public License for more details.
~ *
~ * You should have received a copy of the GNU Lesser General Public
~ * License along with this software; if not, write to the Free
~ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
~ */
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="urn:jboss:domain:mail:3.0"
targetNamespace="urn:jboss:domain:mail:3.0"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.0">
<!-- The mail subsystem root element -->
<xs:element name="subsystem" type="mail-subsystemType"/>
<xs:complexType name="mail-subsystemType">
<xs:annotation>
<xs:documentation>
<![CDATA[
The configuration of the mail subsystem.
]]>
</xs:documentation>
</xs:annotation>
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="mail-session" type="mail-sessionType"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="mail-sessionType">
<xs:sequence>
<xs:element name="smtp-server" type="server-type" maxOccurs="1" minOccurs="0"/>
<xs:element name="pop3-server" type="server-type" maxOccurs="1" minOccurs="0"/>
<xs:element name="imap-server" type="server-type" maxOccurs="1" minOccurs="0"/>
<xs:element name="custom-server" type="custom-server-type" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
<xs:attribute name="jndi-name" use="required" type="xs:string"/>
<xs:attribute name="debug" use="optional" type="xs:boolean">
<xs:annotation>
<xs:documentation>
<![CDATA[
enables debuging of mail session
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="from" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>
<![CDATA[
sets mail.from attribute
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="server-type" mixed="true">
<xs:sequence>
<xs:element name="credential-reference" type="credentialReferenceType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
Credential to be used by the configuration.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="outbound-socket-binding-ref" use="required" type="xs:string">
<xs:annotation>
<xs:documentation>
<![CDATA[
Reference to the outbound-socket-binding element in the socket-binding-group that should
be used for configuring the client socket used to communicate with the mail server.
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ssl" use="optional" type="xs:boolean">
<xs:annotation>
<xs:documentation>
<![CDATA[
enables use of ssl for this server configuration
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="tls" use="optional" type="xs:boolean">
<xs:annotation>
<xs:documentation>
<![CDATA[
enables use of tls for this server configuration
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="username" type="xs:string" use="optional"/>
<xs:attribute name="password" type="xs:string" use="optional"/>
</xs:complexType>
<xs:complexType name="property-type">
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="value" type="xs:string"/>
</xs:complexType>
<xs:complexType name="custom-server-type" mixed="true">
<xs:sequence>
<xs:element name="credential-reference" type="credentialReferenceType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
Credential to be used by the configuration.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="property" type="property-type" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="outbound-socket-binding-ref" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>
<![CDATA[
Reference to the outbound-socket-binding element in the socket-binding-group that should
be used for configuring the client socket used to communicate with the mail server.
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ssl" use="optional" type="xs:boolean">
<xs:annotation>
<xs:documentation>
<![CDATA[
enables use of ssl for this server configuration
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="tls" use="optional" type="xs:boolean">
<xs:annotation>
<xs:documentation>
<![CDATA[
enables use of tls for this server configuration
]]>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="username" type="xs:string" use="optional"/>
<xs:attribute name="password" type="xs:string" use="optional"/>
</xs:complexType>
<!-- Credential Reference Types -->
<xs:attributeGroup name="credentialReferenceStoreBased">
<xs:annotation>
<xs:documentation>
Group of attributes used when referencing credential through credential store.
</xs:documentation>
</xs:annotation>
<xs:attribute name="store" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
Credential store name used to fetch credential with given 'alias' from.
Credential store name has to be defined elsewhere.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="alias" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
Alias of credential in the credential store.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="type" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
Type of credential to be fetched from credential store.
It is usually fully qualified class name.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:attributeGroup>
<xs:complexType name="credentialReferenceType">
<xs:attributeGroup ref="credentialReferenceStoreBased"/>
<xs:attribute name="clear-text" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
Credential/password in clear text. Use just for testing purpose.
Otherwise use credential store to mask the actual credential from your configuration.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:schema>