RE: Iterate All Dovecot Users !

2017-08-31 Thread Nick Lekkas
Hi Thomas !

So simple But you save my ass .
And yes it works !

Thanks a lot ! Really ! I appreciate it !

Thanks

Nick

-Original Message-
From: Thomas Reifferscheid [mailto:tho...@reifferscheid.org]
Sent: Thursday, August 31, 2017 10:49 PM
To: nlek...@gmail.com
Subject: Re: Iterate All Dovecot Users !



Am 31.08.2017 um 18:18 schrieb Nick Lekkas:
> Hello to all !
>  
> I am trying to write a script that iterate all users that are created in
> dovecot and postfix 
> Is there any way ..?
>  

Hi Nick

for user in $(doveadm user -u '*'); do echo $user; done

Thomas


__ Information from ESET Endpoint Antivirus, version of detection
engine 16008 (20170831) __

The message was checked by ESET Endpoint Antivirus.

  part000.txt - is OK

http://www.eset.com




__ Information from ESET Endpoint Antivirus, version of detection
engine 16008 (20170831) __

The message was checked by ESET Endpoint Antivirus.

Email message - is OK

http://www.eset.com


Re: Iterate All Dovecot Users !

2017-08-31 Thread Arie Peterson
Nick Lekkas wrote:
> I am trying to write a script that iterate all users that are created in
> dovecot and postfix 
> Is there any way ..?

You could try `doveadm user '*'` .