Frontend cannot create sub-level mailbox

Roberto Bartali bartali at unisi.it
Mon Oct 17 04:52:35 EDT 2011


Hi
I try to give you other information about my problem, so perhaps someone
can help me.
My Servers are with Debian squeeze 64bit; I use the packaged version of
sasl (2.1.23) and the last version of Cyrus-imapd (2.4.12, compiled
without evidents problems).
I activate telemetry logs in backend and frontend.
This is the frontend log:
-----------------------------------------------------------------------------
<1318840908<2 namespace
>1318840908>* NAMESPACE (("INBOX." ".")) (("user." ".")) (("" "."))
2 OK Completed
<1318840908<3 COMPRESS DEFLATE
>1318840908>3 OK DEFLATE active
<1318840908<4 ENABLE CONDSTORE
>1318840908>* ENABLED CONDSTORE
4 OK Completed
<1318840908<5 ID ("name" "Thunderbird" "version" "7.0")
>1318840908>* ID ("name" "Cyrus IMAPD" "version" "v2.4.12 63b65d1c
2011-10-04" "vendor" "Project Cyrus" "support-url"
"http://www.cyrusimap.org" "os" "Linux" "os-version" "2.6.32-5-amd64"
"environment" "Built w/Cyrus SASL 2.1.23; Running w/Cyrus SASL 2.1.23;
Built w/Berkeley DB 4.8.30: (April  9, 2010); Running w/Berkeley DB
4.8.30: (April  9, 2010); Built w/OpenSSL 0.9.8o 01 Jun 2010; Running
w/OpenSSL 0.9.8o 01 Jun 2010; Built w/zlib 1.2.3.4; Running w/zlib
1.2.3.4; TCP Wrappers; mmap = shared; lock = fcntl; nonblock = fcntl;
idle = poll")
5 OK Completed
<1318840908<6 xlist "" "%"
>1318840908>* XLIST (\HasNoChildren \Inbox) "." INBOX
6 OK Completed (0.000 secs 2 calls)
<1318840908<7 xlist "" "%.%"
>1318840908>7 OK Completed (0.000 secs)
<1318840908<8 lsub "" "INBOX.*"
>1318840908>8 OK Completed (0.000 secs)
<1318840908<9 lsub "" "user.*"
>1318840908>9 OK Completed (0.000 secs)
<1318840908<10 lsub "" "*"
>1318840908>10 OK Completed (0.000 secs)
<1318840908<11 list "" "INBOX"
>1318840908>* LIST (\HasNoChildren) "." INBOX
11 OK Completed (0.000 secs 2 calls)
<1318840908<12 list "" "INBOX.Trash"
>1318840908>12 OK Completed (0.000 secs)
<1318840908<13 create "INBOX.Trash"
>1318840908>13 NO Invalid mailbox name
<1318840908<14 list "" "INBOX"
>1318840908>* LIST (\HasNoChildren) "." INBOX
14 OK Completed (0.000 secs 2 calls)
<1318840909<15 select "INBOX" (CONDSTORE)
>1318840909>* ENABLED CONDSTORE
* 0 EXISTS
* 0 RECENT
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] Ok
* OK [UIDVALIDITY 1318518595] Ok
* OK [UIDNEXT 1] Ok
* OK [HIGHESTMODSEQ 1] Ok
* OK [URLMECH INTERNAL] Ok
15 OK [READ-WRITE] Completed
<1318840909<16 myrights "INBOX"
>1318840909>* MYRIGHTS INBOX lrswipkxtecda
16 OK Completed
<1318840909<17 getacl "INBOX"
>1318840909>* ACL INBOX testing3 lrswipkxtecda
17 OK Completed
<1318840909<18 getquotaroot "INBOX"
>1318840909>* QUOTAROOT INBOX
18 OK Completed
<1318840909<19 IDLE
>1318840909>+ idling
<1318840943<DONE
>1318840943>19 OK Completed
<1318840943<20 create "INBOX.subfolder"
>1318840943>20 NO Invalid mailbox name
<1318840943<21 list "" "INBOX"
>1318840943>* LIST (\HasNoChildren) "." INBOX
21 OK Completed (0.000 secs 2 calls)
<1318840944<22 IDLE
>1318840944>+ idling
-------------------------------------------------------------------------

This is the log on the backend:
<1318840908<8 Lsub {0+}
 {7+}
INBOX.*
>1318840908>8 OK Completed (0.000 secs)
<1318840908<9 Lsub {0+}
 {6+}
user.*
>1318840908>9 OK Completed (0.000 secs)
<1318840908<10 Lsub {0+}
 {1+}
*
>1318840908>10 OK Completed (0.000 secs)
<1318840909<N01 NOOP
>1318840909>N01 OK Completed
<1318840909<PROXY0 Enable Condstore
>1318840909>* ENABLED CONDSTORE
PROXY0 OK Completed
<1318840909<15 Select {5+}
INBOX
>1318840909>* 0 EXISTS
* 0 RECENT
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] Ok
* OK [UIDVALIDITY 1318518595] Ok
* OK [UIDNEXT 1] Ok
* OK [HIGHESTMODSEQ 1] Ok
* OK [URLMECH INTERNAL] Ok
15 OK [READ-WRITE] Completed
<1318840909<PROXY1 Noop
>1318840909>PROXY1 OK Completed
<1318840909<PROXY2 Noop
>1318840909>PROXY2 OK Completed
<1318840909<18 Getquotaroot {5+}
INBOX
>1318840909>* QUOTAROOT INBOX
18 OK Completed
<1318840909<19 IDLE
>1318840909>+ idling
<1318840943<Done
>1318840943>19 OK Completed
<1318840943<PROXY3 Noop
>1318840943>PROXY3 OK Completed
<1318840943<PROXY4 Noop
>1318840943>PROXY4 OK Completed
<1318840944<22 IDLE
>1318840944>+ idling
=============================================
As you can see it seems that only frontend give the error so probably i
didn't transmit the CREATE command to the backend.
I hope someone can Help me.....
Thank you in advance

Roberto

Il 13/10/2011 12:53, Roberto Bartali ha scritto:
> Hi everyone
> I'm trying to implementing a Cyrus Murder for my University but I'm
> encountering some problems.
> I have two frontends with postfix, one is the mupdate master and the
> other is the mupdate slave.
> User authenticate to the frontend through an external ldap.
> They works with three backends.
>
> All seems okay, i can authenticate and read may mailbox through the
> frontend using my client (Mozilla Thunderbird 7) but when i create a new
> sub-level mailbox i get this error in frontend imapd.log:
> smtp01 imaps[17946]: IOERROR: Mailbox name too long (user.testing2.prova)
>
> I noticed that it's not possibile to create the Trash mailbox too:
> smtp01 imaps[17951]: IOERROR: Mailbox name too long (user.testing2.Trash)
>
> If I bypass the frontend and connect directly to the backend the problem
> doesn't exists.
> It seems an authentication problem between frontend and backend, but all
> the test I performed (imtest, lmtptest, ctl_mboxlist) are Ok.
>
> Here are my conf files:
>
> Backend imapd.conf:
>
> configdirectory: /var/cyrus
> partition-default: /var/spool/cyrus
> admins: cyrus
> sasl_pwcheck_method: saslauthd auxprop
> sasl_mech_list: plain login digest-md5 cram-md5
> proxyservers: murder
> allowplaintext: yes
>
> mupdate_server: smtp01
> mupdate_port: 2004
> mupdate_authname: backend03
> mupdate_username: backend03
> mupdate_password: password
>
> proxy_authname: murder
> proxy_password: murder
>
> sasl_minimum_layer: 0
>
> tls_cert_file: /var/cyrus/server.pem
> tls_key_file: /var/cyrus/server.pem
>
> --------------------------------------------------------------------------
>
> Backend cyrus.conf
>
> START {
> #  auth         cmd="/usr/local/bin/ksrvtgt -l 3600 imap @SHORTHOST@
> ANDREW.CMU.EDU /imap/conf/srvtab"
>
>   recover       cmd="ctl_cyrusdb -r"
>   mupdatepush   cmd="ctl_mboxlist -m"
> }
>
> # UNIX sockets start with a slash and are put into /var/imap/sockets
> SERVICES {
>   # add or remove based on preferences
>   imap          cmd="imapd" listen="imap" prefork=5
>   imaps         cmd="imapd -s" listen="imaps" prefork=1
>  # pop3         cmd="pop3d" listen="pop3" prefork=0
>  # pop3s                cmd="pop3d -s" listen="pop3s" prefork=0
>  # kpop          cmd="pop3d -k" listen="kpop" prefork=0
>  # sieve                cmd="timsieved" listen="sieve" prefork=0
>
>   # fud
>   fud           cmd="fud" listen="fud" prefork=1 proto="udp"
>   notifyd       cmd="notifyd" listen="/var/cyrus/socket/notifyd"
> proto="udp" prefork=1
>
>   # at least one LMTP is required for delivery
>   lmtp          cmd="lmtpd" listen="lmtp" prefork=2
>   lmtpunix      cmd="lmtpd" listen="/var/cyrus/socket/lmtp" prefork=0
>
>   # ptloading
> #  ptloader     cmd="ptloader" listen="/var/cyrus/ptclient/sock" prefork=1
> }
>
> EVENTS {
>   # this is required
>   checkpoint    cmd="ctl_cyrusdb -c" period=5
>
>   # this is only necessary if using duplicate delivery suppression
>   delprune      cmd="ctl_deliver -E 3" at=0400
>
>   # this is only necessary if caching TLS sessions
>   tlsprune      cmd="tls_prune" at=0400
>
> #  reauth       cmd="/usr/local/bin/ksrvtgt -l 3600 imap @SHORTHOST@
> ANDREW.CMU.EDU /imap/conf/srvtab"  period=30
>
> =========================================================================
> Frontend imapd.conf
>
> configdirectory: /cyrus/conf
> partition-default: /tmp
>
> admins: backend01 backend02 backend03
>
> lmtpsocket: /cyrus/conf/socket/lmtp
>
> allowplaintext: yes
> tls_cert_file: /cyrus/server.pem
> tls_key_file: /cyrus/server.pem
>
> proxy_authname: murder
> proxy_password: murder
> allowwapop: no
> allowallsubscribe: yes
> allowanonymouslogin: no
>
> sasl_pwcheck_method: saslauthd auxprop
> sasl_mech_list: PLAIN login DIGEST-MD5 CRAM-MD5
> --------------------------------------------------------------------------
> Frontend cyrus.conf
>
> START {
> #  auth         cmd="/usr/local/bin/ksrvtgt -l 3600 imap @SHORTHOST@
> ANDREW.CMU.EDU /cyrus/conf/sr$
>
>   mboxlist      cmd="ctl_cyrusdb -r"
> }
>
> # UNIX sockets start with a slash and are put into /var/imap/sockets
> SERVICES {
>   # mupdate database service - must prefork atleast 1
>   mupdate       cmd="/usr/cyrus/bin/mupdate -m" listen=2004 prefork=1
>
>   # add or remove based on preferences
>   imap          cmd="proxyd" listen="imap" prefork=5
>   imaps         cmd="proxyd -s" listen="imaps" prefork=1
> #  pop3         cmd="pop3d" listen="pop3" prefork=0
> #  pop3s                cmd="pop3d -s" listen="pop3s" prefork=0
> #  kpop          cmd="pop3d -k" listen="kpop" prefork=0
> #  sieve         cmd="timsieved" listen="sieve" prefork=0
>
>   # fud
>   fud           cmd="fud" listen="fud" prefork=1 proto="udp"
>
>   # relay mail correctly
>   lmtp          cmd="lmtpd" listen="lmtp" prefork=0
>   lmtpunix      cmd="lmtpproxyd" listen="/usr/cyrus/bin/lmtpproxy" prefork=1
>
>   # ptloading
> #  ptloader      cmd="ptloader" listen="/cyrus/conf/ptclient/ptsock"
> prefork=1
> }
>
> EVENTS {
>   # this is required
>   checkpoint    cmd="ctl_cyrusdb -c" period=5
>
> #  reauth       cmd="/usr/local/bin/ksrvtgt -l 3600 imap @SHORTHOST@
> ANDREW.CMU.EDU /cyrus/conf/sr$
> }
>
> ===================
> Someone can help me?
> Any help will be very very appreciated!!!!
> Many thanks in advance
>
> Roberto
>

-- 
*Roberto Bartali*
Servizio reti, sistemi e sicurezza informatica
Via Bandini, 25
53100 - SIENA
E-mail: bartali at unisi.it <mailto:bartali at unisi.it>
Tel. +39 0577 23(2189)
Linux User no. #542525


More information about the Info-cyrus mailing list