First, let me say that I will be infinitely grateful to anyone who can help me solve this problem. I’m running 1.4.22-RC5 on Mac OS X 10.5.5 Server and I’m trying to get IMAP voicemail to work. I’ve tried to make this happen previously, but I got stuck at about the same point and quit. I’ve literally read everything that I can find about this and I just can’t get it…
Initially, my mail server was set to only do SSL+TLS. After wrestling with that for a while and figuring that my problem was probably with that setup. In my mail logs, I kept seeing:
mail imaps[380]: Fatal error: tls_start_servertls() failed
I tried all kinds of things to make it work, to no avail. So, I figured I would see if I could get it to work with just plaintext login (after all, both the mail server and asterisk are on the same box anyway). However, no luck there either. In asterisk, I’m seeing:
[Sep 28 23:37:33] ERROR[150]: app_voicemail.c:1713 mm_log: IMAP Error: IMAP Authentication cancelled
[Sep 28 23:37:33] ERROR[150]: app_voicemail.c:1488 init_mailstream: Can’t connect to imap server {localhost:143/imap/notls/user=[MYUSERNAME]}Voicemail
[Sep 28 23:37:33] ERROR[150]: app_voicemail.c:1201 messagecount: IMAP mailstream is NULL
in my mail server logs, I see:
Sep 28 23:44:00 mail imap[665]: accepted connection
Sep 28 23:43:49 mail imap[665]: AOD: CRAM-MD5: user canceled auth attempt
Now, like I said, I’ve tried EVERYTHING. I’ve tried setting things up with one admin IMAP user, I tried setting it up with individual IMAP username/passwords, I tried using a Voicemail IMAP folder, I tried using the normal INBOX. Still, nothing works!!!
I’ve compiled and recompiled (both Asterisk and the UW-IMAP library) with different settings. Any help would be greatly appreciated.