Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Zimbra Asterisk integration - IMAP voicemail storage

  1. #1
    chapman_164 is offline Active Member
    Join Date
    Jan 2008
    Posts
    28
    Rep Power
    7

    Question Zimbra Asterisk integration - IMAP voicemail storage

    In bug 21021 we were talking about using Zimbra's IMAP interface to store voicemails from Asterisk. It looks to me like one way this is done with other IMAP packages (such as Dovecot) is to set up a Master User. This way you would have one password that you could use to log in to any user's IMAP account and would seem to work perfectly with the way Asterisk has the IMAP storage structured (otherwise you'd have to find a way to keep the individual users' passwords synced between Zimbra and Asterisk's voicemail.conf). In bugzilla dkarp@zimbra.com suggested that AUTHENTICATE PLAIN provides this feature. Has anybody successfully set this up?

    Following are the combinations I tried:

    * OK mail.{domain}.com Zimbra IMAP4rev1 service ready
    1 LOGIN {user}@{domain}.com*admin {adminPassword}
    * BAD parse error: zero-length content
    1 LOGIN {user}@{domain}.com*admin@{domain}.com {adminPassword}
    1 BAD parse error: wrong character; expected ' ' but got '*'
    Am I getting the format right? Am I using the correct seperator (*) between the login user and the master user?

    Thanks,
    Mike Chapman

  2. #2
    Rich Graves is offline Outstanding Member
    Join Date
    Jan 2007
    Location
    Minnesota
    Posts
    719
    Rep Power
    9

    Default

    No, LOGIN with user*admin is a nonstandard hack.

    The standard AUTHENTICATE PLAIN takes one argument, the base64-encoded username and password, each prepended by a null byte.

    Code:
    $ echo -n '\000username@example.com\000password' | openssl base64
    XDAwMHVzZXJuYW1lQGV4YW1wbGUuY29tXDAwMHBhc3N3b3Jk
    
    1 authenticate plain XDAwMHVzZXJuYW1lQGV4YW1wbGUuY29tXDAwMHBhc3N3b3Jk

  3. #3
    Rich Graves is offline Outstanding Member
    Join Date
    Jan 2007
    Location
    Minnesota
    Posts
    719
    Rep Power
    9

    Default

    Um, corrected and more relevant:

    Code:
    printf 'enduser@example.com\000admin@example.com\000adminpass' | openssl base64
    
    1 authenticate plain ZW5kdXNlckBleGFtcGxlLmNvbQBhZG1pbkBleGFtcGxlLmNvbQBhZG1pbnBhc3M=
    [/CODE]

  4. #4
    chapman_164 is offline Active Member
    Join Date
    Jan 2008
    Posts
    28
    Rep Power
    7

    Default

    Rich: Thanks for the help. I was able to login to my Zimbra IMAP using that perfectly.

    Does anybody have this working with Asterisk yet? Does Asterisk use plain authentication? Unfortunately I haven't stepped up to v1.4 yet so I can't test it. I was hoping to see if this works before making the jump.

    Thanks,
    Mike Chapman

  5. #5
    RACjr is offline Member
    Join Date
    Oct 2006
    Location
    Cape Cod
    Posts
    13
    Rep Power
    8

    Default

    Hi Mike,

    Am trying to implement this now. Did you have any luck?

  6. #6
    chapman_164 is offline Active Member
    Join Date
    Jan 2008
    Posts
    28
    Rep Power
    7

    Default

    I haven't tried yet. I'm planning on implementing this along with some other server upgrades in the next few weeks. If you have any pointers from your experience please let me know.

    Thanks,
    Mike

  7. #7
    RACjr is offline Member
    Join Date
    Oct 2006
    Location
    Cape Cod
    Posts
    13
    Rep Power
    8

    Default

    Thanks Mike. I'll forge ahead and share what I learn

  8. #8
    RACjr is offline Member
    Join Date
    Oct 2006
    Location
    Cape Cod
    Posts
    13
    Rep Power
    8

    Default

    Mike,

    Initial testing is successful. Yes, I cheated with the zimbra admin user

    in /etc/asterisk/voicemail.conf
    under [general]
    imapserver=zimbra.yourdomain.com
    imapport=143
    expungeonhangup=yes
    imapfolder=INBOX
    imapflags=notls
    authuser=admin@yourzimbradomain.com
    authpassword=youradminzimbrapassword

    make sure you specify the option imapuser=username in the employee's voicemail line.

    Seems to work. It's sending two copies, and is a little soft. But I'm encouraged

    -Ron

  9. #9
    chapman_164 is offline Active Member
    Join Date
    Jan 2008
    Posts
    28
    Rep Power
    7

    Default

    That's perfect, thanks for the update.

  10. #10
    RACjr is offline Member
    Join Date
    Oct 2006
    Location
    Cape Cod
    Posts
    13
    Rep Power
    8

    Default

    An update on 9/7/08:

    Unfortunately, using the imap feature of asterisk voicemail w/ zimbra has proven to be unstable during my testing. About 20% of the time, the system will hang after sending a voicemail to the imap server. I don't have time to debug because we need to go live soon.

    -Ron

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 31
    Last Post: 12-15-2007, 09:05 PM
  2. Replies: 22
    Last Post: 12-02-2007, 05:05 PM
  3. 4.5 Upgrade failure
    By brained in forum Installation
    Replies: 9
    Last Post: 03-03-2007, 03:30 PM
  4. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 11:16 AM
  5. FC3 Install and no zimbra ?
    By aws in forum Installation
    Replies: 10
    Last Post: 10-09-2005, 04:19 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
  •