Re: autocreate_quota: 0
Patrick Boutilier <[email protected]>
| Newsgroups | gmane.mail.imap.cyrus |
|---|---|
| Message-ID | <[email protected]> |
On 10/22/2017 11:44 AM, Patrick Boutilier wrote: > On 10/16/2017 10:51 AM, Janos Dohanics wrote: >> On Fri, 13 Oct 2017 11:10:58 +1100 >> Nicola Nye <[email protected]> wrote: >> >>> Hi Janos, >>> >>> Your understanding is the same as mine: on successful IMAP or POP >>> authentication, the user's inbox should be created if autocreate_quota >>> is 0 or higher. >>> Is there any error messages showing up in the log? >>> >>> If you set autocreate_post: 1 and send the user some mail, does that >>> create the mailbox successfully? >>> Otherwise my suspicions lie with virtdomains and unixhierarchysep >>> causing the mailbox to be created somewhere you're not expecting. Do a >>> cyradm listmailbox \* to list all the mailboxes in the system and >>> check. Let us know how you go! >>> >>> Cheers, >>> Nicola >> >> Hi Nicola, >> >> Thank you for your reply. >> >> There are no error messages in the log (local6.debug >> -> /var/log/local6.log) when the user logs in: >> >> Oct 15 09:19:49 nixlizard imap[79721]: inittls: Loading hard-coded DH >> parameters >> Oct 15 09:19:49 nixlizard imap[79721]: starttls: TLSv1.2 with cipher >> ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits new) no authentication >> Oct 15 09:19:49 nixlizard imap[79721]: login: localhost [127.0.0.1] >> jdsamba plaintext+TLS User logged in >> SESSIONID=<imap3.floco.com-79721-1508073589-1-9182325052943014029> >> Oct 15 09:19:49 nixlizard imap[79721]: USAGE jdsamba user: 0.020922 >> sys: 0.012228 >> >> Thunderbird says "Mailbox does not exist". >> >> I get more detail when I try imapsync(1): >> >> [...] >> /usr/local/bin/imapsync --host1 newt --host2 localhost --tls1 --tls2 >> --delete2 --user1 jdsamba --password1 MASKED --user2 jdsamba >> --password2 MASKED >> >> [...] >> Host1: state Authenticated >> Host2: state Authenticated >> >> [...] >> Host2: found quota, presented in raw IMAP >> Sending: 5 GETQUOTAROOT INBOX >> Sent 22 bytes >> Read: 5 NO Mailbox does not exist >> ERROR: 5 NO Mailbox does not exist at >> /usr/local/lib/perl5/site_perl/Mail/IMAPClient.pm line 1374. >> >> [...more error messages from imapsync] >> Host2: Quota current storage is 0 bytes. Limit is 0 bytes. So 0 % full >> Host1: found 1 folders. >> Host2: found 0 folders. >> >> [...] >> ++++ Listing 1 errors encountered during the sync ( avoid this listing >> with --noerrorsdump ). >> Err 1/1: Could not create folder [INBOX] from [INBOX]: 12 NO Invalid >> mailbox name >> Exiting with return value 111 >> >> *** >> >> After your reply, I turned on autocreate_post: >> >> autocreate_post: 1 >> >> However, messages sent to the user bounce. When I create the mailbox >> manually, the message is delivered. >> >> I have no virtdomains turned on, and: >> >> unixhierarchysep: no >> >> cyradm listmailbox \* lists only mailboxes I have created manually. >> >> What else should I look into? >> > > > Same behaviour here with a brand new install. I have just been testing > with imap login but nothing gets created. > > localhost> lm \* > localhost> lm > localhost> > > > # telnet <IP> 143 > Trying <IP>... > Connected to <IP>. > Escape character is '^]'. > * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE] <name> > Cyrus IMAP 3.0.4 server ready > . login boutilpj ******* > . OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxten QUOTA > MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN > MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SEARCH=FUZZY SORT > SORT=MODSEQ SORT=DISPLAY SORT=UID THREAD=ORDEREDSUBJECT > THREAD=REFERENCES THREAD=REFS ANNOTATEMORE ANNOTATE-EXPERIMENT-1 > METADATA LIST-EXTENDED LIST-STATUS LIST-MYRIGHTS LIST-METADATA WITHIN > QRESYNC SCAN XLIST XMOVE MOVE SPECIAL-USE CREATE-SPECIAL-USE DIGEST=SHA1 > X-REPLICATION URLAUTH URLAUTH=BINARY LOGINDISABLED COMPRESS=DEFLATE > X-QUOTA=STORAGE X-QUOTA=MESSAGE X-QUOTA=X-ANNOTATION-STORAGE > X-QUOTA=X-NUM-FOLDERS IDLE] User logged in > SESSIONID=<cyrus-18418-1508682910-1-15594977893134214334> > . LIST "" * > . OK Completed (0.000 secs) > . logout > * BYE LOGOUT received > . OK Completed > Connection closed by foreign host. > Well, helps to compile with "--enable-autocreate" :-) Works fine now: Oct 22 16:33:05 bplace-3 cyrus/imap[12613]: autocreateinbox: User boutilpj, INBOX was successfully created Seems like it is off in your FreeBSD package if it is this one: https://www.freshports.org/mail/cyrus-imapd30/ > > > > ---- > 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 > ---- 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
boutilpj.vcf
(text/x-vcard, 286 B)
begin:vcard fn:Patrick Boutilier n:Boutilier;Patrick org:;Nova Scotia Department of Education adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada email;internet:[email protected] title:WAN Communications Specialist tel;work:902-424-6800 tel;fax:902-424-0874 version:2.1 end:vcard