Changeset 498


Ignore:
Timestamp:
May 3, 2010, 1:10:18 AM (10 years ago)
Author:
zecrazytux
Message:

Fixed the non-hosted-domains-in-postfix-conf bug :), see #17

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bearmail/lib/BearMail/Backend/Files.pm

    r477 r498  
    303303      } else {
    304304        foreach(split(',', $_->{target})) {
    305           next if (!$records{$_}->{password}); # FIXME: keep ? Security purpose: don't keep postmasters without passwords
    306           if(exists($postmasters{$_})) {
    307             push(@{$postmasters{$_}->{domains}}, $dom);
    308           } else {
    309             $postmasters{$_} = { password => $records{$_}->{password}, domains => [ $dom ] };
     305          if(exists($records{$_})) {
     306            next unless defined($records{$_}->{password}); # FIXME: keep ? Security purpose: don't keep postmasters without passwords
     307            if(exists($postmasters{$_})) {
     308              push(@{$postmasters{$_}->{domains}}, $dom);
     309            } else {
     310              $postmasters{$_} = { password => $records{$_}->{password}, domains => [ $dom ] };
     311            }
    310312          }
    311313        }
Note: See TracChangeset for help on using the changeset viewer.