Skip to content

Commit e449668

Browse files
committed
Include DMARC record in DNS record list hestiacp#1836
Plus minor bug fixes
1 parent c24a0f5 commit e449668

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
55

66
### Features
77

8+
- Include DMARC record in DNS record list #1836
9+
810
### Bugfixes
911

1012
- Improve the calculated disk size of a new backup estimated by excluding the exclude folders, mail accounts and database in backups (#1616) @Myself5

web/templates/pages/list_mail_dns.html

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,20 @@
3636
<div class="l-unit__col l-unit__col--right">
3737
<div class="clearfix l-unit__stat-col--left wide-3"><b><input type="text" class="vst-input" style="width:200px !important;" value="mail.<?=htmlspecialchars($_GET['domain']);?>" /></b> </div>
3838
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>A</b></div>
39-
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>10</b></div>
39+
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>0</b></div>
4040
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>14400</b></div>
4141
<div class="clearfix l-unit__stat-col--left wide-3"><b><input type="text" class="vst-input" value="<?=array_key_first($ips);?>" /></b></div>
4242
</div>
4343
</div>
44+
<div class="l-unit animated fadeIn">
45+
<div class="l-unit__col l-unit__col--right">
46+
<div class="clearfix l-unit__stat-col--left wide-3"><b><input type="text" class="vst-input" style="width:200px !important;" value="mail.<?=htmlspecialchars($_GET['domain']);?>" /></b> </div>
47+
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>MX</b></div>
48+
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>10</b></div>
49+
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>14400</b></div>
50+
<div class="clearfix l-unit__stat-col--left wide-3"><b><input type="text" class="vst-input" value="<?=htmlspecialchars($_GET['domain']);?>." /></b></div>
51+
</div>
52+
</div>
4453
<?php if($_SESSION['WEBMAIL_SYSTEM']){?>
4554
<div class="l-unit animated fadeIn">
4655
<div class="l-unit__col l-unit__col--right">
@@ -58,17 +67,26 @@
5867
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>TXT</b></div>
5968
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>&nbsp;</b></div>
6069
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>14400</b></div>
61-
<div class="clearfix l-unit__stat-col--left wide-3 "><b><input type="text" class="vst-input" value="<?=htmlspecialchars('"v=spf1 a mx ip4:'.array_key_first($ips).'; -all"');?>" /></b></div>
70+
<div class="clearfix l-unit__stat-col--left wide-3 "><b><input type="text" class="vst-input" value="<?=htmlspecialchars('v=spf1 a mx ip4:'.array_key_first($ips).'; -all');?>" /></b></div>
6271
</div>
6372
</div>
73+
<div class="l-unit animated fadeIn">
74+
<div class="l-unit__col l-unit__col--right">
75+
<div class="clearfix l-unit__stat-col--left wide-3"><b><input type="text" class="vst-input" style="width:200px !important;" value="_dmarc" /></b> </div>
76+
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>TXT</b></div>
77+
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>&nbsp;</b></div>
78+
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>14400</b></div>
79+
<div class="clearfix l-unit__stat-col--left wide-3 "><b><input type="text" class="vst-input" value="<?=htmlspecialchars('v=DMARC1; p=quarantine; pct=100');?>" /></b></div>
80+
</div>
81+
</div>
6482
<?php foreach($dkim as $key => $value){ ?>
6583
<div class="l-unit animated fadeIn">
6684
<div class="l-unit__col l-unit__col--right">
6785
<div class="clearfix l-unit__stat-col--left wide-3"><b><input type="text" class="vst-input" style="width:200px !important;" value="<?=htmlspecialchars($key);?>" /></b></div>
6886
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>TXT</b></div>
6987
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>&nbsp;</b></div>
7088
<div class="clearfix l-unit__stat-col--left text-center step-top-small"><b>3600</b></div>
71-
<div class="clearfix l-unit__stat-col--left wide-3 "><b><input type="text" class="vst-input" value="<?=htmlspecialchars(str_replace("'",'"',$dkim[$key]['TXT']));?>" </b></div>
89+
<div class="clearfix l-unit__stat-col--left wide-3 "><b><input type="text" class="vst-input" value="<?=htmlspecialchars(str_replace(array('"',"'"),'',$dkim[$key]['TXT']));?>" </b></div>
7290
</div>
7391
</div>
7492
<?php } ?>

0 commit comments

Comments
 (0)