vpanel-stack/panel/ui/vmail/dkim.html

45 lines
1.6 KiB
HTML
Raw Normal View History

2023-06-19 11:53:16 -07:00
<include href="header.html" />
<check if="isset(@dkim_array)">
<true>
<check if="{{@dkim_array.dns.status == 'Create'}}">
<true>
DKIM for {{@PARAMS.domain}} does not exist.<br>
<a href="{{@NAV.vmailbase}}/Dkim/Add?r={{@PATH}}">Click here to add a DKIM Key now.</a>
</true>
<false>
<check if="{{@dkim_array.dns.status == 'Error'}}">
<true>
Error checking for DKIM for {{@PARAMS.domain}}. Try again later.
</true>
<false>
<table>
<tr><th colspan="2">DKIM (TXT) Record for {{ @PARAMS.domain }}</th></tr>
<check if="{{ @dkim_array.dns.status=='Verified' }}">
<true>
<tr><td colspan="2">This DNS record is all set, nothing to do.</td></tr>
</true>
<false>
<tr><td style="color:red" colspan="2">Please update DNS with the following info.</td></tr>
</false>
</check>
<tr><td style="text-align: right;">Type:</td><td>TXT</td></tr>
<tr><td style="text-align: right;">Host:</td><td>{{ @dkim_array.dns.host }}</td></tr>
<tr><td style="text-align: right;">Value:</td><td style="width: 650px; overflow-wrap: anywhere;">"k=rsa; p={{ @dkim_array.dkim }}"</td></tr>
<tr><td style="text-align: right;">TTL:</td><td>3600 (or default)</td></tr>
<tr><td></td><td><small>This should be the only record for this specific Host value listed above.</small></td></tr>
</table>
<br><br>
<a href="{{@NAV.vmailbase}}/Dkim/Delete">Click here to delete this DKIM Key.</a>
</false>
</check>
</false>
</check>
</true>
</check>
<include href="footer.html" />