Results 1 to 3 of 3

Thread: [SOLVED] Changing Multiple accounts?

  1. #1
    Join Date
    Sep 2008
    Posts
    31
    Rep Power
    7

    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?

  2. #2
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    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

  3. #3
    Join Date
    Sep 2008
    Posts
    31
    Rep Power
    7

    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.

Similar Threads

  1. Multiple Mail Accounts, Folders
    By skwdenyer in forum Users
    Replies: 12
    Last Post: 12-01-2013, 08:52 PM
  2. Multiple accounts - Multiple SENT folders
    By jolass in forum General Questions
    Replies: 35
    Last Post: 05-20-2009, 12:59 AM
  3. Trouble with multiple IMAP Accounts
    By breos in forum Installation
    Replies: 1
    Last Post: 08-19-2008, 01:25 AM
  4. Replies: 1
    Last Post: 01-19-2007, 02:23 PM
  5. MTA is Dying after yum update
    By tonyawbrey in forum Administrators
    Replies: 27
    Last Post: 04-02-2006, 07:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •