|
|
@ -3,7 +3,7 @@ |
|
|
|
$OUT .= "# SPF entries for local domains\n"; |
|
|
|
$OUT .= "# SPF entries for local domains\n"; |
|
|
|
my $allowed = ''; |
|
|
|
my $allowed = ''; |
|
|
|
foreach my $ip ( split /[;,]/, ($qpsmtpd{AllowedRemoteIP} || '')){ |
|
|
|
foreach my $ip ( split /[;,]/, ($qpsmtpd{AllowedRemoteIP} || '')){ |
|
|
|
my $allowed .= 'ip4\072'.$ip.' '; |
|
|
|
$allowed .= 'ip4\072'.$ip.' '; |
|
|
|
} |
|
|
|
} |
|
|
|
foreach my $domain (get_domains()){ |
|
|
|
foreach my $domain (get_domains()){ |
|
|
|
$OUT .= "'$domain:v=spf1 mx $allowed-all:3600\n"; |
|
|
|
$OUT .= "'$domain:v=spf1 mx $allowed-all:3600\n"; |
|
|
|