Create on login is not working in Cyrusimap/OLDAP

Bipindas K bipindas.k at ditro.com
Wed Feb 21 23:10:19 EST 2007


Christos Soulios wrote:
> Hello there,
>  could you also change your syslog settings so that you log debug info =

> too? If you have enabled autocreate you should see something like the =

> following:
>
> autocreateinbox: autocreate inbox for user <username> was called
>
> Cheers,
> Christos
>
> Bipindas K wrote:
>> Simon Matter wrote:
>>>> Simon Matter wrote:
>>>>    =

>>>>>> Hi All,
>>>>>> I had setup a squirrelmail/oldap server with autocreate patch. The
>>>>>> problem is when a valid user login,cyrus will not create
>>>>>>
>>>>>> its inbox automatically. But the createonpost is working =

>>>>>> successfully.
>>>>>> I
>>>>>> am pasting my imapd.conf file below.
>>>>>>
>>>>>>
>>>>>> --------------------------------------------------
>>>>>> autocreatequota: 10000
>>>>>> createonpost: yes
>>>>>>
>>>>>>         =

>>>>> Remove the line below and try again. I don't think creating "Inbox"
>>>>> makes
>>>>> sense, INBOX is a special folder and is always created, what you =

>>>>> do is
>>>>> creating a subfolder Inbox, like INBOX.Inbox.
>>>>>
>>>>>
>>>>>      =

>>>>>> autocreateinboxfolders: Inbox|Trash|Sent|Drafts
>>>>>> --------------------------------------------------
>>>>>>
>>>>>> When a valid user login the squirrelmail showing following errors
>>>>>>
>>>>>>         =

>>>>> The problem I know with that configuration is that, at least when =

>>>>> using
>>>>> pam, openldap users are not case sensitiv. That's why I added a new
>>>>> module
>>>>> to the pam stack which makes sure the user is lowercase. And in my =

>>>>> case
>>>>> I
>>>>> also set "lmtp_downcase_rcpt: yes" in imapd.conf to apply the same =

>>>>> rule
>>>>> from the MTA side.
>>>>>
>>>>> Simon
>>>>>
>>>>>
>>>>>      =

>>>>>> (1).The following error show on left panel
>>>>>> --------------------------------------------------------------------=
--------------------------------------- =

>>>>>>
>>>>>> Warning: substr_count(): Empty substring. in
>>>>>> /usr/share/squirrelmail/functions/imap_mailbox.php on line 394
>>>>>>
>>>>>> Warning: substr_count(): Empty substring. in
>>>>>> /usr/share/squirrelmail/src/left_main.php on line 932
>>>>>> --------------------------------------------------------------------=
---------------------------------------- =

>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> (2).The following error show on right panel
>>>>>> -------------------------------------
>>>>>> ERROR : Could not complete request.
>>>>>> Query: SELECT "INBOX"
>>>>>> Reason Given: Mailbox does not exist
>>>>>> -------------------------------------
>>>>>>
>>>>>> Please tell me the missing thing.
>>>>>> Kindly help
>>>>>>
>>>>>> BipinDas
>>>>>> -- =

>>>>>> ----
>>>>>> 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
>>>>>>
>>>>>>         =

>>>>>
>>>>>       =

>>>> Hi simon,
>>>> I had triend again according to your instructions,but fails. The same
>>>> error throwing.
>>>>     =

>>>
>>> So what is created on the server when you try to login or what do =

>>> the logs
>>> show?
>>>
>>> Simon
>>>
>>>
>>>   =

>> Hi simon,
>> The *syslog* says the following when the user "tina" try to login,
>> ------------------------------------------------------------------------=
----------- =

>>
>> Feb 19 11:34:46 cyrus cyrus/master[21711]: about to exec =

>> /usr/lib/cyrus/bin/imapd
>> Feb 19 11:34:46 cyrus cyrus/imap[21711]: executed
>> Feb 19 11:34:46 cyrus cyrus/imapd[21711]: accepted connection
>> Feb 19 11:34:46 cyrus cyrus/imapd[21711]: login: [xxx.xx.xxx.xx] tina =

>> plaintext
>> Feb 19 11:34:47 cyrus cyrus/imapd[21711]: accepted connection
>> Feb 19 11:34:47 cyrus cyrus/imapd[21711]: login: [xxx.xx.xxx.xx] tina =

>> plaintext
>> Feb 19 11:34:47 cyrus cyrus/imapd[21711]: accepted connection
>> Feb 19 11:34:47 cyrus cyrus/imapd[21711]: login: [xxx.xx.xxx.xx] tina =

>> plaintext
>> ------------------------------------------------------------------------=
------------ =

>>
>>
>> The *imapd.log* says nothing in this mysterious situation.
>>
>>
>>
>>
>> -- =

>>
>>
>> ------------------------------------------------------------------------
>>
>> ----
>> 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
>
>
Hi All,
I had created a new user called sujith in ldap. And try to login through =

squirrel, but the same error exists,
-------------------------------------
ERROR : Could not complete request.
Query: SELECT "INBOX"
Reason Given: Mailbox does not exist
-------------------------------------
 =

 And I had send an email to this newly created user, at that time the =

inbox was created and mail delivered to that inbox. Here is the log,
---------------------------------------------------------------------------=
---------------------------------------------------------------------
Feb 22 05:49:08 cyrus master[6109]: about to exec /usr/cyrus/bin/lmtpd
Feb 22 05:49:08 cyrus lmtpunix[6109]: executed
Feb 22 05:49:08 cyrus lmtpunix[6109]: accepted connection
Feb 22 05:49:08 cyrus lmtpunix[6109]: lmtp connection preauth'd as postman
Feb 22 05:49:08 cyrus lmtpunix[6109]: autocreateinbox: autocreate inbox =

for user sujith was called
Feb 22 05:49:08 cyrus lmtpunix[6109]: autocreateinbox: User sujith, =

INBOX was successfully created in partition default
Feb 22 05:49:08 cyrus lmtpunix[6109]: IOERROR: fstating sieve script =

/var/spool/sieve/s/sujith/defaultbc: No such file or  directory
Feb 22 05:49:08 cyrus lmtpunix[6109]: duplicate_check: =

<1369.xxx.xxx.xx.xx.1172082621.squirrel at .xxx.xxx.xx.xx> user.sujith    0
Feb 22 05:49:08 cyrus lmtpunix[6109]: mystore: starting txn 2147484227
Feb 22 05:49:08 cyrus lmtpunix[6109]: mystore: committing txn 2147484227
Feb 22 05:49:08 cyrus lmtpunix[6109]: duplicate_mark: =

<1369..xxx.xxx.xx.xx.1172082621.squirrel at .xxx.xxx.xx.xx> user.sujith     =

1172119748 1
---------------------------------------------------------------------------=
--------------------------------------------------------------------------

According to my little knowledge, what i understand is *"create on"* =

post is working, but *"create on login"* is not working. Please help.
-- =

-------------- next part --------------
Skipped content of type multipart/related


More information about the Info-cyrus mailing list