I believe the userdb_ prefix is used when you want to provide userdb fields in a passdb context, or in the actual passwd-file file contents (/etc/dovecot/users).

In default_fields, you should use the non-prefixed name, i.e. "noreplicate=y"

Use `doveadm user -u <username>` to see what userdb fields are returned for a specific user.

- Eirik

On 2/6/2020 11:36 PM, [email protected] wrote:
Hi,

I have set up the sync and it is working but I only would like to sync some 
users. Currently this does not seem to work.

Version 2.3.9.2

Relevant Settings:

File users:
[email protected]:{SHA}hash:::t:

passdb {
   driver = passwd-file
   args = username_format=%u /etc/dovecot/users
}

userdb {
    driver = passwd-file
    args = username_format=%u /etc/dovecot/users
    default_fields = uid=2222 gid=2222 home=/var/vmail/%d/%n 
userdb_noreplicate=t
}

After restart of dovecot I allways get all users with sudo doveadm replicator status 
"*"

usernamepriority          fast sync full sync success sync failed
[email protected]     none     00:01:58  03:52:23  -            y
[email protected]     none     00:01:58  03:52:23  -            y
[email protected]       none     00:01:58  07:51:00  -            y

What value needs to be set to get replication / no replication and to remove 
the users from the list? I have tried 0 / 1 / True / False / t / f / T / F but 
I don't see a change in behavior.

Best regards

Tim

Reply via email to