Hi,
Any script or command to obtain all accounts from a user? For example this user has 3 mail accounts
User1:
- Account1: user@domain.com
- Department: department@domain.com
- Account2: temp@domain.com
How can I obtain this three mail addresses?
thanks in advance
[SOLVED] obtain all mail accounts from a user?
-
- Posts: 15
- Joined: Wed Apr 06, 2016 12:18 pm
[SOLVED] obtain all mail accounts from a user?
Last edited by iibarguren on Tue Feb 21, 2017 7:04 am, edited 1 time in total.
Re: obtain all mail accounts from a user?
You can get that by using zmprov (full details in the wiki and the zmprov help command) and I believe there's a post in the forums on how to do that if you wanted ti list more than one user.
-
- Posts: 15
- Joined: Wed Apr 06, 2016 12:18 pm
Re: obtain all mail accounts from a user?
I'm searching but I don't find anything related
- jorgedlcruz
- Zimbra Alumni
- Posts: 2782
- Joined: Thu May 22, 2014 4:47 pm
Re: obtain all mail accounts from a user?
Hello,
Maybe this?
Best regards
Maybe this?
Code: Select all
zmprov gid user@domain.com
-
- Posts: 15
- Joined: Wed Apr 06, 2016 12:18 pm
Re: obtain all mail accounts from a user?
thanks for your reply but this is not what I want... there is no account info there...jorgedlcruz wrote:Hello,
Maybe this?Best regardsCode: Select all
zmprov gid user@domain.com
In the example above, when the User1 logons to zimbra have 3 accounts on Preferences => Accounts:
- Himself ( user1@domain )
- deparment account ( department@domain )
- another users account, a colegue in holidays for example ( temp@domain )
What I need is to get all accounts that have a user, in this case user1@domain, department@domain and temp@domain.
I need them because in another script we are going to generate diferent signatures for each of them.
-
- Posts: 15
- Joined: Wed Apr 06, 2016 12:18 pm
[SOLVED] Re: obtain all mail accounts from a user?
I found the solution. I was always looking for "mail", "external mail" .... when I have to seek for "Datasource". The solution is this:
Code: Select all
zmprov gds myuser | grep zimbraDataSourceEmailAddre