vpanel-stack/panel/ui/vmail/mboxes-add.html
Matthew Saunders Brown fd94a4e3c4 initial commit
2022-07-01 15:24:26 -07:00

106 lines
4.1 KiB
HTML

<include href="header.html" />
<form action="{{@REALM}}" method="POST">
<fieldset>
<legend>Add New @{{@PARAMS.domain}} Email Account</legend>
<label for="localpart">Account <small>(enter local-part only, e.g. enter joe for joe@stackaas.com)</small></label>
<input id="localpart" name="localpart" type="text" placeholder="joe" value="{{ @mbox.localpart }}" required>
<label for="password">Password <small>(minimum 8 characters, recommended 12 or more)</small></label>
<input id="password" name="password" type="password" value="{{ @mbox.password }}" required>
<label for="password_confirm">Confirm Password <small>(repeat same password)</small></label>
<input id="password_confirm" name="password_confirm" type="password" value="{{ @mbox.password_confirm }}" required>
<label for="status">Status</label>
<select id="status" name="status">
<check if="{{ @mbox.status=='0' }}">
<true>
<option value="0" selected>Disabled</option>
<option value="1">Enabled</option>
<option value="2" selected>Enabled - Admin</option>
</true>
</check>
<check if="{{ @mbox.status=='1' }}">
<true>
<option value="0">Disabled</option>
<option value="1" selected>Enabled</option>
<option value="2">Enabled - Admin</option>
</true>
</check>
<check if="{{ @mbox.status=='2' }}">
<true>
<option value="0">Disabled</option>
<option value="1">Enabled</option>
<option value="2" selected>Enabled - Admin</option>
</true>
</check>
</select>
<label for="quota">Quota <small>(storage in GB)</small></label>
<check if="{{ @NAV.mapping=='vpanel' }}">
<true>
<input id="quota" name="quota" type="text" value="{{ @mbox.quota }}" required>
</true>
<false>
<input id="quota" name="quota" type="hidden" value="{{ @mbox.quota }}" required>
{{ @mbox.quota }}
</false>
</check>
<label for="ratelimit">Rate Limit <small>(emails per hour)</small></label>
<check if="{{ @NAV.mapping=='vpanel' }}">
<true>
<input id="ratelimit" name="ratelimit" type="text" value="{{ @mbox.ratelimit }}" required>
</true>
<false>
<input id="ratelimit" name="ratelimit" type="hidden" value="{{ @mbox.ratelimit }}" required>
{{ @mbox.ratelimit }}
</false>
</check>
<label for="filtering">Filtering</label>
<select id="filtering" name="filtering">
<check if="{{ @mbox.filtering=='2' }}">
<option value="2" selected>Junk & Spam</option>
<option value="1">Junk only</option>
<option value="0">None</option>
</check>
<check if="{{ @mbox.filtering=='1' }}">
<option value="2">Junk & Spam</option>
<option value="1" selected>Junk only</option>
<option value="0">None</option>
</check>
<check if="{{ @mbox.filtering=='0' }}">
<option value="2">Junk & Spam</option>
<option value="1">Junk only</option>
<option value="0" selected>None</option>
</check>
</select>
<input type="submit" value="Submit">
<button id="reset" type="reset">Reset</button>
<check if="{{ @NAV.mapping=='vpanel' }}">
<br>
<small>Enter "Unlimited" for no limit on Quota or Rate Limit.</small>
</check>
</fieldset>
</form>
<p>
<b>Account</b> is the "local-part" of the email address and can contain letters, numbers, and periods.<br>
<b>Password</b> must be at least 8 characters with 12 or more being highly recommended.<br>
The password must contain characters from at least three of the following four groups:<br>
Lower Case Letters, Upper Case Letters, Numbers, Punctuation/Special Characters.<br>
<b>Status</b> can be used to temporarily disable the email account. If the account is enabled with the Admin option they can managed all email accounts.<br>
<b>Quota</b> is the storage limit in GB for the email account.<br>
<b>Rate Limit</b> is the hourly sending rate limit for the email account, and is multiplied by 10 for the daily sending limit.<br>
<b>Filtering</b> should normally be left at <em>Junk & Spam</em>. <em>Junk only</em> disables Spamassassin, and <em>None</em> disables additional checks like SPF, DKIM & DNS Blacklists.<br>
</p>
<include href="footer.html" />