[Web] Allow aliases as send-as

This commit is contained in:
andryyy
2019-05-26 08:29:10 +02:00
parent ba4ac26ba9
commit 5087d5ce96
3 changed files with 42 additions and 5 deletions

18
data/web/mta_sts.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
error_reporting(0);
header('Content-Type: text/plain');
echo $_SERVER['HTTP_HOST'];
foreach (dns_get_record('mailcow.email', DNS_MX) as $mx_r) {
$mx_s[] = $mx_r['target'];
}
!empty($mx_s) ?: exit();
echo 'version: STSv1' . PHP_EOL;
echo 'mode: enforce' . PHP_EOL;
foreach ($mx_s as $mx_r) {
printf('mx: %s' . PHP_EOL, $mx_r);
}
echo 'max_age: 86400' . PHP_EOL;