Re: Mailbox does not exist question

2013-01-26 Thread Clement Hermann (nodens)
Le 25/01/2013 21:40, Charles Bradshaw a écrit :
 Andy

 We're nearly there, phew..

 Yes I want to use virtual domains.
 Yes I have virtdomains: userid in /etc/imapd.conf

 OK, so I understand why no imap INBOX, but sendmail and cyrusv2 are therefore
 delivering mail to the wrong mailbox, that is to user.test NOT 
 user.test@mydomain

 I have sendmail.mc containing:

 define(`confLOCAL_MAILER', `cyrusv2')dnl
 define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl
 MAILER(cyrusv2)dnl

 and mailertable containing:
 mydomain  cyrusv2:/var/lib/imap/socket/lmtp

 Obviously the mailertable entry is wrong?

 Or maybe I need something else to stop sendmail/cyrusv2 stripping mydomain
 from email sent to test@mydomain ?

Take a look at the documentation, the sendmail configuration for virtual
domain is explained. Here :
http://cyrusimap.web.cmu.edu/docs/cyrus-imapd/2.3.17/install-virtdomains.php
(search configuring sendmail).


-- 
Clement Hermann (nodens)
- L'air pur ? c'est pas en RL, ça ? c'est pas hors charte ?
Jean in L'Histoire des Pingouins, http://tnemeth.free.fr/fmbl/linuxsf/

Vous trouverez ma clef publique sur le serveur public pgp.mit.edu.
Please find my public key on the public keyserver pgp.mit.edu.


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


Re: Mailbox does not exist question

2013-01-25 Thread Charles Bradshaw
Andrew

Just a thought, should the mailbox name be 'user.test@mydomain' instead of
'user.test'?

Here is a dump of /var/lib/imap/mailboxes.db
# hexdump -c /var/lib/imap/mailboxes.db
000 241 002 213  \r   s   k   i   p   l   i   s   t   f   i   l
010   e  \0  \0  \0  \0  \0  \0 001  \0  \0  \0 002  \0  \0  \0 024
020  \0  \0  \0 001  \0  \0  \0 001  \0  \0  \0 320   Q 001   4 312
030  \0  \0 001 001  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0 220
040  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
080  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0 377 377 377 377
090  \0  \0  \0 001  \0  \0  \0  \t   u   s   e   r   .   t   e   s
0a0   t  \0  \0  \0  \0  \0  \0 035   0   d   e   f   a   u   l
0b0   t   t   e   s   t  \t   l   r   s   w   i   p   k   x   t
0c0   e   c   d   a  \t  \0  \0  \0  \0  \0  \0  \0 377 377 377 377
0d0

I see a \tuser.test is the tab correct?

Also curiously cryadm cannot delete user.test giving Permission denied:

# cyradm -u cyrus localhost
Password: 
localhost lm
user.brad (\HasNoChildren)  
localhost dm user.brad
deletemailbox: Permission denied
localhost quit

Something fishy here.

Thanks for your help, Charles Bradshaw

On: Thu, 24 Jan 2013 13:11:02 -0800 (PST), Andrew Morgan wrote:

 On Thu, 24 Jan 2013, Charles Bradshaw wrote:
 
 
  On: Thu, 24 Jan 2013 12:37:18 -0800 (PST), Andy wrote:
 
  On Thu, 24 Jan 2013, Charles Bradshaw wrote:
 
  Output from cyradm:
 
  $ cyradm --user cyrus localhost
  Password:
  localhost lm *
  user.test (\HasNoChildren)
  localhost
 
  Perhaps the user does not permission to see the mailbox?  What does
  lam user.test in cyradm report?
 
 Andy
 
  # cyradm -u cyrus localhost
  Password:
  localhost lam user.test
  test lrswipkxtecda
  localhost
 
 Okay, can we confirm that you are connecting as the user test? 
  Check your syslog for a message similar to:
 
 imap[30372]: login: cyrus-fe3.onid.oregonstate.edu [128.193.4.145] 
 test PLAIN User logged in
 
 Perhaps we have a problem with virtualdomains.
 
   Andy
--- End of Original Message ---

Andy
Here is a complete /var/log/maillog for a session.

Jan 24 21:16:06 dell2600 imap[4844]: accepted connection
Jan 24 21:16:06 dell2600 master[5029]: about to exec /usr/lib/cyrus-imapd/imapd
Jan 24 21:16:06 dell2600 imap[5029]: executed
Jan 24 21:16:36 dell2600 imap[4844]: fetching user_deny.db entry for
'test@mydomain'
Jan 24 21:16:36 dell2600 imap[4844]: login: localhost [::1] test@mydomain
plaintext User logged in
SESSIONID=dell2600.bradcan.homelinux.com-4844-1359062166-1
Jan 24 21:16:36 dell2600 imap[4844]: fetching user_deny.db entry for
'test@mydomain'
Jan 24 21:16:51 dell2600 imap[4844]: fetching user_deny.db entry for
'test@mydomain'
Jan 24 21:16:59 dell2600 imap[4844]: USAGE test@mydomain user: 0.009998 sys:
0.009998
Jan 24 21:18:51 dell2600 master[4485]: process 4844 exited, status 0
Jan 24 21:19:06 dell2600 master[5036]: about to exec
/usr/lib/cyrus-imapd/ctl_cyrusdb
Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: checkpointing cyrus databases
Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: archiving database file:
/var/lib/imap/mailboxes.db
Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: archiving database file:
/var/lib/imap/annotations.db
Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: done checkpointing cyrus databases
Jan 24 21:19:06 dell2600 master[4485]: process 5036 exited, status 0

Also the telemetry log from /var/lib/imap/log/test@mydomain (I figured that I
need to name the directory user@realm)

1359062196a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte
QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
COMPRESS=DEFLATE IDLE] User logged in
SESSIONID=dell2600.bradcan.homelinux.com-4844-1359062166-1
1359062211a2 LIST  *
1359062211a2 OK Completed (0.000 secs)
1359062219a3 LOGOUT
1359062219* BYE LOGOUT received
a3 OK Completed

Charles Bradshaw

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


Re: Mailbox does not exist question

2013-01-25 Thread Patrick Boutilier

On 01/25/2013 07:17 AM, Charles Bradshaw wrote:

Andrew

Just a thought, should the mailbox name be 'user.test@mydomain' instead of
'user.test'?

Here is a dump of /var/lib/imap/mailboxes.db
# hexdump -c /var/lib/imap/mailboxes.db
000 241 002 213  \r   s   k   i   p   l   i   s   t   f   i   l
010   e  \0  \0  \0  \0  \0  \0 001  \0  \0  \0 002  \0  \0  \0 024
020  \0  \0  \0 001  \0  \0  \0 001  \0  \0  \0 320   Q 001   4 312
030  \0  \0 001 001  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0 220
040  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
080  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0 377 377 377 377
090  \0  \0  \0 001  \0  \0  \0  \t   u   s   e   r   .   t   e   s
0a0   t  \0  \0  \0  \0  \0  \0 035   0   d   e   f   a   u   l
0b0   t   t   e   s   t  \t   l   r   s   w   i   p   k   x   t
0c0   e   c   d   a  \t  \0  \0  \0  \0  \0  \0  \0 377 377 377 377
0d0

I see a \tuser.test is the tab correct?

Also curiously cryadm cannot delete user.test giving Permission denied:

# cyradm -u cyrus localhost
Password:
localhost lm
user.brad (\HasNoChildren)
localhost dm user.brad
deletemailbox: Permission denied
localhost quit

Something fishy here.




You have to give the cyrus user d rights to delete a mailbox. I use 
something like this from cyrusadm:


sam user.test cyrus lrswipdca



snip
attachment: boutilpj.vcf
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

Re: Mailbox does not exist question

2013-01-25 Thread Andrew Morgan
Yes, the mailbox should be named user.test@mydomain, assuming you actually 
want to use virtual domains.  Do you have virtdomains set in imapd.conf?

Andy

On Fri, 25 Jan 2013, Charles Bradshaw wrote:

 Andrew

 Just a thought, should the mailbox name be 'user.test@mydomain' instead of
 'user.test'?

 Here is a dump of /var/lib/imap/mailboxes.db
 # hexdump -c /var/lib/imap/mailboxes.db
 000 241 002 213  \r   s   k   i   p   l   i   s   t   f   i   l
 010   e  \0  \0  \0  \0  \0  \0 001  \0  \0  \0 002  \0  \0  \0 024
 020  \0  \0  \0 001  \0  \0  \0 001  \0  \0  \0 320   Q 001   4 312
 030  \0  \0 001 001  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0 220
 040  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
 *
 080  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0 377 377 377 377
 090  \0  \0  \0 001  \0  \0  \0  \t   u   s   e   r   .   t   e   s
 0a0   t  \0  \0  \0  \0  \0  \0 035   0   d   e   f   a   u   l
 0b0   t   t   e   s   t  \t   l   r   s   w   i   p   k   x   t
 0c0   e   c   d   a  \t  \0  \0  \0  \0  \0  \0  \0 377 377 377 377
 0d0

 I see a \tuser.test is the tab correct?

 Also curiously cryadm cannot delete user.test giving Permission denied:

 # cyradm -u cyrus localhost
 Password:
 localhost lm
 user.brad (\HasNoChildren)
 localhost dm user.brad
 deletemailbox: Permission denied
 localhost quit

 Something fishy here.

 Thanks for your help, Charles Bradshaw

 On: Thu, 24 Jan 2013 13:11:02 -0800 (PST), Andrew Morgan wrote:

 On Thu, 24 Jan 2013, Charles Bradshaw wrote:


 On: Thu, 24 Jan 2013 12:37:18 -0800 (PST), Andy wrote:

 On Thu, 24 Jan 2013, Charles Bradshaw wrote:

 Output from cyradm:

 $ cyradm --user cyrus localhost
 Password:
 localhost lm *
 user.test (\HasNoChildren)
 localhost

 Perhaps the user does not permission to see the mailbox?  What does
 lam user.test in cyradm report?

Andy

 # cyradm -u cyrus localhost
 Password:
 localhost lam user.test
 test lrswipkxtecda
 localhost

 Okay, can we confirm that you are connecting as the user test?
  Check your syslog for a message similar to:

 imap[30372]: login: cyrus-fe3.onid.oregonstate.edu [128.193.4.145]
 test PLAIN User logged in

 Perhaps we have a problem with virtualdomains.

  Andy
 --- End of Original Message ---

 Andy
 Here is a complete /var/log/maillog for a session.

 Jan 24 21:16:06 dell2600 imap[4844]: accepted connection
 Jan 24 21:16:06 dell2600 master[5029]: about to exec 
 /usr/lib/cyrus-imapd/imapd
 Jan 24 21:16:06 dell2600 imap[5029]: executed
 Jan 24 21:16:36 dell2600 imap[4844]: fetching user_deny.db entry for
 'test@mydomain'
 Jan 24 21:16:36 dell2600 imap[4844]: login: localhost [::1] test@mydomain
 plaintext User logged in
 SESSIONID=dell2600.bradcan.homelinux.com-4844-1359062166-1
 Jan 24 21:16:36 dell2600 imap[4844]: fetching user_deny.db entry for
 'test@mydomain'
 Jan 24 21:16:51 dell2600 imap[4844]: fetching user_deny.db entry for
 'test@mydomain'
 Jan 24 21:16:59 dell2600 imap[4844]: USAGE test@mydomain user: 0.009998 sys:
 0.009998
 Jan 24 21:18:51 dell2600 master[4485]: process 4844 exited, status 0
 Jan 24 21:19:06 dell2600 master[5036]: about to exec
 /usr/lib/cyrus-imapd/ctl_cyrusdb
 Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: checkpointing cyrus databases
 Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: archiving database file:
 /var/lib/imap/mailboxes.db
 Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: archiving database file:
 /var/lib/imap/annotations.db
 Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: done checkpointing cyrus databases
 Jan 24 21:19:06 dell2600 master[4485]: process 5036 exited, status 0

 Also the telemetry log from /var/lib/imap/log/test@mydomain (I figured that I
 need to name the directory user@realm)

 1359062196a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte
 QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
 MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
 THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
 QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
 COMPRESS=DEFLATE IDLE] User logged in
 SESSIONID=dell2600.bradcan.homelinux.com-4844-1359062166-1
 1359062211a2 LIST  *
 1359062211a2 OK Completed (0.000 secs)
 1359062219a3 LOGOUT
 1359062219* BYE LOGOUT received
 a3 OK Completed

 Charles Bradshaw


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


Re: Mailbox does not exist question

2013-01-25 Thread Charles Bradshaw
Andy

We're nearly there, phew..

Yes I want to use virtual domains.
Yes I have virtdomains: userid in /etc/imapd.conf

OK, so I understand why no imap INBOX, but sendmail and cyrusv2 are therefore
delivering mail to the wrong mailbox, that is to user.test NOT 
user.test@mydomain

I have sendmail.mc containing:

define(`confLOCAL_MAILER', `cyrusv2')dnl
define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl
MAILER(cyrusv2)dnl

and mailertable containing:
mydomain  cyrusv2:/var/lib/imap/socket/lmtp

Obviously the mailertable entry is wrong?

Or maybe I need something else to stop sendmail/cyrusv2 stripping mydomain
from email sent to test@mydomain ?

Thanks for your patients with this old hack, Charles Bradshaw

On: Fri, 25 Jan 2013 12:04:15 -0800 (PST), Andrew Morgan wrote:

 Yes, the mailbox should be named user.test@mydomain, assuming you 
 actually want to use virtual domains.  Do you have virtdomains set 
 in imapd.conf?
 
   Andy
 
 On Fri, 25 Jan 2013, Charles Bradshaw wrote:
 
  Andrew
 
  Just a thought, should the mailbox name be 'user.test@mydomain' instead of
  'user.test'?
 
  Here is a dump of /var/lib/imap/mailboxes.db
  # hexdump -c /var/lib/imap/mailboxes.db
  000 241 002 213  \r   s   k   i   p   l   i   s   t   f   i   l
  010   e  \0  \0  \0  \0  \0  \0 001  \0  \0  \0 002  \0  \0  \0 024
  020  \0  \0  \0 001  \0  \0  \0 001  \0  \0  \0 320   Q 001   4 312
  030  \0  \0 001 001  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0 220
  040  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
  *
  080  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0 377 377 377 377
  090  \0  \0  \0 001  \0  \0  \0  \t   u   s   e   r   .   t   e   s
  0a0   t  \0  \0  \0  \0  \0  \0 035   0   d   e   f   a   u   l
  0b0   t   t   e   s   t  \t   l   r   s   w   i   p   k   x   t
  0c0   e   c   d   a  \t  \0  \0  \0  \0  \0  \0  \0 377 377 377 377
  0d0
 
  I see a \tuser.test is the tab correct?
 
  Also curiously cryadm cannot delete user.test giving Permission denied:
 
  # cyradm -u cyrus localhost
  Password:
  localhost lm
  user.brad (\HasNoChildren)
  localhost dm user.brad
  deletemailbox: Permission denied
  localhost quit
 
  Something fishy here.
 
  Thanks for your help, Charles Bradshaw
 
  On: Thu, 24 Jan 2013 13:11:02 -0800 (PST), Andrew Morgan wrote:
 
  On Thu, 24 Jan 2013, Charles Bradshaw wrote:
 
 
  On: Thu, 24 Jan 2013 12:37:18 -0800 (PST), Andy wrote:
 
  On Thu, 24 Jan 2013, Charles Bradshaw wrote:
 
  Output from cyradm:
 
  $ cyradm --user cyrus localhost
  Password:
  localhost lm *
  user.test (\HasNoChildren)
  localhost
 
  Perhaps the user does not permission to see the mailbox?  What does
  lam user.test in cyradm report?
 
   Andy
 
  # cyradm -u cyrus localhost
  Password:
  localhost lam user.test
  test lrswipkxtecda
  localhost
 
  Okay, can we confirm that you are connecting as the user test?
   Check your syslog for a message similar to:
 
  imap[30372]: login: cyrus-fe3.onid.oregonstate.edu [128.193.4.145]
  test PLAIN User logged in
 
  Perhaps we have a problem with virtualdomains.
 
 Andy
  --- End of Original Message ---
 
  Andy
  Here is a complete /var/log/maillog for a session.
 
  Jan 24 21:16:06 dell2600 imap[4844]: accepted connection
  Jan 24 21:16:06 dell2600 master[5029]: about to exec
/usr/lib/cyrus-imapd/imapd
  Jan 24 21:16:06 dell2600 imap[5029]: executed
  Jan 24 21:16:36 dell2600 imap[4844]: fetching user_deny.db entry for
  'test@mydomain'
  Jan 24 21:16:36 dell2600 imap[4844]: login: localhost [::1] test@mydomain
  plaintext User logged in
  SESSIONID=dell2600.bradcan.homelinux.com-4844-1359062166-1
  Jan 24 21:16:36 dell2600 imap[4844]: fetching user_deny.db entry for
  'test@mydomain'
  Jan 24 21:16:51 dell2600 imap[4844]: fetching user_deny.db entry for
  'test@mydomain'
  Jan 24 21:16:59 dell2600 imap[4844]: USAGE test@mydomain user: 0.009998 sys:
  0.009998
  Jan 24 21:18:51 dell2600 master[4485]: process 4844 exited, status 0
  Jan 24 21:19:06 dell2600 master[5036]: about to exec
  /usr/lib/cyrus-imapd/ctl_cyrusdb
  Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: checkpointing cyrus databases
  Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: archiving database file:
  /var/lib/imap/mailboxes.db
  Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: archiving database file:
  /var/lib/imap/annotations.db
  Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: done checkpointing cyrus 
  databases
  Jan 24 21:19:06 dell2600 master[4485]: process 5036 exited, status 0
 
  Also the telemetry log from /var/lib/imap/log/test@mydomain (I figured that 
  I
  need to name the directory user@realm)
 
  1359062196a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte
  QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
  MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
  THREAD=ORDEREDSUBJECT 

Re: Mailbox does not exist question

2013-01-24 Thread Charles Bradshaw
On: Wed, 23 Jan 2013 14:28:28 -0800 (PST), Andrew Morgan wrote:

 On Wed, 23 Jan 2013, Charles Bradshaw wrote:
 
  I'm seeing the following when I test cyrus-imapd using telnet.
 
  I seem to be missing some fundamental configuration.
 
  What am I doing wrong?
 
  Thanks in advance, Charles Bradshaw
 
  Telnet imap session:
 
  # telnet localhost imap
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN
  AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR] imap-host.mydomain Cyrus IMAP
  v2.4.14-Fedora-RPM-2.4.14-1.fc17 server ready
  a1 LOGIN test@mydomain ***
  a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA
  MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
  MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
  THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
  QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
  COMPRESS=DEFLATE IDLE] User logged in
  SESSIONID=imap-host.mydomain-1720-1358978359-1
  a2 LIST  *
  a2 OK Completed (0.000 secs)
 
  I expected something like '* LIST (\HasNoChildren) . INBOX', but the
  response is blank!
 
  ~ o ~
 
  Telnet pop session:
 
  # telnet localhost 110
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  +OK imap-host.mydomain Cyrus POP3 v2.4.14-Fedora-RPM-2.4.14-1.fc17 server
  ready 1420303981.1358957093@imap-host.mydomain
  USER test@mydomain
  +OK Name is a valid mailbox
  PASS **
  -ERR [SYS/PERM] Unable to locate maildrop: Mailbox does not exist
 
  /val/log/maillog has:
  pop3s[13116]: Unable to locate maildrop mydomain!user.test: Mailbox does
not exist
 
  ~ o ~
 
  However /var/spool/imap/t/user/test mailbox exists and contains mail:
 
  # ls -l /var/spool/imap/t/user/test
  total 24
  -rw---. 1 cyrus mail  602 Jan 23 14:36 1.
  -rw---. 1 cyrus mail  606 Jan 23 14:59 2.
  -rw---. 1 cyrus mail  603 Jan 23 15:49 3.
  -rw---. 1 cyrus mail 1884 Jan 23 15:49 cyrus.cache
  -rw---. 1 cyrus mail  154 Jan 21 09:58 cyrus.header
  -rw---. 1 cyrus mail  416 Jan 23 15:49 cyrus.index
 
  # cat /etc/imapd.conf
  configdirectory: /var/lib/imap
  partition-default: /var/spool/imap
  admins: cyrus
  sievedir: /var/lib/imap/sieve
  sendmail: /usr/sbin/sendmail
  hashimapspool: true
  sasl_pwcheck_method: auxprop
  sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5
  sasl_auxprop_plugin:sasldb
  allowplaintext: yes
  virtdomains: userid
  tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
  tls_cipher_list: TLSv1:SSLv3:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
  +OK imap-host.mydomain Cyrus POP3 v2.4.14-Fedora-RPM-2.4.14-1.fc17 server
  ready 1420303981.1358957093@imap-host.mydomain
  USER test@mydomain
  +OK Name is a valid mailbox
  PASS **
  -ERR [SYS/PERM] Unable to locate maildrop: Mailbox does not exist
 
  /val/log/maillog has:
  pop3s[13116]: Unable to locate maildrop mydomain!user.test: Mailbox does
not exist
 
  ~ o ~
 
  However /var/spool/imap/t/user/test mailbox exists and contains mail:
 
  # ls -l /var/spool/imap/t/user/test
  total 24
  -rw---. 1 cyrus mail  602 Jan 23 14:36 1.
  -rw---. 1 cyrus mail  606 Jan 23 14:59 2.
  -rw---. 1 cyrus mail  603 Jan 23 15:49 3.
  -rw---. 1 cyrus mail 1884 Jan 23 15:49 cyrus.cache
  -rw---. 1 cyrus mail  154 Jan 21 09:58 cyrus.header
  -rw---. 1 cyrus mail  416 Jan 23 15:49 cyrus.index
 
  # cat /etc/imapd.conf
  configdirectory: /var/lib/imap
  partition-default: /var/spool/imap
  admins: cyrus
  sievedir: /var/lib/imap/sieve
  sendmail: /usr/sbin/sendmail
  hashimapspool: true
  sasl_pwcheck_method: auxprop
  sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5
  sasl_auxprop_plugin:sasldb
  allowplaintext: yes
  virtdomains: userid
  tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
  tls_cipher_list: TLSv1:SSLv3:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
 
 Run cyradm --user cyrus localhost and type lm *.  Is the mailbox 
 user.test in the output?
 
   Andy
--- End of Original Message ---

Output from cyradm:

$ cyradm --user cyrus localhost
Password: 
localhost lm *
user.test (\HasNoChildren)  
localhost

Charles Bradshaw


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


Re: Mailbox does not exist question (is this the answer?)

2013-01-24 Thread Charles Bradshaw
I have enabled debug. (in imapd.conf debug: yes). Now when I start a telnet
imap session /var/log/maillog has this:

Jan 24 13:25:59 dell2600 imap[4507]: accepted connection
Jan 24 13:25:59 dell2600 master[4549]: about to exec /usr/lib/cyrus-imapd/imapd
Jan 24 13:25:59 dell2600 imap[4549]: executed
Jan 24 13:25:59 dell2600 imap[4549]: IOERROR: opening
/var/lib/imap/user_deny.db: No such file or directory

Is this the problem?

How do I create user_deny.db ?

Charles Bradshaw

On: Wed, 23 Jan 2013 14:28:28 -0800 (PST), Andrew Morgan wrote:

 On Wed, 23 Jan 2013, Charles Bradshaw wrote:
 
  I'm seeing the following when I test cyrus-imapd using telnet.
 
  I seem to be missing some fundamental configuration.
 
  What am I doing wrong?
 
  Thanks in advance, Charles Bradshaw
 
  Telnet imap session:
 
  # telnet localhost imap
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN
  AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR] imap-host.mydomain Cyrus IMAP
  v2.4.14-Fedora-RPM-2.4.14-1.fc17 server ready
  a1 LOGIN test@mydomain ***
  a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA
  MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
  MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
  THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
  QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
  COMPRESS=DEFLATE IDLE] User logged in
  SESSIONID=imap-host.mydomain-1720-1358978359-1
  a2 LIST  *
  a2 OK Completed (0.000 secs)
 
  I expected something like '* LIST (\HasNoChildren) . INBOX', but the
  response is blank!
 
  ~ o ~
 
  Telnet pop session:
 
  # telnet localhost 110
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  +OK imap-host.mydomain Cyrus POP3 v2.4.14-Fedora-RPM-2.4.14-1.fc17 server
  ready 1420303981.1358957093@imap-host.mydomain
  USER test@mydomain
  +OK Name is a valid mailbox
  PASS **
  -ERR [SYS/PERM] Unable to locate maildrop: Mailbox does not exist
 
  /val/log/maillog has:
  pop3s[13116]: Unable to locate maildrop mydomain!user.test: Mailbox does
not exist
 
  ~ o ~
 
  However /var/spool/imap/t/user/test mailbox exists and contains mail:
 
  # ls -l /var/spool/imap/t/user/test
  total 24
  -rw---. 1 cyrus mail  602 Jan 23 14:36 1.
  -rw---. 1 cyrus mail  606 Jan 23 14:59 2.
  -rw---. 1 cyrus mail  603 Jan 23 15:49 3.
  -rw---. 1 cyrus mail 1884 Jan 23 15:49 cyrus.cache
  -rw---. 1 cyrus mail  154 Jan 21 09:58 cyrus.header
  -rw---. 1 cyrus mail  416 Jan 23 15:49 cyrus.index
 
  # cat /etc/imapd.conf
  configdirectory: /var/lib/imap
  partition-default: /var/spool/imap
  admins: cyrus
  sievedir: /var/lib/imap/sieve
  sendmail: /usr/sbin/sendmail
  hashimapspool: true
  sasl_pwcheck_method: auxprop
  sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5
  sasl_auxprop_plugin:sasldb
  allowplaintext: yes
  virtdomains: userid
  tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
  tls_cipher_list: TLSv1:SSLv3:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
  +OK imap-host.mydomain Cyrus POP3 v2.4.14-Fedora-RPM-2.4.14-1.fc17 server
  ready 1420303981.1358957093@imap-host.mydomain
  USER test@mydomain
  +OK Name is a valid mailbox
  PASS **
  -ERR [SYS/PERM] Unable to locate maildrop: Mailbox does not exist
 
  /val/log/maillog has:
  pop3s[13116]: Unable to locate maildrop mydomain!user.test: Mailbox does
not exist
 
  ~ o ~
 
  However /var/spool/imap/t/user/test mailbox exists and contains mail:
 
  # ls -l /var/spool/imap/t/user/test
  total 24
  -rw---. 1 cyrus mail  602 Jan 23 14:36 1.
  -rw---. 1 cyrus mail  606 Jan 23 14:59 2.
  -rw---. 1 cyrus mail  603 Jan 23 15:49 3.
  -rw---. 1 cyrus mail 1884 Jan 23 15:49 cyrus.cache
  -rw---. 1 cyrus mail  154 Jan 21 09:58 cyrus.header
  -rw---. 1 cyrus mail  416 Jan 23 15:49 cyrus.index
 
  # cat /etc/imapd.conf
  configdirectory: /var/lib/imap
  partition-default: /var/spool/imap
  admins: cyrus
  sievedir: /var/lib/imap/sieve
  sendmail: /usr/sbin/sendmail
  hashimapspool: true
  sasl_pwcheck_method: auxprop
  sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5
  sasl_auxprop_plugin:sasldb
  allowplaintext: yes
  virtdomains: userid
  tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
  tls_cipher_list: TLSv1:SSLv3:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
 
 Run cyradm --user cyrus localhost and type lm *.  Is the mailbox 
 user.test in the output?
 
   Andy
--- End of Original Message ---

Output from cyradm:

$ cyradm --user cyrus localhost
Password: 
localhost lm *
user.test (\HasNoChildren)  
localhost

Charles Bradshaw

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: 

Re: Mailbox does not exist question (NO it is NOT the answer!)

2013-01-24 Thread Charles Bradshaw
I have enabled debug. (in imapd.conf debug: yes). Now when I start a telnet
imap session /var/log/maillog has this:

Jan 24 13:25:59 dell2600 imap[4507]: accepted connection
Jan 24 13:25:59 dell2600 master[4549]: about to exec /usr/lib/cyrus-imapd/imapd
Jan 24 13:25:59 dell2600 imap[4549]: executed
Jan 24 13:25:59 dell2600 imap[4549]: IOERROR: opening
/var/lib/imap/user_deny.db: No such file or directory

Is this the problem?

How do I create user_deny.db ?

 ~ o ~

The debug exposed error has been eliminated by creating user_deny.db

#su cyrus
bash-4.2$ touch /var/lib/imap/user_deny.db

Telnet session still does NOT report the presence of INBOX:

$ telnet localhost imap
Trying ::1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN
AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR] dell2600.bradcan.homelinux.com Cyrus
IMAP v2.4.14-Fedora-RPM-2.4.14-1.fc17 server ready
a1 LOGIN b...@bradcan.homelinux.com wH3x14or
a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA
MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
COMPRESS=DEFLATE IDLE] User logged in
SESSIONID=dell2600.bradcan.homelinux.com-4597-1359054779-1
a2 LIST  *
a2 OK Completed (0.000 secs)

I am at a complete loss to understand how it is possible that mail is
delivered, but at the same time the INBOX is not being identified during the
imap session.

Is there some way to increase the bebug level of imapd ?

Charles Bradshaw

On: Wed, 23 Jan 2013 14:28:28 -0800 (PST), Andrew Morgan wrote:

 On Wed, 23 Jan 2013, Charles Bradshaw wrote:
 
  I'm seeing the following when I test cyrus-imapd using telnet.
 
  I seem to be missing some fundamental configuration.
 
  What am I doing wrong?
 
  Thanks in advance, Charles Bradshaw
 
  Telnet imap session:
 
  # telnet localhost imap
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN
  AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR] imap-host.mydomain Cyrus IMAP
  v2.4.14-Fedora-RPM-2.4.14-1.fc17 server ready
  a1 LOGIN test@mydomain ***
  a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA
  MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
  MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
  THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
  QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
  COMPRESS=DEFLATE IDLE] User logged in
  SESSIONID=imap-host.mydomain-1720-1358978359-1
  a2 LIST  *
  a2 OK Completed (0.000 secs)
 
  I expected something like '* LIST (\HasNoChildren) . INBOX', but the
  response is blank!
 
  ~ o ~
 
  Telnet pop session:
 
  # telnet localhost 110
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  +OK imap-host.mydomain Cyrus POP3 v2.4.14-Fedora-RPM-2.4.14-1.fc17 server
  ready 1420303981.1358957093@imap-host.mydomain
  USER test@mydomain
  +OK Name is a valid mailbox
  PASS **
  -ERR [SYS/PERM] Unable to locate maildrop: Mailbox does not exist
 
  /val/log/maillog has:
  pop3s[13116]: Unable to locate maildrop mydomain!user.test: Mailbox does
not exist
 
  ~ o ~
 
  However /var/spool/imap/t/user/test mailbox exists and contains mail:
 
  # ls -l /var/spool/imap/t/user/test
  total 24
  -rw---. 1 cyrus mail  602 Jan 23 14:36 1.
  -rw---. 1 cyrus mail  606 Jan 23 14:59 2.
  -rw---. 1 cyrus mail  603 Jan 23 15:49 3.
  -rw---. 1 cyrus mail 1884 Jan 23 15:49 cyrus.cache
  -rw---. 1 cyrus mail  154 Jan 21 09:58 cyrus.header
  -rw---. 1 cyrus mail  416 Jan 23 15:49 cyrus.index
 
  # cat /etc/imapd.conf
  configdirectory: /var/lib/imap
  partition-default: /var/spool/imap
  admins: cyrus
  sievedir: /var/lib/imap/sieve
  sendmail: /usr/sbin/sendmail
  hashimapspool: true
  sasl_pwcheck_method: auxprop
  sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5
  sasl_auxprop_plugin:sasldb
  allowplaintext: yes
  virtdomains: userid
  tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
  tls_cipher_list: TLSv1:SSLv3:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
  +OK imap-host.mydomain Cyrus POP3 v2.4.14-Fedora-RPM-2.4.14-1.fc17 server
  ready 1420303981.1358957093@imap-host.mydomain
  USER test@mydomain
  +OK Name is a valid mailbox
  PASS **
  -ERR [SYS/PERM] Unable to locate maildrop: Mailbox does not exist
 
  /val/log/maillog has:
  pop3s[13116]: Unable to locate maildrop mydomain!user.test: Mailbox does
not exist
 
  ~ o ~
 
  However /var/spool/imap/t/user/test mailbox exists and contains mail:
 
  # ls -l /var/spool/imap/t/user/test
  total 24
  -rw---. 1 cyrus 

Re: Mailbox does not exist question (NO it is NOT the answer!)

2013-01-24 Thread Charles Bradshaw
The file owner is root, but ps aux says:

cyrus 4844  0.0  0.1  50004  2224 ?S19:31   0:00 imapd

So the running daemon and the mailbox is owned by cyrus, which is correct.

The mail directory cannot be owned by the user because she is virtual and
therefore has no account. Instead cyrus is proxy.

I like your signature though :)

The only skill I have is perseverance! Charles Bradshaw

On: Thu, 24 Jan 2013 13:28:55 -0600,Dale wrote:

 No expert, but does the proper user own imap?  Is it writeable the 
 the mail user?
 
 On 01/24/2013 01:17 PM, Charles Bradshaw wrote:
  I have enabled debug. (in imapd.conf debug: yes). Now when I start a telnet
  imap session /var/log/maillog has this:
 
  Jan 24 13:25:59 dell2600 imap[4507]: accepted connection
  Jan 24 13:25:59 dell2600 master[4549]: about to exec
/usr/lib/cyrus-imapd/imapd
  Jan 24 13:25:59 dell2600 imap[4549]: executed
  Jan 24 13:25:59 dell2600 imap[4549]: IOERROR: opening
  /var/lib/imap/user_deny.db: No such file or directory
 
  Is this the problem?
 
  How do I create user_deny.db ?
 
~ o ~
 
  The debug exposed error has been eliminated by creating user_deny.db
 
  #su cyrus
  bash-4.2$ touch /var/lib/imap/user_deny.db
 
  Telnet session still does NOT report the presence of INBOX:
 
  $ telnet localhost imap
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN
  AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR] dell2600.bradcan.homelinux.com Cyrus
  IMAP v2.4.14-Fedora-RPM-2.4.14-1.fc17 server ready
  a1 LOGIN b...@bradcan.homelinux.com wH3x14or
  a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA
  MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
  MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
  THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
  QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
  COMPRESS=DEFLATE IDLE] User logged in
  SESSIONID=dell2600.bradcan.homelinux.com-4597-1359054779-1
  a2 LIST  *
  a2 OK Completed (0.000 secs)
 
  I am at a complete loss to understand how it is possible that mail is
  delivered, but at the same time the INBOX is not being identified during the
  imap session.
 
  Is there some way to increase the bebug level of imapd ?
 
  Charles Bradshaw
 
  On: Wed, 23 Jan 2013 14:28:28 -0800 (PST), Andrew Morgan wrote:
 
  On Wed, 23 Jan 2013, Charles Bradshaw wrote:
 
  I'm seeing the following when I test cyrus-imapd using telnet.
 
  I seem to be missing some fundamental configuration.
 
  What am I doing wrong?
 
  Thanks in advance, Charles Bradshaw
 
  Telnet imap session:
 
  # telnet localhost imap
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN
  AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR] imap-host.mydomain Cyrus IMAP
  v2.4.14-Fedora-RPM-2.4.14-1.fc17 server ready
  a1 LOGIN test@mydomain ***
  a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA
  MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
  MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ 
  SORT=DISPLAY
  THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
  QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
  COMPRESS=DEFLATE IDLE] User logged in
  SESSIONID=imap-host.mydomain-1720-1358978359-1
  a2 LIST  *
  a2 OK Completed (0.000 secs)
 
  I expected something like '* LIST (\HasNoChildren) . INBOX', but the
  response is blank!
 
  ~ o ~
 
  Telnet pop session:
 
  # telnet localhost 110
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  +OK imap-host.mydomain Cyrus POP3 v2.4.14-Fedora-RPM-2.4.14-1.fc17 server
  ready1420303981.1358957093@imap-host.mydomain
  USER test@mydomain
  +OK Name is a valid mailbox
  PASS **
  -ERR [SYS/PERM] Unable to locate maildrop: Mailbox does not exist
 
  /val/log/maillog has:
  pop3s[13116]: Unable to locate maildrop mydomain!user.test: Mailbox does
  not exist
  ~ o ~
 
  However /var/spool/imap/t/user/test mailbox exists and contains mail:
 
  # ls -l /var/spool/imap/t/user/test
  total 24
  -rw---. 1 cyrus mail  602 Jan 23 14:36 1.
  -rw---. 1 cyrus mail  606 Jan 23 14:59 2.
  -rw---. 1 cyrus mail  603 Jan 23 15:49 3.
  -rw---. 1 cyrus mail 1884 Jan 23 15:49 cyrus.cache
  -rw---. 1 cyrus mail  154 Jan 21 09:58 cyrus.header
  -rw---. 1 cyrus mail  416 Jan 23 15:49 cyrus.index
 
  # cat /etc/imapd.conf
  configdirectory: /var/lib/imap
  partition-default: /var/spool/imap
  admins: cyrus
  sievedir: /var/lib/imap/sieve
  sendmail: /usr/sbin/sendmail
  hashimapspool: true
  sasl_pwcheck_method: auxprop
  sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5
  sasl_auxprop_plugin:sasldb
  allowplaintext: yes
  virtdomains: userid
  tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  

Re: Mailbox does not exist question

2013-01-24 Thread Andrew Morgan
On Thu, 24 Jan 2013, Charles Bradshaw wrote:

 Output from cyradm:

 $ cyradm --user cyrus localhost
 Password:
 localhost lm *
 user.test (\HasNoChildren)
 localhost

Perhaps the user does not permission to see the mailbox?  What does lam 
user.test in cyradm report?

Andy

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


Re: Mailbox does not exist question (is this the answer?)

2013-01-24 Thread Andrew Morgan
On Thu, 24 Jan 2013, Charles Bradshaw wrote:

 I have enabled debug. (in imapd.conf debug: yes). Now when I start a telnet
 imap session /var/log/maillog has this:

 Jan 24 13:25:59 dell2600 imap[4507]: accepted connection
 Jan 24 13:25:59 dell2600 master[4549]: about to exec 
 /usr/lib/cyrus-imapd/imapd
 Jan 24 13:25:59 dell2600 imap[4549]: executed
 Jan 24 13:25:59 dell2600 imap[4549]: IOERROR: opening
 /var/lib/imap/user_deny.db: No such file or directory

 Is this the problem?

 How do I create user_deny.db ?

No, user_deny is an optional feature.  There is no error if it is not 
found.

Andy

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


Re: Mailbox does not exist question (NO it is NOT the answer!)

2013-01-24 Thread Adam Tauno Williams
On Thu, 2013-01-24 at 19:17 +, Charles Bradshaw wrote:
 I have enabled debug. (in imapd.conf debug: yes). Now when I start a telnet
 imap session /var/log/maillog has this:
 Jan 24 13:25:59 dell2600 imap[4507]: accepted connection
 Jan 24 13:25:59 dell2600 master[4549]: about to exec 
 /usr/lib/cyrus-imapd/imapd
 Jan 24 13:25:59 dell2600 imap[4549]: executed
 Jan 24 13:25:59 dell2600 imap[4549]: IOERROR: opening
 /var/lib/imap/user_deny.db: No such file or directory
 Is this the problem?
 How do I create user_deny.db ?

No, it is OK for user_deny to not exist.  [this is a chronically
confusing message;  you can't really tell DEBUG 'error' messages from
real error messages].

 Telnet session still does NOT report the presence of INBOX:

I don't understand this statement.

 $ telnet localhost imap
 Trying ::1...
 Connected to localhost.
 Escape character is '^]'.
 * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN
 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR] dell2600.bradcan.homelinux.com Cyrus
 IMAP v2.4.14-Fedora-RPM-2.4.14-1.fc17 server ready
 a1 LOGIN b...@bradcan.homelinux.com wH3x14or
 a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA
 MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
 MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
 THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
 QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
 COMPRESS=DEFLATE IDLE] User logged in
 SESSIONID=dell2600.bradcan.homelinux.com-4597-1359054779-1
 a2 LIST  *
 a2 OK Completed (0.000 secs)
 I am at a complete loss to understand how it is possible that mail is
 delivered, but at the same time the INBOX is not being identified during the
 imap session.
 Is there some way to increase the bebug level of imapd ?

Have you enabled telemetry logging for that user?

Does the mailbox in question appear in the mailbox list?

-- 
Adam Tauno Williams  GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA


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


Re: Mailbox does not exist question (NO it is NOT the answer!)

2013-01-24 Thread Charles Bradshaw
Dale
The installation is from cyrus-imapd.i686 2.4.14-1.fc17

Yes there have been file ownership problems, but you will observe from my
previous post that the mailbox has been written to by the cyrus mailer!
Therefore one would naturally expect imapd to be able to read it!

For the record /var/spool/imap/b/user/test are all 700 and the files in
/test are 600 and every thing is owner cyrus and group mail.

Yes I agree possibly a file ownership problem, but how?

One of the first things I tried was changing everything to 777 with no result!

More likely some quirk with BSD vis Fedora low level file access.

Most of the Fedora forum posts on the subject of cyrus-imapd say ! Oops
can't post it here. ;-)

Charles Bradshaw

On: Thu, 24 Jan 2013 14:11:09 -0600, Dale woote:

 The directory and files must be writeable by either the owner of the 
 process (cyrus) or the group the owner belongs to.
 
 I suggest you write down who owns the directory, make sure you 
 remember and chown to it.  Keep in mind that some directories may be 
 written by sendmail/postfix and/or read by cyrus.
 
 I suspect it's a permission problem, though.
 
 Did you compile yourself, rpm, package, ???
 
 What OS?
 
 On 01/24/2013 02:00 PM, Charles Bradshaw wrote:
  The file owner is root, but ps aux says:
 
  cyrus 4844  0.0  0.1  50004  2224 ?S19:31   0:00 imapd
 
  So the running daemon and the mailbox is owned by cyrus, which is correct.
 
  The mail directory cannot be owned by the user because she is virtual and
  therefore has no account. Instead cyrus is proxy.
 
  I like your signature though :)
 
  The only skill I have is perseverance! Charles Bradshaw
 
  On: Thu, 24 Jan 2013 13:28:55 -0600,Dale wrote:
 
  No expert, but does the proper user own imap?  Is it writeable the
  the mail user?
 
  On 01/24/2013 01:17 PM, Charles Bradshaw wrote:
  I have enabled debug. (in imapd.conf debug: yes). Now when I start a 
  telnet
  imap session /var/log/maillog has this:
 
  Jan 24 13:25:59 dell2600 imap[4507]: accepted connection
  Jan 24 13:25:59 dell2600 master[4549]: about to exec
  /usr/lib/cyrus-imapd/imapd
  Jan 24 13:25:59 dell2600 imap[4549]: executed
  Jan 24 13:25:59 dell2600 imap[4549]: IOERROR: opening
  /var/lib/imap/user_deny.db: No such file or directory
 
  Is this the problem?
 
  How do I create user_deny.db ?
 
 ~ o ~
 
  The debug exposed error has been eliminated by creating user_deny.db
 
  #su cyrus
  bash-4.2$ touch /var/lib/imap/user_deny.db
 
  Telnet session still does NOT report the presence of INBOX:
 
  $ telnet localhost imap
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN
  AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR] dell2600.bradcan.homelinux.com 
  Cyrus
  IMAP v2.4.14-Fedora-RPM-2.4.14-1.fc17 server ready
  a1 LOGIN b...@bradcan.homelinux.com wH3x14or
  a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA
  MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
  MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ 
  SORT=DISPLAY
  THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
  QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
  COMPRESS=DEFLATE IDLE] User logged in
  SESSIONID=dell2600.bradcan.homelinux.com-4597-1359054779-1
  a2 LIST  *
  a2 OK Completed (0.000 secs)
 
  I am at a complete loss to understand how it is possible that mail is
  delivered, but at the same time the INBOX is not being identified during 
  the
  imap session.
 
  Is there some way to increase the bebug level of imapd ?
 
  Charles Bradshaw
 
  On: Wed, 23 Jan 2013 14:28:28 -0800 (PST), Andrew Morgan wrote:
 
  On Wed, 23 Jan 2013, Charles Bradshaw wrote:
 
  I'm seeing the following when I test cyrus-imapd using telnet.
 
  I seem to be missing some fundamental configuration.
 
  What am I doing wrong?
 
  Thanks in advance, Charles Bradshaw
 
  Telnet imap session:
 
  # telnet localhost imap
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN
  AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR] imap-host.mydomain Cyrus IMAP
  v2.4.14-Fedora-RPM-2.4.14-1.fc17 server ready
  a1 LOGIN test@mydomain ***
  a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA
  MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
  MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ
SORT=DISPLAY
  THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED 
  WITHIN
  QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
  COMPRESS=DEFLATE IDLE] User logged in
  SESSIONID=imap-host.mydomain-1720-1358978359-1
  a2 LIST  *
  a2 OK Completed (0.000 secs)
 
  I expected something like '* LIST (\HasNoChildren) . INBOX', but the
  response is blank!
 
  ~ o ~
 
  Telnet pop session:
 
  # telnet localhost 110
  

Re: Mailbox does not exist question

2013-01-24 Thread Charles Bradshaw

On: Thu, 24 Jan 2013 12:37:18 -0800 (PST), Andy wrote:

 On Thu, 24 Jan 2013, Charles Bradshaw wrote:
 
  Output from cyradm:
 
  $ cyradm --user cyrus localhost
  Password:
  localhost lm *
  user.test (\HasNoChildren)
  localhost
 
 Perhaps the user does not permission to see the mailbox?  What does 
 lam user.test in cyradm report?
 
   Andy

# cyradm -u cyrus localhost
Password: 
localhost lam user.test
test lrswipkxtecda
localhost 

Charles Bradshaw

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


Re: Mailbox does not exist question (NO it is NOT the answer!)

2013-01-24 Thread Charles Bradshaw
Adam

The telnet session is listed in full below.

Snip:
client: a2 LIST  *
   should be a list here containing something!
server: a2 OK Completed (0.000 secs)

Expected response like this: * LIST (\Unmarked \HasChildren) . INBOX

How do I enable telemetry logging ? I tried creating /var/lib/imap/log/test
but this remains empty!

The mailbox exists and has been written, ie contains email messages. (see my
earlier posts).

Charles Bradshaw

Sent: Thu, 24 Jan 2013 15:45:40 -0500, Adam wrote:
 On Thu, 2013-01-24 at 19:17 +, Charles Bradshaw wrote:
  I have enabled debug. (in imapd.conf debug: yes). Now when I start a telnet
  imap session /var/log/maillog has this:
  Jan 24 13:25:59 dell2600 imap[4507]: accepted connection
  Jan 24 13:25:59 dell2600 master[4549]: about to exec
/usr/lib/cyrus-imapd/imapd
  Jan 24 13:25:59 dell2600 imap[4549]: executed
  Jan 24 13:25:59 dell2600 imap[4549]: IOERROR: opening
  /var/lib/imap/user_deny.db: No such file or directory
  Is this the problem?
  How do I create user_deny.db ?
 
 No, it is OK for user_deny to not exist.  [this is a chronically
 confusing message;  you can't really tell DEBUG 'error' messages from
 real error messages].
 
  Telnet session still does NOT report the presence of INBOX:
 
 I don't understand this statement.
 
  $ telnet localhost imap
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN
  AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR] dell2600.bradcan.homelinux.com Cyrus
  IMAP v2.4.14-Fedora-RPM-2.4.14-1.fc17 server ready
  a1 LOGIN b...@bradcan.homelinux.com wH3x14or
  a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA
  MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
  MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
  THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
  QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
  COMPRESS=DEFLATE IDLE] User logged in
  SESSIONID=dell2600.bradcan.homelinux.com-4597-1359054779-1
  a2 LIST  *
  a2 OK Completed (0.000 secs)
  I am at a complete loss to understand how it is possible that mail is
  delivered, but at the same time the INBOX is not being identified during the
  imap session.
  Is there some way to increase the bebug level of imapd ?
 
 Have you enabled telemetry logging for that user?
 
 Does the mailbox in question appear in the mailbox list?
 
 -- 
 Adam Tauno Williams  GPG D95ED383
 Systems Administrator, Python Developer, LPI / NCLA
 
 
 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
--- End of Original Message ---


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


Re: Mailbox does not exist question

2013-01-24 Thread Andrew Morgan
On Thu, 24 Jan 2013, Charles Bradshaw wrote:


 On: Thu, 24 Jan 2013 12:37:18 -0800 (PST), Andy wrote:

 On Thu, 24 Jan 2013, Charles Bradshaw wrote:

 Output from cyradm:

 $ cyradm --user cyrus localhost
 Password:
 localhost lm *
 user.test (\HasNoChildren)
 localhost

 Perhaps the user does not permission to see the mailbox?  What does
 lam user.test in cyradm report?

  Andy

 # cyradm -u cyrus localhost
 Password:
 localhost lam user.test
 test lrswipkxtecda
 localhost

Okay, can we confirm that you are connecting as the user test?  Check 
your syslog for a message similar to:

imap[30372]: login: cyrus-fe3.onid.oregonstate.edu [128.193.4.145] test PLAIN 
User logged in

Perhaps we have a problem with virtualdomains.

Andy

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


Re: Mailbox does not exist question

2013-01-24 Thread Charles Bradshaw
On: Thu, 24 Jan 2013 13:11:02 -0800 (PST), Andrew Morgan wrote:

 On Thu, 24 Jan 2013, Charles Bradshaw wrote:
 
 
  On: Thu, 24 Jan 2013 12:37:18 -0800 (PST), Andy wrote:
 
  On Thu, 24 Jan 2013, Charles Bradshaw wrote:
 
  Output from cyradm:
 
  $ cyradm --user cyrus localhost
  Password:
  localhost lm *
  user.test (\HasNoChildren)
  localhost
 
  Perhaps the user does not permission to see the mailbox?  What does
  lam user.test in cyradm report?
 
 Andy
 
  # cyradm -u cyrus localhost
  Password:
  localhost lam user.test
  test lrswipkxtecda
  localhost
 
 Okay, can we confirm that you are connecting as the user test? 
  Check your syslog for a message similar to:
 
 imap[30372]: login: cyrus-fe3.onid.oregonstate.edu [128.193.4.145] 
 test PLAIN User logged in
 
 Perhaps we have a problem with virtualdomains.
 
   Andy
--- End of Original Message ---

Andy
Here is a complete /var/log/maillog for a session.

Jan 24 21:16:06 dell2600 imap[4844]: accepted connection
Jan 24 21:16:06 dell2600 master[5029]: about to exec /usr/lib/cyrus-imapd/imapd
Jan 24 21:16:06 dell2600 imap[5029]: executed
Jan 24 21:16:36 dell2600 imap[4844]: fetching user_deny.db entry for
'test@mydomain'
Jan 24 21:16:36 dell2600 imap[4844]: login: localhost [::1] test@mydomain
plaintext User logged in
SESSIONID=dell2600.bradcan.homelinux.com-4844-1359062166-1
Jan 24 21:16:36 dell2600 imap[4844]: fetching user_deny.db entry for
'test@mydomain'
Jan 24 21:16:51 dell2600 imap[4844]: fetching user_deny.db entry for
'test@mydomain'
Jan 24 21:16:59 dell2600 imap[4844]: USAGE test@mydomain user: 0.009998 sys:
0.009998
Jan 24 21:18:51 dell2600 master[4485]: process 4844 exited, status 0
Jan 24 21:19:06 dell2600 master[5036]: about to exec
/usr/lib/cyrus-imapd/ctl_cyrusdb
Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: checkpointing cyrus databases
Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: archiving database file:
/var/lib/imap/mailboxes.db
Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: archiving database file:
/var/lib/imap/annotations.db
Jan 24 21:19:06 dell2600 ctl_cyrusdb[5036]: done checkpointing cyrus databases
Jan 24 21:19:06 dell2600 master[4485]: process 5036 exited, status 0

Also the telemetry log from /var/lib/imap/log/test@mydomain (I figured that I
need to name the directory user@realm)

1359062196a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte
QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
COMPRESS=DEFLATE IDLE] User logged in
SESSIONID=dell2600.bradcan.homelinux.com-4844-1359062166-1
1359062211a2 LIST  *
1359062211a2 OK Completed (0.000 secs)
1359062219a3 LOGOUT
1359062219* BYE LOGOUT received
a3 OK Completed

Charles Bradshaw




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


Mailbox does not exist question

2013-01-23 Thread Charles Bradshaw
I'm seeing the following when I test cyrus-imapd using telnet.

I seem to be missing some fundamental configuration.

What am I doing wrong?

Thanks in advance, Charles Bradshaw

Telnet imap session:

# telnet localhost imap
Trying ::1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN
AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR] imap-host.mydomain Cyrus IMAP
v2.4.14-Fedora-RPM-2.4.14-1.fc17 server ready
a1 LOGIN test@mydomain ***
a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA
MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
COMPRESS=DEFLATE IDLE] User logged in
SESSIONID=imap-host.mydomain-1720-1358978359-1
a2 LIST  *
a2 OK Completed (0.000 secs)

I expected something like '* LIST (\HasNoChildren) . INBOX', but the
response is blank!

 ~ o ~

Telnet pop session:

# telnet localhost 110
Trying ::1...
Connected to localhost.
Escape character is '^]'.
+OK imap-host.mydomain Cyrus POP3 v2.4.14-Fedora-RPM-2.4.14-1.fc17 server
ready 1420303981.1358957093@imap-host.mydomain
USER test@mydomain
+OK Name is a valid mailbox
PASS **
-ERR [SYS/PERM] Unable to locate maildrop: Mailbox does not exist

/val/log/maillog has:
pop3s[13116]: Unable to locate maildrop mydomain!user.test: Mailbox does not 
exist

 ~ o ~

However /var/spool/imap/t/user/test mailbox exists and contains mail:

# ls -l /var/spool/imap/t/user/test
total 24
-rw---. 1 cyrus mail  602 Jan 23 14:36 1.
-rw---. 1 cyrus mail  606 Jan 23 14:59 2.
-rw---. 1 cyrus mail  603 Jan 23 15:49 3.
-rw---. 1 cyrus mail 1884 Jan 23 15:49 cyrus.cache
-rw---. 1 cyrus mail  154 Jan 21 09:58 cyrus.header
-rw---. 1 cyrus mail  416 Jan 23 15:49 cyrus.index

# cat /etc/imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: auxprop
sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5
sasl_auxprop_plugin:sasldb
allowplaintext: yes
virtdomains: userid
tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
tls_cipher_list: TLSv1:SSLv3:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
+OK imap-host.mydomain Cyrus POP3 v2.4.14-Fedora-RPM-2.4.14-1.fc17 server
ready 1420303981.1358957093@imap-host.mydomain
USER test@mydomain
+OK Name is a valid mailbox
PASS **
-ERR [SYS/PERM] Unable to locate maildrop: Mailbox does not exist

/val/log/maillog has:
pop3s[13116]: Unable to locate maildrop mydomain!user.test: Mailbox does not 
exist

 ~ o ~

However /var/spool/imap/t/user/test mailbox exists and contains mail:

# ls -l /var/spool/imap/t/user/test
total 24
-rw---. 1 cyrus mail  602 Jan 23 14:36 1.
-rw---. 1 cyrus mail  606 Jan 23 14:59 2.
-rw---. 1 cyrus mail  603 Jan 23 15:49 3.
-rw---. 1 cyrus mail 1884 Jan 23 15:49 cyrus.cache
-rw---. 1 cyrus mail  154 Jan 21 09:58 cyrus.header
-rw---. 1 cyrus mail  416 Jan 23 15:49 cyrus.index

# cat /etc/imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: auxprop
sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5
sasl_auxprop_plugin:sasldb
allowplaintext: yes
virtdomains: userid
tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
tls_cipher_list: TLSv1:SSLv3:!NULL:!EXPORT:!DES:!LOW:@STRENGTH

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


Re: Mailbox does not exist question

2013-01-23 Thread Andrew Morgan
On Wed, 23 Jan 2013, Charles Bradshaw wrote:

 I'm seeing the following when I test cyrus-imapd using telnet.

 I seem to be missing some fundamental configuration.

 What am I doing wrong?

 Thanks in advance, Charles Bradshaw

 Telnet imap session:

 # telnet localhost imap
 Trying ::1...
 Connected to localhost.
 Escape character is '^]'.
 * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN
 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR] imap-host.mydomain Cyrus IMAP
 v2.4.14-Fedora-RPM-2.4.14-1.fc17 server ready
 a1 LOGIN test@mydomain ***
 a1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA
 MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN
 MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY
 THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN
 QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED
 COMPRESS=DEFLATE IDLE] User logged in
 SESSIONID=imap-host.mydomain-1720-1358978359-1
 a2 LIST  *
 a2 OK Completed (0.000 secs)

 I expected something like '* LIST (\HasNoChildren) . INBOX', but the
 response is blank!

 ~ o ~

 Telnet pop session:

 # telnet localhost 110
 Trying ::1...
 Connected to localhost.
 Escape character is '^]'.
 +OK imap-host.mydomain Cyrus POP3 v2.4.14-Fedora-RPM-2.4.14-1.fc17 server
 ready 1420303981.1358957093@imap-host.mydomain
 USER test@mydomain
 +OK Name is a valid mailbox
 PASS **
 -ERR [SYS/PERM] Unable to locate maildrop: Mailbox does not exist

 /val/log/maillog has:
 pop3s[13116]: Unable to locate maildrop mydomain!user.test: Mailbox does not 
 exist

 ~ o ~

 However /var/spool/imap/t/user/test mailbox exists and contains mail:

 # ls -l /var/spool/imap/t/user/test
 total 24
 -rw---. 1 cyrus mail  602 Jan 23 14:36 1.
 -rw---. 1 cyrus mail  606 Jan 23 14:59 2.
 -rw---. 1 cyrus mail  603 Jan 23 15:49 3.
 -rw---. 1 cyrus mail 1884 Jan 23 15:49 cyrus.cache
 -rw---. 1 cyrus mail  154 Jan 21 09:58 cyrus.header
 -rw---. 1 cyrus mail  416 Jan 23 15:49 cyrus.index

 # cat /etc/imapd.conf
 configdirectory: /var/lib/imap
 partition-default: /var/spool/imap
 admins: cyrus
 sievedir: /var/lib/imap/sieve
 sendmail: /usr/sbin/sendmail
 hashimapspool: true
 sasl_pwcheck_method: auxprop
 sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5
 sasl_auxprop_plugin:sasldb
 allowplaintext: yes
 virtdomains: userid
 tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
 tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
 tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
 tls_cipher_list: TLSv1:SSLv3:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
 +OK imap-host.mydomain Cyrus POP3 v2.4.14-Fedora-RPM-2.4.14-1.fc17 server
 ready 1420303981.1358957093@imap-host.mydomain
 USER test@mydomain
 +OK Name is a valid mailbox
 PASS **
 -ERR [SYS/PERM] Unable to locate maildrop: Mailbox does not exist

 /val/log/maillog has:
 pop3s[13116]: Unable to locate maildrop mydomain!user.test: Mailbox does not 
 exist

 ~ o ~

 However /var/spool/imap/t/user/test mailbox exists and contains mail:

 # ls -l /var/spool/imap/t/user/test
 total 24
 -rw---. 1 cyrus mail  602 Jan 23 14:36 1.
 -rw---. 1 cyrus mail  606 Jan 23 14:59 2.
 -rw---. 1 cyrus mail  603 Jan 23 15:49 3.
 -rw---. 1 cyrus mail 1884 Jan 23 15:49 cyrus.cache
 -rw---. 1 cyrus mail  154 Jan 21 09:58 cyrus.header
 -rw---. 1 cyrus mail  416 Jan 23 15:49 cyrus.index

 # cat /etc/imapd.conf
 configdirectory: /var/lib/imap
 partition-default: /var/spool/imap
 admins: cyrus
 sievedir: /var/lib/imap/sieve
 sendmail: /usr/sbin/sendmail
 hashimapspool: true
 sasl_pwcheck_method: auxprop
 sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5
 sasl_auxprop_plugin:sasldb
 allowplaintext: yes
 virtdomains: userid
 tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
 tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
 tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
 tls_cipher_list: TLSv1:SSLv3:!NULL:!EXPORT:!DES:!LOW:@STRENGTH

Run cyradm --user cyrus localhost and type lm *.  Is the mailbox 
user.test in the output?

Andy

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