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: mail at domain.de:{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 abuse at domain.net none 00:01:58 03:52:23 - y admin at domein.net none 00:01:58 03:52:23 - y abuse at domein.de 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
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, mail at backprod.de 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: > mail at domain.de:{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 > abuse at domain.net none 00:01:58 03:52:23 - y > admin at domein.net none 00:01:58 03:52:23 - y > abuse at domein.de 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 >
Thanks, I have tried that but there is still no effect. If I use sudo doveadm replicator status "*" there are still all users from the virtual mapping listed which causes an all day spam in my syslog and mail error log. Even if I remove them from the list via command and restart dovecot there are back in the list again. At the moment I'm not really sure if this is working with passwd-file. Tim Am 2020-02-07 00:08, schrieb Eirik Rye:> 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, mail at backprod.de 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: >> mail at domain.de:{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 >> abuse at domain.net none 00:01:58 03:52:23 - y >> admin at domein.net none 00:01:58 03:52:23 - y >> abuse at domein.de 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 >>