[Dovecot] rc2x seems to break Pegasus Mail
Hi guys,
I upgraded from rc7 to rc24 a couple weeks ago, and noticed today that Pegasus Mail's IMAP no longer connects. So I put rc27 in, and it worked, but only for a little while...
I'm not sure what the problem might be, the logs look fine, and I can still use Horde and Evolution without a problem. Pegasus Mail's error is unfortunately not helpful.
Restarting rc27 didn't 'bring it back' for Pegasus. I turned on debugging, but I don't know what to look for because other clients work :/
dovecot: Mar 22 09:55:58 Info: imap-login: Login: user=<rick>, method=PLAIN, rip=172.16.100.20, lip=172.16.100.10, TLS dovecot: Mar 22 09:55:58 Info: IMAP(rick): Loading modules from directory: /usr/local/lib/dovecot/imap dovecot: Mar 22 09:55:58 Info: IMAP(rick): Module loaded: /usr/local/lib/dovecot/imap/lib10_quota_plugin.so dovecot: Mar 22 09:55:58 Info: IMAP(rick): Module loaded: /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so dovecot: Mar 22 09:55:58 Info: IMAP(rick): Effective uid=89, gid=89, home=/usr/home/vpopmail/domains/havokmon.com/rick dovecot: Mar 22 09:55:58 Info: IMAP(rick): Namespace: type=private, prefix=INBOX., sep=., inbox=yes, hidden=no, subscriptions=no dovecot: Mar 22 09:55:58 Info: IMAP(rick): maildir: root exists (/usr/home/vpopmail/domains/havokmon.com/rick/Maildir) dovecot: Mar 22 09:55:58 Info: IMAP(rick): maildir: root=/usr/home/vpopmail/domains/havokmon.com/rick/Maildir, index=/usr/home/vpopmail/domains/havokmon.com/rick/Maildir, control=, inbox= dovecot: Mar 22 09:56:03 Info: imap-login: Login: user=<rick>, method=PLAIN, rip=172.16.100.20, lip=172.16.100.10, TLS dovecot: Mar 22 09:56:03 Info: IMAP(rick): Loading modules from directory: /usr/local/lib/dovecot/imap dovecot: Mar 22 09:56:03 Info: IMAP(rick): Module loaded: /usr/local/lib/dovecot/imap/lib10_quota_plugin.so dovecot: Mar 22 09:56:03 Info: IMAP(rick): Module loaded: /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so dovecot: Mar 22 09:56:03 Info: IMAP(rick): Effective uid=89, gid=89, home=/usr/home/vpopmail/domains/havokmon.com/rick dovecot: Mar 22 09:56:03 Info: IMAP(rick): Namespace: type=private, prefix=INBOX., sep=., inbox=yes, hidden=no, subscriptions=no dovecot: Mar 22 09:56:03 Info: IMAP(rick): maildir: root exists (/usr/home/vpopmail/domains/havokmon.com/rick/Maildir) dovecot: Mar 22 09:56:03 Info: IMAP(rick): maildir: root=/usr/home/vpopmail/domains/havokmon.com/rick/Maildir, index=/usr/home/vpopmail/domains/havokmon.com/rick/Maildir, control=, inbox= dovecot: Mar 22 09:56:03 Info: IMAP(rick): Disconnected: Logged out
Config: base_dir = /var/run/dovecot/ protocols = imap imaps listen = * disable_plaintext_auth = no shutdown_clients = yes log_path = /var/log/dovecot/dovecot.log info_log_path = /var/log/dovecot/dovecot_info.log log_timestamp = "%b %d %H:%M:%S " ssl_cert_file = /usr/local/share/courier-imap/mail-vfemail-godaddy.crt ssl_key_file = /usr/local/share/courier-imap/mail-vfemail-godaddy.key ssl_key_password = verbose_ssl = no login_dir = /var/run/dovecot/login login_user = nobody login_process_size = 64 login_process_per_connection = yes login_processes_count = 15 login_max_processes_count = 512 login_greeting = VFEmail IMAP Dovecot ready. namespace private { separator = . prefix = INBOX. inbox = yes } mail_debug = no mmap_disable = yes verbose_proctitle = yes first_valid_uid = 89 last_valid_uid = 0 protocol imap { mail_plugins = quota imap_quota imap_client_workarounds = outlook-idle }
protocol pop3 { } protocol lda { postmaster_address = admin@vfemail.net } auth_verbose = no auth_debug = no auth default { mechanisms = plain passdb checkpassword { args = /usr/local/vpopmail/bin/vchkpw } userdb prefetch { } user = vpopmail } dict { } plugin { quota = maildir }
I compiled both rc2x's with just ./configure Install prefix ...................... : /usr/local File offsets ........................ : 64bit I/O loop method ..................... : poll File change notification method ..... : none Building with SSL support ........... : yes (OpenSSL) Building with IPv6 support .......... : yes Building with pop3 server ........... : yes Building with mail delivery agent .. : yes Building with GSSAPI support ........ : no Building with user database modules . : static prefetch passwd passwd-file checkpassword vpopmail (modules) Building with password lookup modules : passwd passwd-file pam checkpassword vpopmail (modules) Building with SQL drivers ............:
Though - for rc27, I had to disable vpopmail because it wouldn't build. Since I use checkpassword, it didn't matter.
Rick
On Thu, 2007-03-22 at 10:26 -0500, Rick Romero wrote:
I upgraded from rc7 to rc24 a couple weeks ago, and noticed today that Pegasus Mail's IMAP no longer connects. So I put rc27 in, and it worked, but only for a little while... .. dovecot: Mar 22 09:55:58 Info: imap-login: Login: user=<rick>, method=PLAIN, rip=172.16.100.20, lip=172.16.100.10, TLS
So it logs in fine. Apparently there's some command that behaves differently, or something..
Could you get rawlogs from both rc27 and rc7 so I could see what exactly it does differently? See http://dovecot.org/bugreport.html
On Thu, 2007-03-22 at 17:38 +0200, Timo Sirainen wrote:
On Thu, 2007-03-22 at 10:26 -0500, Rick Romero wrote:
I upgraded from rc7 to rc24 a couple weeks ago, and noticed today that Pegasus Mail's IMAP no longer connects. So I put rc27 in, and it worked, but only for a little while... .. dovecot: Mar 22 09:55:58 Info: imap-login: Login: user=<rick>, method=PLAIN, rip=172.16.100.20, lip=172.16.100.10, TLS
So it logs in fine. Apparently there's some command that behaves differently, or something..
Could you get rawlogs from both rc27 and rc7 so I could see what exactly it does differently? See http://dovecot.org/bugreport.html
Gah! They are all doing the same thing ;)
# cat 20070322-105149-98198.out
- OK [RAWLOG TIMESTAMP] 2007-03-22 10:51:49 A2 OK List completed.
- BYE Logging out A2 OK Logout completed.
cat 20070322-105149-98198.in
A2 LIST "" "" A2 LOGOUT
BUT - If I connect with via Courier (port 144) first, get the folder list, then go back to dovecot Pegasus Mail does:
A2 LIST "INBOX." "*"
And everything is peachy, except I have two sets of folders.
I tried to start over, so Pegasus Mail asks for:
A2 LIST "" "*"
I completely deleted the account, and recrated it, and I'm back to:
A2 LIST "" ""
Even though I try different settings in Pegasus Mail, I can't get it to change anything. I assume the first "" is the namespace, and I've specified that, but nothing happens.
Can Dovecot return * if it receives "" ? Or is Pegasus Mail really broke?
Rick
On Thu, 2007-03-22 at 11:20 -0500, Rick Romero wrote:
Could you get rawlogs from both rc27 and rc7 so I could see what exactly it does differently? See http://dovecot.org/bugreport.html
Gah! They are all doing the same thing ;)
Does that mean rc7 is broken also?
BUT - If I connect with via Courier (port 144) first, get the folder list, then go back to dovecot Pegasus Mail does:
A2 LIST "INBOX." "*"
You could try creating Dovecot namespace with "INBOX." prefix to make it behave like Courier. See Wiki > namespaces.
Can Dovecot return * if it receives "" ?
No. LIST "" "" means that the client wants to know the hierarchy separator. Did you perhaps change that and Pegasus gets confused?
On Thu, 2007-03-22 at 19:30 +0200, Timo Sirainen wrote:
On Thu, 2007-03-22 at 11:20 -0500, Rick Romero wrote:
Could you get rawlogs from both rc27 and rc7 so I could see what exactly it does differently? See http://dovecot.org/bugreport.html
Gah! They are all doing the same thing ;)
Does that mean rc7 is broken also?
Broken... well, rc7 behaves the same way as rc24 and rc27 ;)
BUT - If I connect with via Courier (port 144) first, get the folder list, then go back to dovecot Pegasus Mail does:
A2 LIST "INBOX." "*"
You could try creating Dovecot namespace with "INBOX." prefix to make it behave like Courier. See Wiki > namespaces.
I already have that (dovecot -n): namespace: type: private separator: . prefix: INBOX. inbox: yes
That's the only namespace I've declared.
Can Dovecot return * if it receives "" ?
No. LIST "" "" means that the client wants to know the hierarchy separator. Did you perhaps change that and Pegasus gets confused?
No, I don't regularly run Pegasus, but I have tested it in the past. It worked in the past. I think it worked before because the previous connection with Courier had already gotten the folder list, so Pegasus already had something to work with. It seems like it's using LIST " "" to at least begin getting the folder list, and can't. Once I have a list, it seems to work.
Rick
I really can't figure out what's going on below with IMAP and Pegasus MAil
Timo, are you saying that the LIST "" "" is a valid command and dovecot should be returning something - or should I hit up the Pegasus Mail guys?
Other clients are functional, but none of them start a session with LIST "" ""
Rick
BUT - If I connect with via Courier (port 144) first, get the folder list, then go back to dovecot Pegasus Mail does:
A2 LIST "INBOX." "*"
You could try creating Dovecot namespace with "INBOX." prefix to make it behave like Courier. See Wiki > namespaces.
I already have that (dovecot -n): namespace: type: private separator: . prefix: INBOX. inbox: yes
That's the only namespace I've declared.
Can Dovecot return * if it receives "" ?
No. LIST "" "" means that the client wants to know the hierarchy separator. Did you perhaps change that and Pegasus gets confused?
No, I don't regularly run Pegasus, but I have tested it in the past. It worked in the past. I think it worked before because the previous connection with Courier had already gotten the folder list, so Pegasus already had something to work with. It seems like it's using LIST " "" to at least begin getting the folder list, and can't. Once I have a list, it seems to work.
Rick
Hello,
Timo Sirainen wrote:
BUT - If I connect with via Courier (port 144) first, get the folder list, then go back to dovecot Pegasus Mail does:
A2 LIST "INBOX." "*"
You could try creating Dovecot namespace with "INBOX." prefix to make it behave like Courier. See Wiki > namespaces.
Using Pmail from time to time and not having any problems. Having said that, I do use namespaces as Timo suggests.
Warm regards,
-- Zbigniew Szalbot
On Thu, 2007-03-22 at 20:40 +0100, Zbigniew Szalbot wrote:
Hello,
Timo Sirainen wrote:
BUT - If I connect with via Courier (port 144) first, get the folder list, then go back to dovecot Pegasus Mail does:
A2 LIST "INBOX." "*"
You could try creating Dovecot namespace with "INBOX." prefix to make it behave like Courier. See Wiki > namespaces.
Using Pmail from time to time and not having any problems. Having said that, I do use namespaces as Timo suggests.
It came to my attention first as another user tried to use Pegasus Mail. Before sending my 'works fine for me' reply, I just double checked, and found it wasn't working :(
What version Dovecot are you on? (rc27 here) What Version Pegasus Mail? (4.41 here)
Can you do an IMAP rawlog and post it to the list?
Thanks,
Rick
On Thu, 2007-03-22 at 21:45 +0100, Zbigniew Szalbot wrote:
Hello,
Rick Romero wrote:
What version Dovecot are you on? (rc27 here) rc27 too
What Version Pegasus Mail? (4.41 here) Same version.
Can you do an IMAP rawlog and post it to the list? I think I should know but how would I do this?
Uncomment:
mail_executable: /usr/local/libexec/dovecot/rawlog /usr/local/libexec/dovecot/imap in dovecot.conf
Make sure the path is correct.
Create a dovecot.rawlog directory in your email home directory, and it should start logging.
For my Maildir, it was on the same level as the Maildir directory. /home/vpopmail/domains/havokmon.com/rick/dovecot.rawlog/
Thanks! Rick
Hello,
Can you do an IMAP rawlog and post it to the list? Uncomment:
mail_executable: /usr/local/libexec/dovecot/rawlog /usr/local/libexec/dovecot/imap in dovecot.conf
Make sure the path is correct.
Create a dovecot.rawlog directory in your email home directory, and it should start logging.
For my Maildir, it was on the same level as the Maildir directory. /home/vpopmail/domains/havokmon.com/rick/dovecot.rawlog/
Done, dovecot restarted but no joy (directory empty). I do not think I am able to help but I can only confirm I have no problem with Pegasus.
-- Zbigniew Szalbot
On Thu, 2007-03-22 at 11:20 -0500, Rick Romero wrote:
# cat 20070322-105149-98198.out
- OK [RAWLOG TIMESTAMP] 2007-03-22 10:51:49 A2 OK List completed.
- BYE Logging out A2 OK Logout completed.
cat 20070322-105149-98198.in
A2 LIST "" "" A2 LOGOUT
Oh, now i get it. Originally I somehow looked that you hadn't shown the whole .out file. This should fix it: http://dovecot.org/list/dovecot-cvs/2007-March/008388.html
On Mar 27, 2007, at 4:33 PM, Timo Sirainen wrote:
On Thu, 2007-03-22 at 11:20 -0500, Rick Romero wrote:
# cat 20070322-105149-98198.out
- OK [RAWLOG TIMESTAMP] 2007-03-22 10:51:49 A2 OK List completed.
- BYE Logging out A2 OK Logout completed.
cat 20070322-105149-98198.in
A2 LIST "" "" A2 LOGOUT
Oh, now i get it. Originally I somehow looked that you hadn't shown
the whole .out file. This should fix it: http://dovecot.org/list/dovecot-cvs/2007-March/008388.html
lol I thought the same thing when I first read the .in file ;)
Works like a charm, you rock Timo!
Thanks!
Rick
I upgraded from rc7 to rc24 a couple weeks ago, and noticed today that Pegasus Mail's IMAP no longer connects. So I put rc27 in, and it worked, but only for a little while... failure to connect is a bit non-specific. usually when one of my customers tell me that, it's a client/firewall/anti-virus issue. Are the logs showing a connect attempt at all from that IP? Have you tried Pegasus from a different machine?
Kenny Dail kend@amigo.net
participants (4)
-
Kenny Dail
-
Rick Romero
-
Timo Sirainen
-
Zbigniew Szalbot