7 Jun
2020
7 Jun
'20
1:53 p.m.
On Sat, 6 Jun 2020, @lbutlr wrote:
On 05 Jun 2020, at 17:09, Bernardo Reino <reinob@bbmk.org> wrote:
USERS=$(cat /etc/dovecot/virtual_passwd | cut -d: -f1)
Is that a standard file? It's not one I have.
No, of course not! :) That's just my userdb/passdb (passwd-file).
I would use (not that I have, but it seem like the way to get a list of users)
USERS=$( doveadm user '*' )
There was a time when user enumeration didn't work as I wanted (had userdb as static) so I did it that way. Now I can do doveadm user '*' and it returns the list of users, but didn't bother to change that (I'm talking about a total of 16 users... :)
Cheers.