Mailbox does not exist question
Charles Bradshaw
brad at bradcan.homelinux.com
Fri Jan 25 15:40:23 EST 2013
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 at 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 at 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 at 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 at mydomain' instead of
> > 'user.test'?
> >
> > Here is a dump of /var/lib/imap/mailboxes.db
> > # hexdump -c /var/lib/imap/mailboxes.db
> > 0000000 241 002 213 \r s k i p l i s t f i l
> > 0000010 e \0 \0 \0 \0 \0 \0 001 \0 \0 \0 002 \0 \0 \0 024
> > 0000020 \0 \0 \0 001 \0 \0 \0 001 \0 \0 \0 320 Q 001 4 312
> > 0000030 \0 \0 001 001 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 220
> > 0000040 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
> > *
> > 0000080 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 377 377 377 377
> > 0000090 \0 \0 \0 001 \0 \0 \0 \t u s e r . t e s
> > 00000a0 t \0 \0 \0 \0 \0 \0 035 0 d e f a u l
> > 00000b0 t t e s t \t l r s w i p k x t
> > 00000c0 e c d a \t \0 \0 \0 \0 \0 \0 \0 377 377 377 377
> > 00000d0
> >
> > 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 at mydomain'
> > Jan 24 21:16:36 dell2600 imap[4844]: login: localhost [::1] test at 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 at mydomain'
> > Jan 24 21:16:51 dell2600 imap[4844]: fetching user_deny.db entry for
> > 'test at mydomain'
> > Jan 24 21:16:59 dell2600 imap[4844]: USAGE test at 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 at mydomain (I figured that I
> > need to name the directory user at realm)
> >
> >> 1359062196>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-4844-1359062166-1>
> > <1359062211<a2 LIST "" "*"
> >> 1359062211>a2 OK Completed (0.000 secs)
> > <1359062219<a3 LOGOUT
> >> 1359062219>* BYE LOGOUT received
> > a3 OK Completed
> >
> > Charles Bradshaw
> >
------- End of Original Message -------
More information about the Info-cyrus
mailing list