[asterisk-dev] IMAP_STORAGE issue with app_voicemail

Brendan Martens brendan.martens at crosscomm.net
Tue Oct 7 09:26:03 CDT 2008

> Hello, I have scoured the internet and asked a few times in IRC but I
> can't figure this out. I'm hoping someone here can shed some light on
> this seemingly odd behavior.
> I have asterisk 1.6.0 compiled with the IMAP_STORAGE set for
> voicemail, that all seemed to compile up just fine. The error I am
> getting in * cli is this:
> [Oct  6 17:28:43] ERROR[20802]: app_voicemail.c:1999 mm_log: IMAP
> Error: Login aborted
> [Oct  6 17:28:44] ERROR[20802]: app_voicemail.c:1757 init_mailstream:
> Can't connect to imap server {mail.crosscomm.net:143/imap/notls/user=vmail at crosscomm.net
> [Oct  6 17:28:44] ERROR[20802]: app_voicemail.c:1517 messagecount:
> Houston we have a problem - IMAP mailstream is NULL
> The output I am seeing on the imap server it's trying to connect to is
> this:
> Oct  6 17:29:49 gabriel imapd: LOGIN: DEBUG: ip=[::ffff:
>], command=LOGOUT
> Oct  6 17:29:49 gabriel imapd: LOGOUT, ip=[::ffff:]
> Here is my voicemail.conf, I removed the commented items for
> readability here:
> [general]
> imapserver=mail.crosscomm.net
> imapflags=notls
> [imap-voicemail]
> brendan => brendan,System's Mailbox,,,imapuser=vmail at crosscomm.net|
> imapsecret=password
> I'm quite baffled at this point and have no idea how to troubleshoot
> this. The very odd thing to me is that the imap server seems to be
> receiving a LOGOUT command first?
> Thanks for any help you guys may be able to offer figuring this out.
> Brendan Martens

I was able to figure out my problem. I had to install a dovecot server  
purely for testing purposes and then the error changed slightly to the  
point where when I searched it I found the issue because someone else  
had this same problem.

Basically in the voicemail config "imapsecret=password" is incorrect  
it must be "imappassword=password". Very frustrating. If asterisk  
doesn't like imapsecret it should complain about it in the console/ 
logs rather than just failing with some cryptic message.

Should I file a bug report about this?

Brendan Martens

More information about the asterisk-dev mailing list