Re: autocreate_quota: 0

Janos Dohanics <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
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?

-- 
Janos Dohanics
----
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.