virtual domains, quotas and hashes

Ken Murchison ken at oceana.com
Wed Aug 28 10:34:45 EDT 2002



"Kaj J. Niemi" wrote:
> 
> Hi,
> 
> I was playing in my lab with a test virtual setup, running latest CVS
> (v2.2.prealpha 2002/08/27 20:30:40) and everything seems to work except
> injecting mail via lmtp and quotas. ;-) I've compiled it with --enable-
> fulldirhash and have hashimapspool enabled in /etc/imapd.conf. Everything
> worked nicely until I enabled virtual domains.
> 
> As a global admin, creating a mailbox (cm kajtzu at paavit.com) and then
> adding a quota to it (sq kajtzu at paavit.com 100000) tells me the following:
> 
> Aug 28 10:16:32 jonna imap[29670]: IOERROR: creating quota file /var/imap/domain/E/paavit.com/quota/E/kajtzu.NEW: No such file or directory
> 
> Which is true since the tree is
> 
> /var/imap/domain/p/paavit.com
> /var/imap/domain/p/paavit.com/quota
> /var/imap/domain/p/paavit.com/quota/a
> /var/imap/domain/p/paavit.com/quota/b
> /var/imap/domain/p/paavit.com/quota/c
> /var/imap/domain/p/paavit.com/quota/(...)

If you're going to use fulldirhash, you'll have to create the directory
structure yourself, as I (nor anybody else) has added virtdomain support
to the 'rehash' script.  The mkimap script which you used only does the
simple hash.

> Also, trying to inject mail via lmtpd ends funnily:
> 
> Aug 28 10:30:28 jonna lmtp[29711]: connection from localhost.localdomain [127.0.0.1] preauth'd as postman
> Aug 28 10:30:40 jonna lmtp[29711]: append_check() of 'paavit.com!user.kajtzu' failed
> 
> while to the sender it claims:
> 
> 550-Mailbox unknown.  Either there is no mailbox associated with this
> 550-name or you do not have authorization to see it.
> 550 5.1.1 User unknown
> 
> Any thoughts on what to look for next? ;-)

Same problem as above.  Either recompile with fulldirhash disabled (you
may have to re-create the mailbox), or feel free to add virtdomain
support to rehash  ;)

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