[asterisk-bugs] [Asterisk 0013973]: Different IMAP settings for realtime and static config setups

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 17 11:52:46 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13973 
====================================================================== 
Reported By:                qualleyiv
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   13973
Category:                   Applications/app_voicemail/IMAP
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.1-beta1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-11-25 23:23 CST
Last Modified:              2008-12-17 11:52 CST
====================================================================== 
Summary:                    Different IMAP settings for realtime and static
config setups
Description: 
I've looked at this for a LONG time. If I missed something obvious, please
forgive me. I've made every effort not to report something that isn't a
bug. First, here's my setup:

I'm running 1.6.1-beta2 with the latest SVN version of Addons 1.6.1. on a
PPC XServe running OS X 10.5.5

I'm using IMAP voicemail with individual users/passwords (no master user).
Everything is working fine when I pull the voicemail users from a mysql
table using the mysql realtime addon. However, when I switch to using a
static config file, asterisk can't connect to my mail server:

[Nov 25 22:58:57] WARNING[52389] app_voicemail.c: IMAP Warning: Kerberos
error: No credentials cache found (try running kinit) for
mail.midwestdjs.com
[Nov 25 22:58:57] ERROR[52389] app_voicemail.c: IMAP Error: IMAP
Authentication cancelled
[Nov 25 22:58:57] ERROR[52389] app_voicemail.c: Houston we have a problem
- IMAP mailstream is NULL
[Nov 25 22:58:57] WARNING[52389] app_voicemail.c: IMAP Warning: Kerberos
error: No credentials cache found (try running kinit) for
mail.midwestdjs.com
[Nov 25 22:59:00] WARNING[52389] app_voicemail.c: IMAP Warning: Retrying
CRAM-MD5 authentication after Error authenticating
[Nov 25 22:59:03] WARNING[52389] app_voicemail.c: IMAP Warning: Retrying
CRAM-MD5 authentication after Error authenticating

Normally, when I'm using realtime, I still get this error occassionally:

[Nov 25 22:58:57] WARNING[52389] app_voicemail.c: IMAP Warning: Kerberos
error: No credentials cache found (try running kinit) for
mail.midwestdjs.com

But everything still works out. 

A little more about my mailserver setup: the only authentication methods I
have turned on is CRAM-MD5 and Kerberos. I've tried almost every
combination of settings including no-tls, novalidate-cert and setting
imapport=993 (which is the port I use for authentication on my normal mail
clients). That gives me the following error:

[Nov 25 22:19:08] ERROR[51662] app_voicemail.c: IMAP Error: Connection
failed to mail.midwestdjs.com,993: Operation timed out
[Nov 25 22:19:08] ERROR[51662] app_voicemail.c: Can't connect to imap
server {mail.midwestdjs.com:993/imap/user=tlbetsey}INBOX

When using realtime, it looks to me like it tries to authenticate on port
143, fails and then does something else (not sure what exactly) which
succeeds. When I switch to a static config, it seems to stop doing that. 

In any case, I'm sure I haven't given all the information necessary. Just
ask and I'll post more info ASAP. Thanks in advance for the assistance.
====================================================================== 

---------------------------------------------------------------------- 
 (0096554) svnbot (reporter) - 2008-12-17 11:52
 http://bugs.digium.com/view.php?id=13973#c96554 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 165142

U   trunk/apps/app_voicemail.c

------------------------------------------------------------------------
r165142 | mmichelson | 2008-12-17 11:52:46 -0600 (Wed, 17 Dec 2008) | 10
lines

Use the create_vm_state_from_user function in a place where
it was not being used before. Also, I've moved the urgent
folder check in messagecount() up a bit so that the flow is
a bit better.

This was something I noticed while taking a look at issue
http://bugs.digium.com/view.php?id=13973, although I don't think this is the
underlying cause
of the issue.


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=165142 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-17 11:52 svnbot         Checkin                                      
2008-12-17 11:52 svnbot         Note Added: 0096554                          
======================================================================




More information about the asterisk-bugs mailing list