diff --git a/zmldapsync/zmldapsync.pl b/zmldapsync/zmldapsync.pl index d4d97d1..3c98982 100644 --- a/zmldapsync/zmldapsync.pl +++ b/zmldapsync/zmldapsync.pl @@ -419,8 +419,8 @@ DOMAIN: foreach my $domain ( keys $conf->{domains} ) { foreach my $alias ( @ext_aliases ) { next if ( not alias_matches_domain( $alias, $domain_entry ) ); next if ( grep { $alias eq $_ } @{ $zim_users->{$user}->{mail} } ); - log_verbose( "Creating alias $alias for user $user" ); - send_zmprov_cmd( "addAccountAlias $user $alias" ); + log_verbose( "Creating alias $alias for user $user\@$domain" ); + send_zmprov_cmd( "addAccountAlias $user\@$domain $alias" ); } # On each sync, we register the list of LDAP aliases into Zimbra's LDAP in the zimbraNotes attribute