iterate users with passwd-file passdb?

Timo Sirainen tss at iki.fi
Tue Oct 13 21:20:30 UTC 2015


On 14 Oct 2015, at 00:01, Eric Abrahamsen <eric at ericabrahamsen.net> wrote:
> 
> Joseph Tam <jtam.home at gmail.com> writes:
> 
>> Eric Abrahamsen writes:
>> 
>>> Simply: Is it possible to iterate over users if I'm using the
>>> passwd-file passdb driver? Do I need a SQL-based driver if I want to
>>> iterate?
>> 
>> What do you mean by "iterate"?  If you mean whether you can look up a
>> password entry in a multi-entry file, then yes, definitely.  If you
>> mean to sequentially go through it and do a first/last/best match,
>> probably not.
> 
> Basically I just mean the -A argument to the doveadm commands. For
> example, iterate through all the users and run sa-learn on each user's
> learn/spam folder. If it's got to be SQL, it won't kill me...

Use userdb passwd-file to get iteration working. passdb isn't used for iteration. userdb static can't be used to iterate.



More information about the dovecot mailing list