Fix AllowedRemoteIP (SPF Whitelist)

tags/ipasserelle-base-0.2.65-1 0.2.43_el5
Daniel Berteaud 11 years ago
parent 6b966f8435
commit 615ea2fe96
  1. 2
      root/etc/e-smith/templates/var/service/tinydns/root/data/85Spf

@ -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";

Loading…
Cancel
Save