Issue With Sieve Email Filter
-
benny
The interesting part is:
C: C4 SELECT "dovecot.sieve" (CONDSTORE) S: C4 NO [SERVERBUG] Internal error occurred. Refer to server log for more information. [2014-03-16 06:41:10]First, do you have access to this server log?
Second, is
dovecot.sievea mailbox which was created by you or by the server (when you created the Sieve filter)?It is, of course, interesting that Thunderbird does not fail. The question is what is done different by Thunderbird...
You could try connecting manually to the server:
telnet imap.rollernet.us 143Login:
0 login username passwordAnd then execute the command above:
0 SELECT "dovecot.sieve" (CONDSTORE)Alternatively,
0 SELECT "dovecot.sieve" -
Allen Jarvis
- First, do you have access to this server log?
No, I do not. However, Rollernet graciously provided me with the following:
"I'll have to try looking at the logs, but offhand it looks like the client is trying to select dovecot.sieve as a mailstore, but that's
not a valid IMAP folder name.Here's the log entries from the server. It says "bug" to you in the IMAP error because that's a non-specific error instead of exposing something potentially internal to the server that could be used for malicious purposes. In this case the internal it doesn't want to expose is a filesystem path. So when the IMAP client is trying to do a "SELECT dovecot.sieve" the server is failing because the path doesn't exist, i.e. not a valid IMAP folder.
Mar 16 06:41:05 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.
sieve/tmp) failed: Not a directory
Mar 16 06:41:05 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.
svbin/tmp) failed: Not a directory
Mar 16 06:41:10 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.
sieve/tmp) failed: Not a directory
Mar 16 06:41:10 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.
svbin/tmp) failed: Not a directory
Mar 16 06:41:11 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.
sieve/tmp) failed: Not a directory
Mar 16 06:41:11 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.svbin/tmp) failed: Not a directory
Mar 16 06:41:12 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.sieve/tmp) failed: Not a directory
Mar 16 06:41:25 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.sieve/tmp) failed: Not a directory
Mar 16 06:41:25 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.svbin/tmp) failed: Not a directory
Mar 16 06:41:26 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.sieve/tmp) failed: Not a directory
Mar 16 06:41:27 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.svbin/tmp) failed: Not a directory
Mar 16 06:41:28 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.sieve/tmp) failed: Not a directory
Mar 16 06:41:28 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.svbin/tmp) failed: Not a directory
Mar 16 06:41:29 belle-pri dovecot: IMAP(skip@ajarvis.net): stat(/var/mail/vmail/a/ajarvis.net/s/skip/.dovecot.sieve/tmp) failed: Not a directory"- Second, is dovecot.sieve a mailbox which was created by you or by the server (when you created the Sieve filter)?
Not by me.
- You could try connecting manually to the server:
Manually connecting via Telnet produces the same error.
-
benny
Thanks for the detailed data.
What if you manually connect and then enter:
0 LIST "" "*"Is
dovecot.sievein the list? If yes, provide the line with this “mailbox”.Thanks in advance.
-
Allen Jarvis
Benny,
a2 LIST "" "*" * LIST (\HasNoChildren) "." "Sent" * LIST (\HasNoChildren) "." "Drafts" * LIST (\HasNoChildren) "." "Deleted Messages" * LIST (\HasNoChildren) "." "Trash" * LIST (\HasNoChildren) "." "Sent Messages" * LIST (\HasNoChildren) "." "Junk" * LIST (\HasChildren) "." "Archives" * LIST (\HasNoChildren) "." "Archives.2013" * LIST (\HasNoChildren) "." "Archive" * LIST (\HasNoChildren) "." "dovecot.svbin" * LIST (\HasNoChildren) "." "dovecot.sieve" * LIST (\HasNoChildren) "." "INBOX" a2 OK List completed.Hope this is what you want.
-
benny
Exactly. Now, I would like you to ask Rollernet.us why it returns this:
* LIST (\HasNoChildren) "." "dovecot.sieve"When
dovecot.sieveis not a selectable mailbox (or even a mailbox at all).You can take this mailbox offline in MailMate using “Take Offline” in the mailbox menu. This should prevent MailMate from trying to select it.
-
Allen Jarvis
For what it's worth,
Folder hierarchies via Roundcube for user with sieve filter and for user with no filter:
Inbox
Drafts
Sent
Junk
Trash
Archives
----2013
Deleted Messages
dovecot
----sieve
----svbin
Sent Messagesand
Inbox
Drafts
Sent
Junk
Trash
Deleted Messages -
benny
So Roundcube behaves like Rollernet.us? Or is it the same thing?
In any case, let me know if you get a reply from Rollernet.us.
-
Allen Jarvis
Issue resolved.
"You can take this mailbox offline in MailMate using “Take Offline” in the mailbox menu. This should prevent MailMate from trying to select it."
I initially attempted to do this, assuming that online/offline were Mailmate's version of subscribe/unsubscribe. When the dovecot folder is taken offline, the offline status is indicated until the first mail check is completed. At that point it and all other user folders are labeled unavailable and remain in that category until Mailmate is terminated and restarted. Mail checks continue to repeat approximately every ten seconds.
Upon Mailmate termination and restart, the entire process is repeated.
I located access to folder subscriptions via the "edit imap account" option. Mailmate had automatically subscribed to the sieve and svbin folders located under the dovecot directory. Not all email clients do so. Unsubscribing these two folders corrected the problem. Interesting that the server had not subscribed to the dovecot directory and that the dovecot directory was not available for subscription within Mailmate as well.
Thanks for working with me.
-
benny
- State changed from new to closed
Well, it's not quite resolved. I still don't understand what MailMate could/should have done differently. The “Server” subscription settings are from the server itself. So the question is, how do other email clients know that they should ignore these folders? (Actually, I believe many email clients don't even respect the server subscription state.)
You don't have to answer that though :-) I'm only asking because it might be a MailMate bug.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.