Re: cyrus-imapd crash, fails to restart
Hi Simon - thanks for the reply. I apologize for being remiss in providing the necessary info; I know better than that. Simon Matter wrote: what version you are running. cyrus-imapd-2.2.12-1.1.fc3 Yes, that's old and possibly includes a buggy cvt_cyrusdb_all. cyrus-imapd really doesn't like disk full problems! I'm gathering that! :-) Do you have backups of the box? I do - but they're 5 weeks old - I backup to my home system, and we just moved. I haven't plugged in my home server and backup system since. If possible, I would like to recover the users mailboxes as currently as possible. If you told us what's still there in your /var/lib/imap/ Okay, first as you suggested below, comment out the calls to cvt_cyrusdb_all in the init script, both in start and stop function. I don't know if that version of cvt_cyrusdb_all handles corrupt db files correct, so it's safe to uncomment it, then do a backup of /var/lib/imap and . ./sieve remove ./db.backup2 ./db.backup2 ./db.backup2/mailboxes.db ./db.backup2/log.17 ./db.backup2/annotations.db remove ./deliver.db ./deliver.db remove ./db.backup1 ./db.backup1 ./db.backup1/mailboxes.db ./db.backup1/log.17 ./db.backup1/annotations.db ./quota remove ./mailboxes.db ./mailboxes.db ./log ./log/shane ./log/shane/14936 skipping a bunch of ./log/shane/ stuff ./socket ./socket/pop3-0.lock ./socket/pop3-1.lock ./socket/imap-1.lock ./socket/imap-0.lock ./socket/imaps-1.lock ./socket/pop3s-1.lock ./socket/idle ./socket/pop3s-0.lock ./socket/sieve-1.lock ./socket/imaps-0.lock ./socket/lmtpunix-0.lock ./socket/lmtp ./proc ./proc/8600 skipping a bunch of ./proc/ stuff ./msg ./rpm ./rpm/cvt_cyrusdb_all.log remove ./tls_sessions.db ./tls_sessions.db ./.viminfo remove ./db/* (not the directory) ./db ./db/__db.003 ./db/skipstamp ./db/__db.005 ./db/__db.002 ./db/log.17 ./db/__db.001 ./db/__db.004 ./user ./user/s ./user/s/shane.seen ./user/s/shane.sub skipping a bunch of ./user/X/ stuff remove ./annotations.db ./annotations.db ./backup ./backup/mboxlist.1.gz ./backup/mboxlist.gz okay, now load a new ./mailboxes.db, then start cyrus and do the reconstruct s to detect newly created mailboxes which are not in you database. Simon 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
Trying to implement Bulletin Boards
Hi All, I am looking at getting the bulletin boards feature of cyrus working. So far, I have been able to create the boards in the admin console, and they are as such: listaclmailbox bb* bb.aptest: plante lrswipcda anyone lrs bb.aptest.events: plante lrswipcda anyone lrs I have purposefully given myself full permissions, and left the anyone as the default. In my imapd.conf (as well as imapd-local.conf), I have the follwoing: postuser: bb sharedprefix: bb I am not sure if both lines are required, but both seemed relevant. I am now trying to modify the sendmail.mc, and run the m4 command to allow the delivery to the mailbox. I have searched the web but have not found anything conclusive as to what I need to add to this file. So far, I have tried adding: MAILER(cyrus) define(`confLOCAL_MAILER',`cyrus') dnl LOCAL_RULE_0 dnl Rbb + $+ @ $=w . $#cyrusbb $: $1 but that did not help. Whenever I try to send to bb+aptest, +aptest, aptest, or +aptest.events I get messages back saying that the mailbox does not exist. Can anyone provide a little guidance?? Thanks, Andre 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: Trying to implement Bulletin Boards
Andre Plante wrote: Hi All, I am looking at getting the bulletin boards feature of cyrus working. So far, I have been able to create the boards in the admin console, and they are as such: listaclmailbox bb* bb.aptest: plante lrswipcda anyone lrs bb.aptest.events: plante lrswipcda anyone lrs I have purposefully given myself full permissions, and left the anyone as the default. In my imapd.conf (as well as imapd-local.conf), I have the follwoing: postuser: bb sharedprefix: bb I am not sure if both lines are required, but both seemed relevant. I am now trying to modify the sendmail.mc, and run the m4 command to allow the delivery to the mailbox. I have searched the web but have not found anything conclusive as to what I need to add to this file. So far, I have tried adding: MAILER(cyrus) define(`confLOCAL_MAILER',`cyrus') dnl LOCAL_RULE_0 dnl Rbb + $+ @ $=w . $#cyrusbb $: $1 but that did not help. Whenever I try to send to bb+aptest, +aptest, aptest, or +aptest.events I get messages back saying that the mailbox does not exist. Can anyone provide a little guidance?? sharedprefix refers to shared user mailboxes. Bulletin boards are usually not user mailboxes and as such are created at the root of the IMAP namespace. The post user is mostly symbolic (but perhaps used by the MTA for authorization?) and can be left undefined so that addressing would be just with the plus notation. Recreate your bulletin board folders as root folders: cm aptest cm aptest.events If you leave post user as bb, then you would address them as: [EMAIL PROTECTED] [EMAIL PROTECTED] If you leave postuser undefined, then you would addres them as: [EMAIL PROTECTED] [EMAIL PROTECTED] The sharedprefix should be left as users. Hope this helps. -- Russell A. Jackson [EMAIL PROTECTED] Network Analyst California State University, Bakersfield smime.p7s Description: S/MIME Cryptographic Signature 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: Trying to implement Bulletin Boards
Thanks for the assistance. It is now working as expected and hoped. For the record, I think my problem is that I was creating the boards as bb.aptest, compared to just aptest. Thanks again! Andre Russell Jackson wrote: Andre Plante wrote: Hi All, I am looking at getting the bulletin boards feature of cyrus working. So far, I have been able to create the boards in the admin console, and they are as such: listaclmailbox bb* bb.aptest: plante lrswipcda anyone lrs bb.aptest.events: plante lrswipcda anyone lrs I have purposefully given myself full permissions, and left the anyone as the default. In my imapd.conf (as well as imapd-local.conf), I have the follwoing: postuser: bb sharedprefix: bb I am not sure if both lines are required, but both seemed relevant. I am now trying to modify the sendmail.mc, and run the m4 command to allow the delivery to the mailbox. I have searched the web but have not found anything conclusive as to what I need to add to this file. So far, I have tried adding: MAILER(cyrus) define(`confLOCAL_MAILER',`cyrus') dnl LOCAL_RULE_0 dnl Rbb + $+ @ $=w . $#cyrusbb $: $1 but that did not help. Whenever I try to send to bb+aptest, +aptest, aptest, or +aptest.events I get messages back saying that the mailbox does not exist. Can anyone provide a little guidance?? sharedprefix refers to shared user mailboxes. Bulletin boards are usually not user mailboxes and as such are created at the root of the IMAP namespace. The post user is mostly symbolic (but perhaps used by the MTA for authorization?) and can be left undefined so that addressing would be just with the plus notation. Recreate your bulletin board folders as root folders: cm aptest cm aptest.events If you leave post user as bb, then you would address them as: [EMAIL PROTECTED] [EMAIL PROTECTED] If you leave postuser undefined, then you would addres them as: [EMAIL PROTECTED] [EMAIL PROTECTED] The sharedprefix should be left as users. Hope this helps. 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 on login is not working in Cyrusimap/OLDAP
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: 1 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
Re: Create on login is not working in Cyrusimap/OLDAP
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: 1 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 Where are the logs from the time when you tried the login, I'm sure Christos will be interested to see it. Simon 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
Re: Create on login is not working in Cyrusimap/OLDAP
Simon Matter wrote: 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: 1 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 Where are the logs from the time when you tried the login, I'm sure Christos will be interested to see it. Simon 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
Re: Create on login is not working in Cyrusimap/OLDAP
Simon Matter wrote: 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: 1 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 Where are the logs from the time when you tried the login, I'm sure Christos will be interested to see it. Simon 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