doveadm sync ignores -u option
Hi,
Since I upgraded from 2.2.21 to 2.2.23, the user option -u seems to be ignored by doveadm sync, or at least it doesn't handle it correctly.
If I run the following in the shell as user 'max':
% doveadm sync -u foo@example.com -d
doveadm(max): Error: User doesn't exist
I get it to work if I set the USER environment variable to foo@example.com:
% USER=foo@example.com doveadm sync -u foo@example.com -d
# sync runs as expected.
Kind Regards,
Max
11 avril 2016 14:07 "Max" order@mxgr.de a écrit:
Hi,
Since I upgraded from 2.2.21 to 2.2.23, the user option -u seems to be ignored by doveadm sync, or at least it doesn't handle it correctly.
I can confirm it breaks replication for me ( multiple user so i have to replicate through ssh by user root as described in replication wiki page ). No longer work with 2.2.23, reverting to 2.2.22 get it back to a working state
Log filled with :
Apr 12 09:52:03 mailhost dovecot: doveadm: Error: doveadm(root): Error: Invalid settings in userdb: userdb returned 0 as uid Apr 12 09:52:03 mailhost dovecot: doveadm: Error: doveadm(root): Error: User lookup failed: Invalid user settings. Refer to server log for more information.
Regards
Vincent ETIENNE
On 12.04.2016 14:32, ve@vetienne.net wrote:
11 avril 2016 14:07 "Max" order@mxgr.de a écrit:
Hi,
Since I upgraded from 2.2.21 to 2.2.23, the user option -u seems to be ignored by doveadm sync, or at least it doesn't handle it correctly.
I can confirm it breaks replication for me ( multiple user so i have to replicate through ssh by user root as described in replication wiki page ). No longer work with 2.2.23, reverting to 2.2.22 get it back to a working state
Log filled with :
Apr 12 09:52:03 mailhost dovecot: doveadm: Error: doveadm(root): Error: Invalid settings in userdb: userdb returned 0 as uid Apr 12 09:52:03 mailhost dovecot: doveadm: Error: doveadm(root): Error: User lookup failed: Invalid user settings. Refer to server log for more information.
Regards
Vincent ETIENNE
Hi all!
We are aware of this bug and it has already been fixed in master, https://github.com/dovecot/core/commit/9ba5c4965ca244efeeb525229f1293ef52a4b... and will be included in next release.
In the mean time you have to use USER environment variable as workaround. Very sorry about this.
Aki
participants (3)
-
Aki Tuomi
-
Max
-
ve@vetienne.net