difference between postuser and sharedprefix ?

Ken Murchison ken at oceana.com
Thu Oct 24 22:09:17 EDT 2002


Quoting Scott Russell <lnxgeek at us.ibm.com>:

> On Thu, Oct 24, 2002 at 03:27:23PM -0400, Ken Murchison wrote:
> > > I'm for the first time playing around with shared folders under Cyrus
> > > IMAPd 2.1.9. I have several normal user accounts up and running fine
> > > with my config.
> > > 
> > > In the imapd.conf I see there are two options for controlling shared
> > > folders. postuser and sharedprefix. I created a mailbox with cyradm (cm
> > > testbox) and gave it ACL anonymous p. It gets mail just fine when I
> > > sent to share+testbox at myhost.com
> > > 
> > > This seems to work well if I set "shareprefix: share" or if I leave
> > > that out and set "postuser: share". So I'm confused as to what the
> > > differences are between the two settings when they both seem to work
> > > the same?
> > 
> > 'postuser' is the one which is used for posting.  'sharedprefix' is only
> > used if using 'altnamespace', in which your shared folder names (as
> > presented to the client) would be "share.testbox"
> > 
> > Check out the description of 'altnamespace' in the manpage or docs if my
> > explanation is too cryptic.
> > 
> 
> No, not to cryptic, just not clear? :) I've checked the man page so
> let me try to ask my question again.
> 
> I have the following in my imapd.conf file:
> 
>   configdirectory: /var/imap
>   partition-default: /var/spool/imap
>   altnamespace: yes
>   userprefix: user
>   postuser: share
> 
> I created "testbox" using cyradm. This shows up on the partition as
> /var/spool/imap/testbox/.  
> 
> With my imapd.conf set as pasted here, (notice no shareprefix is set)
> mail sent to share+testbox at myhost.com does get delivered right.
> 
> Now, given all that, I can, without changing the physical mailbox
> "testbox" change my imapd.conf to remove the postuser line and add
> shareprefix: user. After restarting cyrus imapd posting still works.

Still using share+testbox at myhost.com ?

I think this is just coincidence, since sharedprefix has nothing to do with the 
delivery address.  My guess it that your MTA might be translating the address 
in some way.  What happens if you set sharedprefix to "foo", or postuser to 
"foo"?

> So, maybe i'm missing something about how userprefix, shareprefix, and
> altnamespace interact?

These three have nothing to do with LMTP behavior, just IMAP behavior.  
Similarly postuser has nothing to do with IMAP behavior, just LMTP behavior.

This is all provided that I don't have a coding bug somewhere.  ;)

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp




More information about the Info-cyrus mailing list