Two little questions

Ken Murchison ken at oceana.com
Mon Oct 27 12:00:49 EST 2003


Etienne Goyer wrote:

> Hi list,
> 
> Two questions for resident gurus this morning :
> 
> 1. Is there a way to permit only POP or IMAP for a specific user ?  We 
> are currently using saslauthd + shadow (Simon Matter's rpm, for the 
> record). 

Not using this combo.  If you can use PAM, this becomes fairly trivial.


> 2. Apparently, we hit a bug where Oulook 2k2 seem to get confused with
> Cyrus's UIDL using POP.  My understanding of the problem is only partial
> has I was not the one isolating it, but the way it have been explained
> to me is that Outlook 2002 get confused when UIDL are not the same
> length (ie a mailbox contain a message with UIDL 1066419166.1 and one
> with UIDL 1066419166.10).  A way to work around the bug temporarily that 
> had been proposed is to make the message UID of a mailbox start at a very
> high value (ie 100 000).  Is there a way within Cyrus to make message
> UID start at a specified value, either globally or a on per-mailbox 
> basis ?  I don't think it is possible, but assuming yes, what would be
> involved in renumbering existing messages ?

Is it truely the fact that they don't have the same length, or that the 
UIDL is too long for Outlook?  In either case Outlook is broken and you 
should complain to M$.  Tell them to reread RFC 1939 (assuming the read 
it at all).

You wouldn't have to renumber the existing messages.  The UIDL is just a 
unique string which identifies the messages currently in the mailbox so 
that the client knows if it has already seen them.  Cyrus pop3d uses the 
same mechanism as imapd which is a combination of UIDVALIDITY and UID 
(you'll notice that the number after the '.' is the same as the name of 
the file in the mailbox directory.  Since the client can't fetch by 
UIDL, you can change the string to whatever you want but it better be 
consistent between POP3 sessions for a given message.

If you want to change what Cyrus outputs, just look for "uidl" in 
cmdloop() in pop3d.c

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