postfix export
[freeside.git] / bin / postfix.export
index 7894a3a..64d9738 100755 (executable)
@@ -107,7 +107,7 @@ foreach my $export ( @exports ) {
     dest    => "$user\@$machine:". $export->option('virtual'),
   } ) or die "rsync to $machine failed: ". join(" / ", $rsync->err);
 #  warn $rsync->out;
-
+  ssh("$user\@$machine", "postmap hash:/etc/postfix/virtual");
   ssh("$user\@$machine", "postfix reload");
 
 }