Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-16-2009, 09:06 AM
Active Member
 
Posts: 29
Default [SOLVED] Changing Multiple accounts?

Most of our users get mail on two accounts:
1. Their primary Zimbra Account.
2. A secondary pop3 account that is user@server1.domain.com.

We would like to change their secondary pop3 account to user@server2.domain.com.

Is there an easy way to make this change to their existing accounts via the command line zmprov tool or the zmmailbox tool?
Reply With Quote
  #2 (permalink)  
Old 11-16-2009, 09:49 AM
Moderator
 
Posts: 1,531
Default

the 2 commands you'll want to look at are

Code:
zmprov getDataSource
zmprov modifyDataSource
if it's the username you're looking to change you'll want to change the attribute zimbraDataSourceUsername . How can you do this for all or most of your users? well that'd take a bit of work. you'd basically need to loop through all users (use zmprov getAllAccounts), then do a getDataSource on each account, match the username to a regexp or something, then fetch the datasourceid and run the modifyDataSource on that.

Yeah not easy, but doable
Reply With Quote
  #3 (permalink)  
Old 11-17-2009, 10:31 AM
Active Member
 
Posts: 29
Thumbs up

Thanks for pointing me in the right direction. That information, combined with a little perl script changed the hostname for all our accounts in short order.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.