Fix AllowedRemoteIP (SPF Whitelist)

tags/ipasserelle-base-0.2.65-1 0.2.44_el6
Daniel Berteaud 11 years ago
parent de210a5303
commit c976e1ebd9
  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