aboutsummaryrefslogtreecommitdiffstats
path: root/templates/edit-user.html
blob: f3e3a64cf2b54f984d548c407492c9b0fffda969 (plain)
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>Edit user <TMPL_VAR NAME=name></title>
    <link href="/css/style.css" media="all" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <div id="header">
      <div class="left column">
        <a href="../../">Root</a> /
        <a href="../"><TMPL_VAR NAME=domainpart></a> /
        <TMPL_VAR NAME=localpart> /
      </div>
      <div class="right column">
        Logged as <a href="<TMPL_VAR NAME=user_URL>/?a=edit"
                  ><TMPL_VAR NAME=user_localpart>@<TMPL_VAR NAME=user_domainpart></a>
        | <a href="../../?a=logout">Log out</a>
      </div>
      <br/>
    </div>
    <hr/>

    <div id="content">
    <h1>Edit user <span class="user"><TMPL_VAR NAME=name></span></h1>


    <TMPL_IF NAME=newChanges>
      <TMPL_IF NAME=error>
        <div class="fail">Error: <TMPL_VAR NAME=error></div>
      <TMPL_ELSE>
        <div class="success">Your changes have succesfully been submitted.</div>
      </TMPL_IF>
    <TMPL_ELSE>
      <br/>
    </TMPL_IF>

    <br/>

    <form class="editform" name="editform" method="post" action="?">
      <div class="editform">
      <input type="hidden" name="a" value="edit" />

      <h4 class="label" id="status">Status</h4>
      <select name="isActive">
        <option value="1" <TMPL_IF NAME=isActive>selected="selected"</TMPL_IF>>Active</option>
        <option value="0" <TMPL_UNLESS NAME=isActive>selected="selected"</TMPL_UNLESS>>Inactive</option>
      </select>
      <div class="help">
        <b>Warning</b>: emails are <i>not</i> delivered to inactive entries.
      </div>

      <hr/>

      <h4 class="label" id="password">Change password</h4>

      <table class="loginform">
        <tr>
          <td class="label">Current password</td>
          <td><input type="password" name="oldpw" size="20" /></td>
        </tr>
        <tr>
          <td class="label">New password</td>
          <td><input type="password" name="newpw" size="20" /></td>
        </tr>
        <tr>
          <td class="label">Repeat new password</td>
          <td><input type="password" name="newpw2" size="20" /></td>
        </tr>
      </table>

      <div class="help">
        <i>Note</i>:
        You need to enter your
        (<span class="user"><TMPL_VAR NAME=user_localpart>@<TMPL_VAR NAME=user_domainpart></span>'s)
        current password first.
        Leave these fields empty if you do not want to change the
        password.
      </div>

      <hr/>

      <h4 class="label" id="description">Description</h4>
      <textarea name="description" cols="50" rows="5" ><TMPL_VAR NAME=description></textarea>
      <div class="help">
        An optional description.
      </div>

      <hr/>

      <h4 class="label" id="forward">Mail forwarding</h4>
      <textarea name="forward" cols="50" rows="5" ><TMPL_VAR NAME=forward></textarea>
      <div class="help">
        An optional list of destinations (one e-mail address per line) that
        will receive mail for
        <span class="email"><TMPL_VAR NAME=name></span>.
        (<i>Note</i>: When not empty, this list cancels delivery to
        this user, so do not forget to list
        <span class="email"><TMPL_VAR NAME=name></span>
        here as well if you want this mailbox to be delivered too.)
      </div>

      <hr/>

      <h4 class="label" id="antispam">Anti-Spam and message filter</h4>

      <table class="antispam">
        <tr>
          <td rowspan="5" class="label">Deliver messages marked as
            follows, maybe ignoring a discard action below.
            <i>Note</i>: Checks are done if a recipient requires it,
            so you will be keeping training your filter unless you also
            choose to bypass checks.</td>
          <td><input type="checkbox" name="amavisVirusLover" /> Virus</td>
        </tr>
        <tr>
          <td><input type="checkbox" name="amavisSpamLover" /> Spam</td>
        </tr>
        <tr>
          <td><input type="checkbox" name="amavisBannedFilesLover" /> Banned files</td>
        </tr>
        <tr>
          <td><input type="checkbox" name="amavisBadHeaderLover" /> Bad headers</td>
        </tr>
        <tr>
          <td><input type="checkbox" name="amavisUncheckedLover" /> Could not check</td>
        </tr>
      </table>

      <br/>
      <table class="antispam">
        <tr>
          <td rowspan="4" class="label">Message checks to bypass.
            <i>Note</i>: Each check is run as soon as a recipient requires
            it, so you also need to check the above if you want to to
            guarantee the delivery for multi-recipient messages.</td>
          <td><input type="checkbox" name="amavisBypassVirusChecks" /> Virus</td>
        </tr>
        <tr>
          <td><input type="checkbox" name="amavisBypassSpamChecks" /> Spam</td>
        </tr>
        <tr>
          <td><input type="checkbox" name="amavisBypassBannedChecks" /> Banned files</td>
        </tr>
        <tr>
          <td><input type="checkbox" name="amavisBypassHeaderChecks" /> Bad headers</td>
        </tr>
      </table>

      <br/>
      <table class="antispam">
        <tr>
          <td class="label">Score at which header tags are added.</td>
          <td><input type="text" name="amavisSpamTagLevel" size="10" /> Default: 0.0</td>
        </tr>
        <tr>
          <td class="label">Subject to prepend when score exceeds the above.</td>
          <td><input type="text" name="amavisSpamSubjectTag" size="20" /></td>
        </tr>
        <tr>
          <td class="label">Score at which a message is marked as spam.</td>
          <td><input type="text" name="amavisSpamTag2Level" size="10" /> Default: 5.0</td>
        </tr>
        <tr>
          <td class="label">Subject to prepend when score exceeds the above.</td>
          <td><input type="text" name="amavisSpamSubjectTag2" size="20" /></td>
        </tr>
        <tr>
          <td class="label">Score at which a message is marked as extreme spam.</td>
          <td><input type="text" name="amavisSpamTag3Level" size="10" /> Default: 5.0</td>
        </tr>
        <tr>
          <td class="label">Subject to prepend when score exceeds the above.</td>
          <td><input type="text" name="amavisSpamSubjectTag3" size="20" /></td>
        </tr>
        <tr>
          <td class="label">Score at which a message bounces back to the
            sender.</td>
          <td><input type="text" name="amavisSpamKillLevel" size="10" /> Default: 5.0</td>
        </tr>
        <tr>
          <td class="label">Score at which a message is quarantined.</td>
          <td><input type="text" name="amavisSpamDsnCutoffLevel" size="10" /> Default: 5.0</td>
        </tr>
        <tr>
          <td class="label">Score at which a message is discarded.</td>
          <td><input type="text" name="amavisSpamQuarantineCutoffLevel" size="10" /> Default: 5.0</td>
        </tr>
      </table>
      <div class="help"><i>Notes</i>: Although SpamAssassin's scores range from 0 to
        1000, with a well-trained filter it is unlikely that a clean message
        scores more than 5.

        It only makes sense (and is therefore required) to keep the above
        scores ordered when defined.
        Also, bouncing spam is probably useless, since spammers are
        often using forged e-mails; To disable bouncing, set the
        quarantine level to the bounce level.

        The following macros can be used in the subject prefixes:
        <span class="code">_SCORE_</span> (spam level),
        <span class="code">_REQD_</span> (minimum spam level),
        <span class="code">_YESNO_</span> (marqued as spam Yes/No),
        <span class="code">_YESNOCAPS_</span> (marqued as spam YES/NO),
        <span class="code">_HOSTNAME_</span> (hostname),
        <span class="code">_DATE_</span> (RFC 2822 date),
        <span class="code">_U_</span> (ISO-8601 UTC timestamp),
        <span class="code">_LOGID_</span> (internal log ID), and
        <span class="code">_MAILID_</span> (message ID).
      </div>

      <br/>
      <table class="antispam">
        <tr>
          <td rowspan="3" class="label">Warn the recipients (you, and
            possibly others) for messages marked as follows. This can be
            useful for quarantined and/or discarded messages.</td>
          <td><input type="checkbox" name="amavisWarnVirusRecip" /> Virus</td>
        </tr>
        <tr>
          <td><input type="checkbox" name="amavisWarnBannedRecip" /> Banned files</td>
        </tr>
        <tr>
          <td><input type="checkbox" name="amavisWarnBadHeaderRecip" /> Bad headers</td>
        </tr>
      </table>

      <br/>
      <table class="antispam">
        <tr>
          <td rowspan="7" class="label">An email address where to
            forward (aka. quarantine)
            messages, depending on how they have been classified.
            (<i>Note</i>: The last item is independent of the others, so
            a message may be forwarded to two different destinations.)</td>
          <td><input type="text" name="amavisVirusQuarantineTo" size="10" /> Virus</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisSpamQuarantineTo" size="10" /> Spam</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisBannedQuarantineTo" size="10" /> Banned files</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisBadHeaderQuarantineTo" size="10" /> Bad headers</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisUncheckedQuarantineTo" size="10" /> Could not check</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisCleanQuarantineTo" size="10" /> Clean</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisArchiveQuarantineTo" size="10" /> <i>All messages</i></td>
        </tr>
      </table>

      <br/>
      <table class="antispam">
        <tr>
          <td rowspan="4" class="label">Address extension to be added to
            the recipient(s), depending on how the message has been
            classified.
            (Adding the extension <span class="email">virus</span> to
            the recipient <span class="email"><TMPL_VAR NAME=name></span>
            will result into viruses being sent to
            <span class="email"><TMPL_VAR NAME=localpart>+virus@<TMPL_VAR NAME=domainpart></span>.)</td>
          <td><input type="text" name="amavisAddrExtensionVirus" size="10" /> Virus</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisAddrExtensionSpam" size="10" /> Spam</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisAddrExtensionBanned" size="10" /> Banned files</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisAddrExtensionBadHeader" size="10" /> Bad header</td>
        </tr>
      </table>

      <br/>
      <table class="antispam">
        <tr>
          <td rowspan="5" class="label">An email address to which
            notifications (reports) are sent, depending on how
            messages are classified.</td>
          <td><input type="text" name="amavisVirusAdmin" size="10" /> Virus</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisNewVirusAdmin" size="10" /> New virus</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisSpamAdmin" size="10" /> Spam</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisBannedAdmin" size="10" /> Banned files</td>
        </tr>
        <tr>
          <td><input type="text" name="amavisBadHeaderAdmin" size="10" /> Bad header</td>
        </tr>
      </table>

      <div class="antispam">E-mail addresses (one per line) to
        whitelist. Messages from the listed sender will bypass any
        check.
        (<i>Note</i>: Senders can always be forged!)
        <textarea name="amavisWhitelistSender" cols="50" rows="10" ></textarea>
      </div>

      <div class="antispam">E-mail addresses (one per line) to
        blacklist. Messages from the listed sender will always be marked
        as spam.
        (<i>Note</i>: Senders can always be forged!)
        <textarea name="amavisBlacklistSender" cols="50" rows="10" ></textarea>
      </div>

      <div class="antispam">A list (one per line) of filename extensions
        (e.g., <span class="code">.exe</span>) to ban.
        <textarea name="amavisBannedRuleNames" cols="50" rows="10" ></textarea>
      </div>

      <input type="submit" name="submit" value="Submit" />
      <input type="submit" name="cancel" value="Cancel" />
      </div>

    </form>
    </div>
  </body>
</html>