mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Disallow > 10 SPF MX domains
This commit is contained in:
@@ -276,6 +276,7 @@ edit_dok=Yes, Delete It
|
||||
edit_eptr='$1' is not a valid reverse address record hostname
|
||||
edit_espfa='$1' is not a valid host to allow sending from
|
||||
edit_espfmx='$1' is not a valid domain name to allow MX sending from
|
||||
edit_espfmxmax=You are not allowed to have more than 10 domains to allow MX sending from
|
||||
edit_espfip='$1' is not a valid IP address or IP/prefix to allow sending from
|
||||
edit_espfip6='$1' is not a valid IPv6 address or IPv6/prefix to allow sending from
|
||||
edit_espfinclude='$1' is not a valid additional domain from which mail is sent
|
||||
|
||||
@@ -294,6 +294,8 @@ else {
|
||||
foreach my $mx (@{$spf->{'mx:'}}) {
|
||||
&valname($mx) || &error(&text('edit_espfmx', $mx));
|
||||
}
|
||||
@{$spf->{'mx:'}} <= 10 ||
|
||||
&error(&text('edit_espfmxmax', 10));
|
||||
$spf->{'ip4:'} = [ split(/\s+/, $in{'spfip4s'}) ];
|
||||
foreach my $ip (@{$spf->{'ip4:'}}) {
|
||||
&check_ipaddress($ip) ||
|
||||
|
||||
Reference in New Issue
Block a user