Re: Invalid mailbox name
Op 23-09-16 om 06:14 schreef Bron Gondwana via Info-cyrus: >> But I think it's strange to have a dot in the list of GOODCHARS when >> it's used as a hierarchy seperator... > > The mailboxname used to be tested against GOODCHARS in its entirety, > including separator. Ah, I understand it now. Thanks for your help. With regards, Paul van der Vlis. -- Paul van der Vlis Linux systeembeheer Groningen https://www.vandervlis.nl/ Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: Invalid mailbox name
If anyone is interested in looking in the code on master to see how this works: https://github.com/cyrusimap/cyrus-imapd/ You're looking for mbname_t, and in particular mbname_from_*. EXPORTED mbname_t *mbname_from_extname(const char *extname, const struct namespace *ns, const char *userid) And their inverses, which are just the same without the from, i.e. EXPORTED const char *mbname_extname(const mbname_t *mbname, const struct namespace *ns, const char *userid) The struct behind mbname_t allows for caching, parsing, processing the parts differently, and generally much nicer manipulation of names, all the while converting everything at the last possible moment - so the internal representation inside an mbname_t has no separators at all, instead it's a strarray_t of individual names, allowing magic like: EXPORTED char *mbname_pop_boxes(mbname_t *mbname) and the inverse: EXPORTED void mbname_push_boxes(mbname_t *mbname, const char *item) Allowing you to create parent and child mailboxes programatically. One thing I'm _not_ doing here, and might switch to doing, is converting to-and-from modified UTF7. It seems a little pointless while there is no unicode representation of names - but when we do JMAP we'll need it, and at that point the internal representation should be as canonical as possible. We can also enforce the correctness of the UTF7 more easily then, because it has to be correct to be parsed! Bron. On Fri, 23 Sep 2016, at 14:10, Bron Gondwana wrote: > On Thu, 22 Sep 2016, at 22:11, Eric Luyten via Info-cyrus wrote: > > On Thu, September 22, 2016 9:46 am, Michael Menge via Info-cyrus wrote: > > > > > > > > Quoting Paul van der Vlis via Info-cyrus > > >: > > > > > > > >> I am wondering about the dot. So far I know I cannot use it in a mailbox > > >> name, but it is in the list. > > >> > > > > > > I suspect that your cyrus is configured to use the . as hierarchy > > > seperator. > > > see "unixhierarchysep:" in imapd.conf manpage for details. > > > > > > > > Of course one can use a '.' as part of a Cyrus mailbox name, internally it > > gets translated into a '^' (arrow/caret). > > In master I've changed the behaviour to expose ^ if you're not in unixhs, so > that names are fully translatable between the two settings. We run in a > mixed mode at FastMail - the old imapds listening on mail.messagingengine.com > (and our internal stuff) are still using the '.' separator for legacy > reasons, but new clients connecting to imap.fastmail.com get both > altnamespace (which is now robust) and '/' separators, so they can use dots > nicely. > > We're not yet at the point that we want to enable dots in usernames, but > we're close. > > > I modified our GOODCHARS definition heavily when we migrated to Cyrus 2.2, > > ten years ago, and never had an issue with square brackets and such. > > Yep, they seem fine. We've had them enabled for about a year now. > > Bron. > > -- > Bron Gondwana > br...@fastmail.fm -- Bron Gondwana br...@fastmail.fm Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: Invalid mailbox name
On Fri, 23 Sep 2016, at 02:37, Paul van der Vlis via Info-cyrus wrote: > Op 22-09-16 om 09:46 schreef Michael Menge via Info-cyrus: > > > > Quoting Paul van der Vlis via Info-cyrus: > > > >> Op 21-09-16 om 14:11 schreef Michael Menge via Info-cyrus: > >>> Hi, > >>> > >>> Quoting Paul van der Vlis via Info-cyrus > >>> : > >>> > Hello, > > I am syncing many mailboxes from one IMAP server to another. Now I get > sometimes errors on mailbox names. I found out that Cyrus does not > accept brackets in a mailbox name. Is there documentation about what > characters are accepted in mailbox names?? > >>> > >>> The allowed ASCII-Chars are defined in the macro GOODCHARS in > >>> imap/mboxname.c > >>> (https://github.com/cyrusimap/cyrus-imapd/blob/master/imap/mboxname.c#L1495). > >>> > >>> > >>> non-ASCII-Chars are handled by RFC 3501 5.1.3. > >>> > >>> This subject has been discussed a few years ago on this list, and > >>> GOODCHARS > >>> has been changed between cyrus versions. > >>> > >>> 2.2:#define GOODCHARS " > >>> +,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~" > >>> 2.3:#define GOODCHARS " > >>> #$'+,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~" > >>> > >>> Master: #define GOODCHARS " > >>> #$'()*+,-.0123456789:=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_abcdefghijklmnopqrstuvwxyz~" > >>> > >> > >> Thanks for your answer! > >> > >> I am wondering about the dot. So far I know I cannot use it in a mailbox > >> name, but it is in the list. > >> > > > > I suspect that your cyrus is configured to use the . as hierarchy > > seperator. > > Correct. > > > see "unixhierarchysep:" in imapd.conf manpage for details. > > Ah, I know about that. > > But I think it's strange to have a dot in the list of GOODCHARS when > it's used as a hierarchy seperator... The mailboxname used to be tested against GOODCHARS in its entirety, including separator. Bron. -- Bron Gondwana br...@fastmail.fm Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: Invalid mailbox name
On Thu, 22 Sep 2016, at 22:11, Eric Luyten via Info-cyrus wrote: > On Thu, September 22, 2016 9:46 am, Michael Menge via Info-cyrus wrote: > > > > > Quoting Paul van der Vlis via Info-cyrus: > > > > >> I am wondering about the dot. So far I know I cannot use it in a mailbox > >> name, but it is in the list. > >> > > > > I suspect that your cyrus is configured to use the . as hierarchy seperator. > > see "unixhierarchysep:" in imapd.conf manpage for details. > > > > Of course one can use a '.' as part of a Cyrus mailbox name, internally it > gets translated into a '^' (arrow/caret). In master I've changed the behaviour to expose ^ if you're not in unixhs, so that names are fully translatable between the two settings. We run in a mixed mode at FastMail - the old imapds listening on mail.messagingengine.com (and our internal stuff) are still using the '.' separator for legacy reasons, but new clients connecting to imap.fastmail.com get both altnamespace (which is now robust) and '/' separators, so they can use dots nicely. We're not yet at the point that we want to enable dots in usernames, but we're close. > I modified our GOODCHARS definition heavily when we migrated to Cyrus 2.2, > ten years ago, and never had an issue with square brackets and such. Yep, they seem fine. We've had them enabled for about a year now. Bron. -- Bron Gondwana br...@fastmail.fm Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: Invalid mailbox name
Op 22-09-16 om 09:46 schreef Michael Menge via Info-cyrus: > > Quoting Paul van der Vlis via Info-cyrus: > >> Op 21-09-16 om 14:11 schreef Michael Menge via Info-cyrus: >>> Hi, >>> >>> Quoting Paul van der Vlis via Info-cyrus >>> : >>> Hello, I am syncing many mailboxes from one IMAP server to another. Now I get sometimes errors on mailbox names. I found out that Cyrus does not accept brackets in a mailbox name. Is there documentation about what characters are accepted in mailbox names?? >>> >>> The allowed ASCII-Chars are defined in the macro GOODCHARS in >>> imap/mboxname.c >>> (https://github.com/cyrusimap/cyrus-imapd/blob/master/imap/mboxname.c#L1495). >>> >>> >>> non-ASCII-Chars are handled by RFC 3501 5.1.3. >>> >>> This subject has been discussed a few years ago on this list, and >>> GOODCHARS >>> has been changed between cyrus versions. >>> >>> 2.2:#define GOODCHARS " >>> +,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~" >>> 2.3:#define GOODCHARS " >>> #$'+,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~" >>> >>> Master: #define GOODCHARS " >>> #$'()*+,-.0123456789:=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_abcdefghijklmnopqrstuvwxyz~" >>> >> >> Thanks for your answer! >> >> I am wondering about the dot. So far I know I cannot use it in a mailbox >> name, but it is in the list. >> > > I suspect that your cyrus is configured to use the . as hierarchy > seperator. Correct. > see "unixhierarchysep:" in imapd.conf manpage for details. Ah, I know about that. But I think it's strange to have a dot in the list of GOODCHARS when it's used as a hierarchy seperator... >> And what's "master" exactly? So far I see, I cannot use e.g. brackets in >> a mailbox name. > > Master is the name of the main development branch in git. A new branch for > cyrus imapd 3.0 will be forked from the master branch with the release of > the new version. Ah sorry, now I understand. With regards, Paul van der Vlis. -- Paul van der Vlis Linux systeembeheer Groningen https://www.vandervlis.nl/ Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: Invalid mailbox name
Op 22-09-16 om 14:11 schreef Eric Luyten via Info-cyrus: > Of course one can use a '.' as part of a Cyrus mailbox name, internally it > gets translated into a '^' (arrow/caret). When I create a mailbox "test.and.so", I get three maiboxes in each other. Maybe you are using unixhierarchysep? Is it normal these days to use that? > I modified our GOODCHARS definition heavily when we migrated to Cyrus 2.2, > ten years ago, and never had an issue with square brackets and such. Can you create a mailbox like "test (test)" or "test [test]" ? I get an "invalid mailbox name". With regards, Paul van der Vlis. -- Paul van der Vlis Linux systeembeheer Groningen https://www.vandervlis.nl/ Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: Invalid mailbox name
On Thu, September 22, 2016 9:46 am, Michael Menge via Info-cyrus wrote: > > Quoting Paul van der Vlis via Info-cyrus: > >> I am wondering about the dot. So far I know I cannot use it in a mailbox >> name, but it is in the list. >> > > I suspect that your cyrus is configured to use the . as hierarchy seperator. > see "unixhierarchysep:" in imapd.conf manpage for details. Of course one can use a '.' as part of a Cyrus mailbox name, internally it gets translated into a '^' (arrow/caret). I modified our GOODCHARS definition heavily when we migrated to Cyrus 2.2, ten years ago, and never had an issue with square brackets and such. Regards, Eric Luyten, Computing Centre VUB/ULB. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: Invalid mailbox name
Quoting Paul van der Vlis via Info-cyrus: Op 21-09-16 om 14:11 schreef Michael Menge via Info-cyrus: Hi, Quoting Paul van der Vlis via Info-cyrus : Hello, I am syncing many mailboxes from one IMAP server to another. Now I get sometimes errors on mailbox names. I found out that Cyrus does not accept brackets in a mailbox name. Is there documentation about what characters are accepted in mailbox names?? The allowed ASCII-Chars are defined in the macro GOODCHARS in imap/mboxname.c (https://github.com/cyrusimap/cyrus-imapd/blob/master/imap/mboxname.c#L1495). non-ASCII-Chars are handled by RFC 3501 5.1.3. This subject has been discussed a few years ago on this list, and GOODCHARS has been changed between cyrus versions. 2.2:#define GOODCHARS " +,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~" 2.3:#define GOODCHARS " #$'+,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~" Master: #define GOODCHARS " #$'()*+,-.0123456789:=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_abcdefghijklmnopqrstuvwxyz~" Thanks for your answer! I am wondering about the dot. So far I know I cannot use it in a mailbox name, but it is in the list. I suspect that your cyrus is configured to use the . as hierarchy seperator. see "unixhierarchysep:" in imapd.conf manpage for details. And what's "master" exactly? So far I see, I cannot use e.g. brackets in a mailbox name. Master is the name of the main development branch in git. A new branch for cyrus imapd 3.0 will be forked from the master branch with the release of the new version. M.MengeTel.: (49) 7071/29-70316 Universität Tübingen Fax.: (49) 7071/29-5912 Zentrum für Datenverarbeitung mail: michael.me...@zdv.uni-tuebingen.de Wächterstraße 76 72074 Tübingen Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: Invalid mailbox name
Op 21-09-16 om 14:11 schreef Michael Menge via Info-cyrus: > Hi, > > Quoting Paul van der Vlis via Info-cyrus: > >> Hello, >> >> I am syncing many mailboxes from one IMAP server to another. Now I get >> sometimes errors on mailbox names. I found out that Cyrus does not >> accept brackets in a mailbox name. Is there documentation about what >> characters are accepted in mailbox names?? > > The allowed ASCII-Chars are defined in the macro GOODCHARS in > imap/mboxname.c > (https://github.com/cyrusimap/cyrus-imapd/blob/master/imap/mboxname.c#L1495). > > non-ASCII-Chars are handled by RFC 3501 5.1.3. > > This subject has been discussed a few years ago on this list, and GOODCHARS > has been changed between cyrus versions. > > 2.2:#define GOODCHARS " > +,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~" > 2.3:#define GOODCHARS " > #$'+,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~" > Master: #define GOODCHARS " > #$'()*+,-.0123456789:=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_abcdefghijklmnopqrstuvwxyz~" Thanks for your answer! I am wondering about the dot. So far I know I cannot use it in a mailbox name, but it is in the list. And what's "master" exactly? So far I see, I cannot use e.g. brackets in a mailbox name. With regards, Paul van der Vlis. -- Paul van der Vlis Linux systeembeheer Groningen https://www.vandervlis.nl/ Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: Invalid mailbox name
Hi, Quoting Paul van der Vlis via Info-cyrus: Hello, I am syncing many mailboxes from one IMAP server to another. Now I get sometimes errors on mailbox names. I found out that Cyrus does not accept brackets in a mailbox name. Is there documentation about what characters are accepted in mailbox names?? The allowed ASCII-Chars are defined in the macro GOODCHARS in imap/mboxname.c (https://github.com/cyrusimap/cyrus-imapd/blob/master/imap/mboxname.c#L1495). non-ASCII-Chars are handled by RFC 3501 5.1.3. This subject has been discussed a few years ago on this list, and GOODCHARS has been changed between cyrus versions. 2.2:#define GOODCHARS " +,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~" 2.3:#define GOODCHARS " #$'+,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~" Master: #define GOODCHARS " #$'()*+,-.0123456789:=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_abcdefghijklmnopqrstuvwxyz~" M.MengeTel.: (49) 7071/29-70316 Universität Tübingen Fax.: (49) 7071/29-5912 Zentrum für Datenverarbeitung mail: michael.me...@zdv.uni-tuebingen.de Wächterstraße 76 72074 Tübingen Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Invalid mailbox name
Hello, I am syncing many mailboxes from one IMAP server to another. Now I get sometimes errors on mailbox names. I found out that Cyrus does not accept brackets in a mailbox name. Is there documentation about what characters are accepted in mailbox names?? With regards, Paul van der Vlis. -- Paul van der Vlis Linux systeembeheer Groningen https://www.vandervlis.nl/ Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
createmailbox: Invalid mailbox name
So I've hit a wall in attempting to move our mailboxes onto a new server. I've built/installed Simon's RPMs for 2.3.8 on x86_64. After tarring up my old mail spool (2.2.12 on x86) and dumping the mailboxes file to a flat format and copying to the new machine, I am unable to reconstruct any mailboxes. It merely exits silently. I can create mailboxes in the default domain (cm user/test), but if I attempt to create virtual domain users e.g. cm user/[EMAIL PROTECTED] I get createmailbox: Invalid mailbox name What am I doing wrong? Thanks, Chris # imapd.conf entries configdirectory: /var/lib/imap defaultpartition: default partition-default: /var/spool/imap fulldirhash: 0 hashimapspool: 1 duplicate_db: skiplist mboxlist_db: skiplist admins: [EMAIL PROTECTED] sasl_pwcheck_method: auxprop virtdomains: userid defaultdomain: mail #(this is not the machine's name) unixhierarchysep: on tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt allownanonymouslogin: no allowplaintext: yes allowusermoves: yes loginrealms: mail domain1.tld domain2.tld Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: createmailbox: Invalid mailbox name
maybe because your login as [EMAIL PROTECTED] In this case you can only manage [EMAIL PROTECTED] addresses Try to login as cyrus Maybe you should set : admins: cyrus and also try defaultdomain: mail Regards On 9/28/07, Chris Harms [EMAIL PROTECTED] wrote: So I've hit a wall in attempting to move our mailboxes onto a new server. I've built/installed Simon's RPMs for 2.3.8 on x86_64. After tarring up my old mail spool (2.2.12 on x86) and dumping the mailboxes file to a flat format and copying to the new machine, I am unable to reconstruct any mailboxes. It merely exits silently. I can create mailboxes in the default domain (cm user/test), but if I attempt to create virtual domain users e.g. cm user/[EMAIL PROTECTED] I get createmailbox: Invalid mailbox name What am I doing wrong? Thanks, Chris # imapd.conf entries configdirectory: /var/lib/imap defaultpartition: default partition-default: /var/spool/imap fulldirhash: 0 hashimapspool: 1 duplicate_db: skiplist mboxlist_db: skiplist admins: [EMAIL PROTECTED] sasl_pwcheck_method: auxprop virtdomains: userid defaultdomain: mail #(this is not the machine's name) unixhierarchysep: on tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt allownanonymouslogin: no allowplaintext: yes allowusermoves: yes loginrealms: mail domain1.tld domain2.tld Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html -- Alain Spineux aspineux gmail com May the sources be with you Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: CREATE INBOX/attention: NO Invalid mailbox name
Hello, Why? If the problem is that Dovecot uses the folders below inbox, then do the migration and *THEN* enable altnamespace. Simple! :-) the problem is, that dovecot allows both: at the same level of INBOX and subfolders of INBOX. Cyrus only supports on of both at the same time. So I choosed to rename folders and it worked fine. I guess users will find their folders without problems. Regards Marten Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: CREATE INBOX/attention: NO Invalid mailbox name
Marten Lehmann wrote: Hello, ok, then I have to rename them manually. Rename what manually? Seriously, are you considering the problem correctly? I mean that I have to rename the INBOX/* folders before the migration. Why? If the problem is that Dovecot uses the folders below inbox, then do the migration and *THEN* enable altnamespace. Simple! :-) Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: CREATE INBOX/attention: NO Invalid mailbox name
Hello, ok, then I have to rename them manually. Rename what manually? Seriously, are you considering the problem correctly? I mean that I have to rename the INBOX/* folders before the migration. Regards Marten Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
CREATE INBOX/attention: NO Invalid mailbox name
Hello, I have the combination of the following in my imapd.conf: altnamespace: true unixhierarchysep: true That way folders can be created on the same level as INBOX. But I didn't understood this the way, that one cannot have folders below INBOX then. 173 CREATE INBOX/attention 173 NO Invalid mailbox name Thats a bit tricky because we are migrating from dovecot, and dovecot allowed INBOX.attention as well as attention. Is there any option to still allow this? Regards Marten Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: CREATE INBOX/attention: NO Invalid mailbox name
On Fri, 20 Oct 2006, Marten Lehmann wrote: Hello, I have the combination of the following in my imapd.conf: altnamespace: true unixhierarchysep: true That way folders can be created on the same level as INBOX. But I didn't understood this the way, that one cannot have folders below INBOX then. 173 CREATE INBOX/attention 173 NO Invalid mailbox name Thats a bit tricky because we are migrating from dovecot, and dovecot allowed INBOX.attention as well as attention. Is there any option to still allow this? I think it's one way or the other, not both. With altnamespace: 0, all folders are under INBOX. With altnamespace: 1, no folders are under INBOX. Andy Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: CREATE INBOX/attention: NO Invalid mailbox name
Hello, I think it's one way or the other, not both. With altnamespace: 0, all folders are under INBOX. With altnamespace: 1, no folders are under INBOX. ok, then I have to rename them manually. Regards Marten Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: CREATE INBOX/attention: NO Invalid mailbox name
Marten Lehmann wrote: Hello, I think it's one way or the other, not both. With altnamespace: 0, all folders are under INBOX. With altnamespace: 1, no folders are under INBOX. ok, then I have to rename them manually. Rename what manually? Seriously, are you considering the problem correctly? -- Jo Rhett Network/Software Engineer Net Consonance Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Create virtual domain user complaint: createmailbox: Invalid mailbox name
I am running FC4+SASL+TLS+Postfix+Cyrus-imap+Cyrus-sasl+web-cyradm on two hosts. HostA allows the creation of vitrual domain users as user/[EMAIL PROTECTED], however, when using the same cm syntax for a user on HostB cryadm complains createmailbox: Invalid mailbox name . HostB will accept cm user. + u.. + .domain.com. HostA and HostB /etc/imapd.conf configurations are identical with the exceptiion of host names and both reports: name : Cyrus IMAPD version: v2.2.12-Invoca-RPM-2.2.12-6.fc4 2005/02/14 16:43:51 vendor : Project Cyrus support-url: http://asg.web.cmu.edu/cyrus os : Linux os-version : 2.6.14-1.1656_FC4 environment: Built w/Cyrus SASL 2.1.20 Running w/Cyrus SASL 2.1.20 Built w/Sleepycat Software: Berkeley DB 4.3.27: (April 25, 2005) Running w/Sleepycat Software: Berkeley DB 4.3.27: (April 25, 2005) Built w/OpenSSL 0.9.7f 22 Mar 2005 Running w/OpenSSL 0.9.7f 22 Mar 2005 CMU Sieve 2.2 TCP Wrappers mmap = shared lock = fcntl nonblock = fcntl auth = unix idle = idled What could possibly be different in HostB's environment that would require different virtual domain creation separators? i.e. (HostA) cm user/[EMAIL PROTECTED] vs (HostB) cm user. + u.. + .domain.com. Note: The '+' signs are used only to show that periods are required on HostB. Regards, Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Create virtual domain user complaint: createmailbox: Invalid mailbox name
Am Fr, den 03.02.2006 schrieb Flash Love um 14:47: I am running FC4+SASL+TLS+Postfix+Cyrus-imap+Cyrus-sasl+web-cyradm on two hosts. HostA allows the creation of vitrual domain users as user/[EMAIL PROTECTED], however, when using the same cm syntax for a user on HostB cryadm complains createmailbox: Invalid mailbox name . HostB will accept cm user. + u.. + .domain.com. HostA and HostB /etc/imapd.conf configurations are identical with the exceptiion of host names and both reports: What could possibly be different in HostB's environment that would require different virtual domain creation separators? i.e. (HostA) cm user/[EMAIL PROTECTED] vs (HostB) cm user. + u.. + .domain.com. Note: The '+' signs are used only to show that periods are required on HostB. unixhierarchysep: yes That option isn't set properly inside imapd.conf on HostB. Alexander -- Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp Serendipity 20:07:37 up 61 days, 44 users, load average: 0.09, 0.14, 0.12 signature.asc Description: Dies ist ein digital signierter Nachrichtenteil Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Create virtual domain user complaint: createmailbox: Invalid mailbox name
On Friday 03 February 2006 13:10, Alexander Dalloz wrote: Am Fr, den 03.02.2006 schrieb Flash Love um 14:47: I am running FC4+SASL+TLS+Postfix+Cyrus-imap+Cyrus-sasl+web-cyradm on two hosts. HostA allows the creation of vitrual domain users as user/[EMAIL PROTECTED], however, when using the same cm syntax for a user on HostB cryadm complains createmailbox: Invalid mailbox name . HostB will accept cm user. + u.. + .domain.com. HostA and HostB /etc/imapd.conf configurations are identical with the exceptiion of host names and both reports: What could possibly be different in HostB's environment that would require different virtual domain creation separators? i.e. (HostA) cm user/[EMAIL PROTECTED] vs (HostB) cm user. + u.. + .domain.com. Note: The '+' signs are used only to show that periods are required on HostB. unixhierarchysep: yes That option isn't set properly inside imapd.conf on HostB. I have verified that there are no extra spaces orr other extraneous characters in HostB's imapd.conf and compared HostB's imapd.con to HostA's imapd.conff with sdiff -s. The only lines that are printed contains hostname related information. I removed the unixhierarchysep line and re-entered the line. Everything remain the same. Below is a copy, maybe there is something else going on. Thanks for responding, === HostB imapd.conf === postmaster: post-master admins: cyrus configdirectory: /var/lib/imap partition-default: /var/spool/imap allowanonymouslogin: no allowplaintext: yes allowusermoves: yes autocreatequota: -1 autocreateinboxfolders: Sent | Drafts | Spam | Templates | Trash autosubscribeinboxfolders: Sent | Drafts | Spam anysievefolder: yes defaultdomain: domain.net drachost: localhost dracinterval: 0 generate_compiled_sieve_script: yes hashimapspool: true poptimeout: 10 quotawarn: 90 reject8bit: no sendmail: /usr/sbin/sendmail servername: HostB.domain.net sievedir: /var/lib/imap/sieve sieve_maxscripts: 5 sieve_maxscriptsize: 32 timeout: 30 lmtp_admins: otheradmin lmtp_allowplaintext: no lmtp_downcase_rcpt: yes sasl_pwcheck_method: auxprop sasl_auxprop_plugin: sql sasl_mech_list: PLAIN LOGIN sasl_sql_engine: mysql sasl_sql_user: mail sasl_sql_passwd: password sasl_sql_hostnames: HostB.domain.net sasl_sql_database: mail sasl_sql_select: SELECT password FROM accountuser WHERE username = '[EMAIL PROTECTED]' OR (username ='%u' AND domain_name = '') sasl_sql_verbose: yes sasl_saslauthd_path: /var/run/saslauthd/mux unixhierarchysep: yes virtdomains: userid altnamespace: yes tls_ca_file: /etc/postfix/ssl/HostB_ca.pem tls_cert_file: /etc/postfix/ssl/HostB_imap_key_cert.pem tls_key_file: /etc/postfix/ssl/HostB_imap_key_cert.pem Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: cyrus22+virtdomains=Invalid mailbox name
Alexander Koch wrote: Hello Vladimir, On Wed, Sep 14, 2005 at 10:23:43AM +0200, Vladimir Dvorak wrote: I am running Debian 3.1, with Cyrus22-imapd ( 2.2.12 ). I switched on virtdomains support. devel:/var/run# cyradm -u [EMAIL PROTECTED] localhost IMAP Password: localhost.localdomain cm user.test ^^^ this works, user test is included into defaultdomain. But, localhost.localdomain cm [EMAIL PROTECTED] createmailbox: Invalid mailbox name Why ? did you definied a global admin in your imapd.conf? admins: cyrus (without domain) Regards, Alex Thank you Alexander. Yes, the solution is: /etc/imapd.conf admins: cyrus ( without domain of course ) and in /etc/hosts have 127.0.0.1 localhost I got in /etc/hosts '127.0.0.1 localhost.localdomain' and 'cyradm -u cyrus localhost' authenticated as [EMAIL PROTECTED], which was wrong. Now it is working! Vladimir Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: cyrus22+virtdomains=Invalid mailbox name
On Thu, Sep 15, 2005 at 09:24:06AM +0200, Vladimir Dvorak wrote: Thank you Alexander. Yes, the solution is: /etc/imapd.conf admins: cyrus ( without domain of course ) and in /etc/hosts have 127.0.0.1 localhost I got in /etc/hosts '127.0.0.1 localhost.localdomain' and 'cyradm -u cyrus localhost' authenticated as [EMAIL PROTECTED], which was wrong. We had similar problems, if you had virtdomains: on cyrus looks up your domain from the incoming interface. So it is not wrong that you came with @localdomain at most it is confusing. If you set servername and have virtdomains set to userid, unqualified usernames comes with @servername. userid disables the lookup of the domain from the incoming interface. AFAIK, Alex -- Alexander Koch, mailto: [EMAIL PROTECTED] ILK Internet GmbH, Akademiestrasse 25 - 27, D-76133 Karlsruhe Tel: +49 (0) 721 9100 0, Fax: +49 (0) 721 9100 191 http://www.ilk.net Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
cyrus22+virtdomains=Invalid mailbox name
Hello list, I am running Debian 3.1, with Cyrus22-imapd ( 2.2.12 ). I switched on virtdomains support. devel:/var/run# cyradm -u [EMAIL PROTECTED] localhost IMAP Password: localhost.localdomain cm user.test ^^^ this works, user test is included into defaultdomain. But, localhost.localdomain cm [EMAIL PROTECTED] createmailbox: Invalid mailbox name Why ? Thank you, Vladimir Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: cyrus22+virtdomains=Invalid mailbox name
Hello Vladimir, On Wed, Sep 14, 2005 at 10:23:43AM +0200, Vladimir Dvorak wrote: I am running Debian 3.1, with Cyrus22-imapd ( 2.2.12 ). I switched on virtdomains support. devel:/var/run# cyradm -u [EMAIL PROTECTED] localhost IMAP Password: localhost.localdomain cm user.test ^^^ this works, user test is included into defaultdomain. But, localhost.localdomain cm [EMAIL PROTECTED] createmailbox: Invalid mailbox name Why ? did you definied a global admin in your imapd.conf? admins: cyrus (without domain) Regards, Alex -- Alexander Koch, mailto: [EMAIL PROTECTED] ILK Internet GmbH, Akademiestrasse 25 - 27, D-76133 Karlsruhe Tel: +49 (0) 721 9100 0, Fax: +49 (0) 721 9100 191 http://www.ilk.net Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Invalid Mailbox Name @
Hi, When we create a mailbox with the @ sign in the name the server returns Invalid Mailbox Name. Is there a way to resolve this in the configuration or compilation options? Regards Joon Radley Radley Network Technologies CC Cell: +27 (0)83 368 8557 Fax: +27 (0)12 998 4346 E-mail: [EMAIL PROTECTED] --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Invalid mailbox name?
trichard [EMAIL PROTECTED] 02/18/04 01:36am Thanks Mike...Results inline below: Mike O'Rourke wrote: try this: imtest -u test -a test -t '' localhost (after the -t those are 2 single-quotes.) At the end of a lot of diagnostics, it should ask for your password. type it in and hit ENTER. If it says Authenticated, you are connected and in; [EMAIL PROTECTED] root]# imtest -u test -a test -t '' localhost S: * OK post.domain.com Cyrus IMAP4 v2.2.3 server ready C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed C: S01 STARTTLS S: S01 OK Begin TLS negotiation now verify error:num=18:self signed certificate TLS connection established: TLSv1 with cipher DES-CBC3-SHA (168/168 bits) C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed Authentication failed. generic failure Security strength factor: 168 Appears to be a user not found error? Thanks VERY much for your help Mike. I really appreciate your assistance. :) -trichard Hi again, trichard, Preliminary note: first try below with things as-is. Then try adding the following line to /etc/imapd.conf: loginrealms: post.mydomain.com mydomain.com restarting the cyrus master process after changing /etc/imapd.conf. /Preliminary Note: First, try: imtest -u [EMAIL PROTECTED] -a [EMAIL PROTECTED] -t '' localhost and try the imap command A01 select inbox If I understand your setup correctly, this should fail. Then try imtest -u [EMAIL PROTECTED] -a test -t '' localhost and then try the imap command above. I suspect that this should succeed (not sure whether it would be before or after modifying /etc/imapd.conf!). Mike. --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Invalid mailbox name?
dGVzdEBzYXBlcmVvbi5jb20AdGVzdAB0ZXN0MTIz S: A01 NO user not found Authentication failed. generic failure Security strength factor: 168 == [EMAIL PROTECTED] etc]# imtest -u [EMAIL PROTECTED] -a [EMAIL PROTECTED] -t '' -m plain localhost S: * OK post.domain.com Cyrus IMAP4 v2.2.3 server ready C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed C: S01 STARTTLS S: S01 OK Begin TLS negotiation now verify error:num=18:self signed certificate TLS connection established: TLSv1 with cipher DES-CBC3-SHA (168/168 bits) C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed Please enter your password: C: A01 AUTHENTICATE PLAIN dGVzdEBzYXBlcmVvbi5jb20AdGVzdEBzYXBlcmVvbi5jb20AdGVzdDEyMw== S: A01 OK Success (tls protection) Authenticated. Security strength factor: 168 A01 select inbox A01 NO Invalid mailbox name == So the last one here worked...sort of. I am getting the same error that I am in the email client (i.e. Invalid mailbox name). It's odd because: [EMAIL PROTECTED] etc]# ls -latr /var/spool/imap/user/test total 20 -rw---1 cyrusmail 76 Feb 17 09:16 cyrus.index -rw---1 cyrusmail4 Feb 17 09:16 cyrus.cache drwx--3 cyrusmail 4096 Feb 17 09:16 .. -rw---1 cyrusmail 159 Feb 17 09:16 cyrus.header drwx--2 cyrusmail 4096 Feb 17 10:15 . [EMAIL PROTECTED] etc]# sasldblistusers2 [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword NOTE: This does bring up an interesting question though: I created the cyrus user as follows: saslpasswd2 -c -u post.mydomain.com cyrus A sasldblistusers2 shows: [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword NOTE: The user test in this case would be indicative of a normal mail user. Cyrus of course is for administration purposes. Does this look right? I am concerned that including the hostname post in the realm for the cyrus user and NOT including it in the realm for the test user will cause problems when creating mailboxes, etc. Should the administrator for cyrus (i.e. user cyrus) by in the same realm as the users or hostname.realm? Thanks again for all the help...I am supposed to complete this project today and am doing everything I can to figure this out in between your posts. Thanks!!! -trichard --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Invalid mailbox name?
Hi Mike, --snip!-- [EMAIL PROTECTED] etc]# imtest -u [EMAIL PROTECTED] -a [EMAIL PROTECTED] -t '' -m plain localhost S: * OK post.domain.com Cyrus IMAP4 v2.2.3 server ready C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed C: S01 STARTTLS S: S01 OK Begin TLS negotiation now verify error:num=18:self signed certificate TLS connection established: TLSv1 with cipher DES-CBC3-SHA (168/168 bits) C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed Please enter your password: C: A01 AUTHENTICATE PLAIN dGVzdEBzYXBlcmVvbi5jb20AdGVzdEBzYXBlcmVvbi5jb20AdGVzdDEyMw== S: A01 OK Success (tls protection) Authenticated. Security strength factor: 168 A01 select inbox A01 NO Invalid mailbox name == So the last one here worked...sort of. I am getting the same error that I am in the email client (i.e. Invalid mailbox name). It's odd because: [EMAIL PROTECTED] etc]# ls -latr /var/spool/imap/user/test total 20 -rw---1 cyrusmail 76 Feb 17 09:16 cyrus.index -rw---1 cyrusmail4 Feb 17 09:16 cyrus.cache drwx--3 cyrusmail 4096 Feb 17 09:16 .. -rw---1 cyrusmail 159 Feb 17 09:16 cyrus.header drwx--2 cyrusmail 4096 Feb 17 10:15 . [EMAIL PROTECTED] etc]# sasldblistusers2 [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword NOTE: This does bring up an interesting question though: I created the cyrus user as follows: saslpasswd2 -c -u post.mydomain.com cyrus A sasldblistusers2 shows: [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword NOTE: The user test in this case would be indicative of a normal mail user. Cyrus of course is for administration purposes. Does this look right? I am concerned that including the hostname post in the realm for the cyrus user and NOT including it in the realm for the test user will cause problems when creating mailboxes, etc. Should the administrator for cyrus (i.e. user cyrus) by in the same realm as the users or hostname.realm? Thanks again for all the help...I am supposed to complete this project today and am doing everything I can to figure this out in between your posts. Thanks!!! -trichard Hi trichard, I got my -a and -u parameters mixed up. It must have been late when I wrote that one! If you use imtest -u test -a [EMAIL PROTECTED] -m plain -t '' localhost I bet it will let you select your inbox. Is your machine's name post.mydomain.com? Did you create the test user like this?: saslpasswd2 -c -u mydomain.com test If so, create the user without using the -u option, or create it with -u post.mydomain.com. This should let you put a username of test in Outlook Depress (or whatever MUA you are using), as well as using test for both the -u and -a arguments for imtest. Mike. --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Invalid mailbox name?
trichard [EMAIL PROTECTED] 02/18/04 04:32pm --snip-- NOTE: The user test in this case would be indicative of a normal mail user. Cyrus of course is for administration purposes. Does this look right? I am concerned that including the hostname post in the realm for the cyrus user and NOT including it in the realm for the test user will cause problems when creating mailboxes, etc. Should the administrator for cyrus (i.e. user cyrus) by in the same realm as the users or hostname.realm? Thanks again for all the help...I am supposed to complete this project today and am doing everything I can to figure this out in between your posts. Thanks!!! -trichard Sorry, I didn't read to the end. If you run cyrus-imapd without virtual domains, everything from the @ should default to the machine's host name. I have one machine not using virtual domains, and hosts mail for domain2.org, domain1.com, domain(...).com; there are 6 on that machine. _All_ of the users have [EMAIL PROTECTED] in /etc/sasldb2. The users login with just the username part and all of the mailboxes are in the same directory (/var/spool/imap). To create a mailbox in cyradm, you use cm user.mynewmailbox (since you are not using the unixhierarchysep). If your machine hosts mail for mydomain.com, myotherdomain.com and theirdomain.com, any mail sent to [EMAIL PROTECTED] or [EMAIL PROTECTED] or [EMAIL PROTECTED] will be delivered to mynewmailbox (if your MTA passes it along -- there are ways to block incorrect addresses, but we are talking about cyrus here). One caveat, however; and this is somewhat of an error in my previous mail (about omitting the -u option on the saslpasswd2 command); if your machine does not return the fqdn from a hostanme (actually, a gethostname (2)) command (SuSE is one that returns only the local name), you _do_ need to use the -u, and it should be set to the fqdn of the machine. I had spent some time trying to make it so that users would use their e-mail address as their login, but gave up and just used the above method. Now that I am converting the machine for virtual domains and to use LDAP for authentication, all the users will have to change. Oh well ... . Mike. --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Invalid mailbox name?
Mike O'Rourke wrote: I got my -a and -u parameters mixed up. It must have been late when I wrote that one! If you use imtest -u test -a [EMAIL PROTECTED] -m plain -t '' localhost I bet it will let you select your inbox. Woohoo! It works! Thanks Mike!!! Is your machine's name post.mydomain.com? Did you create the test user like this?: saslpasswd2 -c -u mydomain.com test Yes I sure did. That was causing me the problem. When I fixed it then SMTP-AUTH went broken until I remembered to turn off the postfix setting of: #smtpd_sasl_local_domain = $mydomain Now I can authenticate on both sides with just username (no @ or domain required!) The only remaining issue that I can see is that a couple of my IMAP subfolders for the test user are slow or cause disconnects to the IMAP server. INBOX is always fine. SENT seems fine. It is Drafts and Trash that seem to time out occasionally. I have looked at the ACLs but see no problems. I am off to do some searching through the mailing lists for more info or a doc on troubleshooting subfolders. Once again Mike, I *REALLY* appreciate your help with this! You saved the day! :-) -trichard --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Invalid mailbox name?
I feel like I am getting pretty close to having this work. I've been stuck for awhile on this one issue and I cannot find documentation to troubleshoot mailboxes and mail client access properly. I can authenticate to the server using a mail client now. However, when trying to read the inbox it fails with the following message: The current command did not succeed. The mail server responded: Invalid mailbox name. I feel I am missing something minor because the mailbox was created: [EMAIL PROTECTED] test]# pwd /var/spool/imap/user/test [EMAIL PROTECTED] test]# ls -latr total 20 -rw---1 cyrusmail 76 Feb 17 09:16 cyrus.index -rw---1 cyrusmail4 Feb 17 09:16 cyrus.cache drwx--3 cyrusmail 4096 Feb 17 09:16 .. -rw---1 cyrusmail 159 Feb 17 09:16 cyrus.header drwx--2 cyrusmail 4096 Feb 17 10:15 . [EMAIL PROTECTED] test]# cyradm -u cyrus -s post Password: post.mydomain.com lm user.test (\HasNoChildren) post.mydomain.com sasldblistusers2 [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword What am I doing wrong? Maybe some setting in the client perhaps? Thanks, -t --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Invalid mailbox name?
trichard [EMAIL PROTECTED] 02/17/04 10:18pm I feel like I am getting pretty close to having this work. I've been stuck for awhile on this one issue and I cannot find documentation to troubleshoot mailboxes and mail client access properly. I can authenticate to the server using a mail client now. However, when trying to read the inbox it fails with the following message: The current command did not succeed. The mail server responded: Invalid mailbox name. I feel I am missing something minor because the mailbox was created: [EMAIL PROTECTED] test]# pwd /var/spool/imap/user/test [EMAIL PROTECTED] test]# ls -latr total 20 -rw---1 cyrusmail 76 Feb 17 09:16 cyrus.index -rw---1 cyrusmail4 Feb 17 09:16 cyrus.cache drwx--3 cyrusmail 4096 Feb 17 09:16 .. -rw---1 cyrusmail 159 Feb 17 09:16 cyrus.header drwx--2 cyrusmail 4096 Feb 17 10:15 . [EMAIL PROTECTED] test]# cyradm -u cyrus -s post Password: post.mydomain.com lm user.test (\HasNoChildren) post.mydomain.com sasldblistusers2 [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword What am I doing wrong? Maybe some setting in the client perhaps? Thanks, -t Hi t, What is unixhierarchysep set to in /etc/imapd.conf? I assume that you are not using virutal domains. What version of cyrus-imapd are you using? Mike. --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Invalid mailbox name?
trichard [EMAIL PROTECTED] 02/17/04 10:18pm I feel like I am getting pretty close to having this work. I've been stuck for awhile on this one issue and I cannot find documentation to troubleshoot mailboxes and mail client access properly. I can authenticate to the server using a mail client now. However, when trying to read the inbox it fails with the following message: The current command did not succeed. The mail server responded: Invalid mailbox name. I feel I am missing something minor because the mailbox was created: [EMAIL PROTECTED] test]# pwd /var/spool/imap/user/test [EMAIL PROTECTED] test]# ls -latr total 20 -rw---1 cyrusmail 76 Feb 17 09:16 cyrus.index -rw---1 cyrusmail4 Feb 17 09:16 cyrus.cache drwx--3 cyrusmail 4096 Feb 17 09:16 .. -rw---1 cyrusmail 159 Feb 17 09:16 cyrus.header drwx--2 cyrusmail 4096 Feb 17 10:15 . [EMAIL PROTECTED] test]# cyradm -u cyrus -s post Password: post.mydomain.com lm user.test (\HasNoChildren) post.mydomain.com sasldblistusers2 [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword What am I doing wrong? Maybe some setting in the client perhaps? Thanks, -t Hi Mike, Well, I don't have unixhierarchsep in there at all. I assume that is what is causing me grief? Here is my imapd.conf file: configdirectory: /var/imap partition-default: /var/spool/imap admins: cyrus root allowanonymouslogin: no sasl_pwcheck_method: auxprop tls_cert_file: /var/imap/server.pem tls_key_file: /var/imap/server.pem tls_session_timeout: 0 It's my first time setting up cyrus-imapd so I apologize if I missed something obvious. -trichard Hi trichard, try this: imtest -u test -a test -t '' localhost (after the -t those are 2 single-quotes.) At the end of a lot of diagnostics, it should ask for your password. type it in and hit ENTER. If it says Authenticated, you are connected and in; if, on the other hand, it says No Authentication failed, you are not. If you did not authenticate, hit CTRL-D and add -m plain to the command above bofore localhost and try again. If you do authenticate, (there is no prompt, the imapd just waits) type: A01 select inbox This should return characteristics about the inbox. If you are not able to authenticate, put the following line in your /etc/imapd.conf after sasl_pwcheck_method: sasl_auxprop_plugin: sasldb and try again. Let me know what it says. Mike. --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Invalid mailbox name?
Thanks Mike...Results inline below: Mike O'Rourke wrote: try this: imtest -u test -a test -t '' localhost (after the -t those are 2 single-quotes.) At the end of a lot of diagnostics, it should ask for your password. type it in and hit ENTER. If it says Authenticated, you are connected and in; [EMAIL PROTECTED] root]# imtest -u test -a test -t '' localhost S: * OK post.domain.com Cyrus IMAP4 v2.2.3 server ready C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed C: S01 STARTTLS S: S01 OK Begin TLS negotiation now verify error:num=18:self signed certificate TLS connection established: TLSv1 with cipher DES-CBC3-SHA (168/168 bits) C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed Authentication failed. generic failure Security strength factor: 168 on the other hand, it says No Authentication failed, you are not. If you did not authenticate, hit CTRL-D and add -m plain to the command above bofore localhost and try again. [EMAIL PROTECTED] root]# imtest -u test -a test -t '' -m plain localhost S: * OK post.domain.com Cyrus IMAP4 v2.2.3 server ready C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed C: S01 STARTTLS S: S01 OK Begin TLS negotiation now verify error:num=18:self signed certificate TLS connection established: TLSv1 with cipher DES-CBC3-SHA (168/168 bits) C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed Please enter your password: C: A01 AUTHENTICATE PLAIN dGVzdAB0ZXN0AHRlc3QxMjM= S: A01 NO user not found Authentication failed. generic failure Security strength factor: 168 If you are not able to authenticate, put the following line in your /etc/imapd.conf after sasl_pwcheck_method: sasl_auxprop_plugin: sasldb and try again. Let me know what it says. /ETC/IMAPD.CONF - configdirectory: /var/imap partition-default: /var/spool/imap admins: cyrus root allowanonymouslogin: no sasl_pwcheck_method: auxprop sasl_auxprop_plugin: sasldb tls_cert_file: /var/imap/server.pem tls_key_file: /var/imap/server.pem tls_session_timeout: 0 [EMAIL PROTECTED] root]# imtest -u test -a test -t '' localhost S: * OK post.domain.com Cyrus IMAP4 v2.2.3 server ready C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed C: S01 STARTTLS S: S01 OK Begin TLS negotiation now verify error:num=18:self signed certificate TLS connection established: TLSv1 with cipher DES-CBC3-SHA (168/168 bits) C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed Authentication failed. generic failure Security strength factor: 168 [EMAIL PROTECTED] root]# imtest -u test -a test -t '' -m plain localhost S: * OK post.domain.com Cyrus IMAP4 v2.2.3 server ready C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK Completed C: S01 STARTTLS S: S01 OK Begin TLS negotiation now verify error:num=18:self signed certificate TLS connection established: TLSv1 with cipher DES-CBC3-SHA (168/168 bits) C: C01 CAPABILITY S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR S: C01 OK
Re: Invalid mailbox name?
On Wed, 2004-02-18 at 05:18, trichard wrote: I can authenticate to the server using a mail client now. However, when trying to read the inbox it fails with the following message: The current command did not succeed. The mail server responded: Invalid mailbox name. (just a few guesses, really): Perhaps your IMAP prefix in the client isn't set correctly? Most figure it out correctly by themselves, but if you've manually set it it could be incorrect. Also - are you using virtual domains? I don't use them myself, but from list traffic it looks like mailboxes in virtual domains must be named differently. Try using imtest to thrash things out, and only once that works try a normal mail client. Craig Ringer --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html