Here the commands and listings on what Im doing.

Hope it makes sence .. moving (on the same server) to
another mailbox. Here the quota isn't taken even from
the mails already in there. Only the new mailed mail
is counted.

/var/mail/virtual/domain.tld/carl -> 
  /var/mail/virtual/domain.tld/test




--- Bowie Bailey <[EMAIL PROTECTED]> wrote:

> From: Carl Libra [mailto:[EMAIL PROTECTED]
> > 
> > --- Bowie Bailey <[EMAIL PROTECTED]> wrote:
> > 
> > > From: Carl Libra [mailto:[EMAIL PROTECTED]
> > > > 
> > > > We are moving away from an old server into a
> server that
> > > > supports quota. I moved the messages/folders
> and they are
> > > > accessable for the user. What doesn't happen
> is that the these
> > > > messages are added to the total usage.
> > > > 
> > > > I tried to recalulate the Maildir but no luck
> ..  searched the
> > > > (man)pages but can't find any good references.
> > > 
> > > Delete all but the first line of the
> Maildir/maildirsize file.
> > > Quotas will be recalculated after the next
> delivery.
> >
> > Removed all but the top line. Then I see it gets
> filled again but
> > doesn't take in account the new created folders.
> These folders are
> > accessable from the IMAP server.
> > 
> > What is the procedure to move from one server to
> another. Im trying
> > the following.
> > 
> > Create gz file from all folders in the Maildir/
> FTP to new server
> > and unpack in newly created Maildir/ chown all to
> have the correct
> > ownership Then empty the maildirsize files (leave
> top line) Sent
> > mail to account to have size recalulated.
> > 
> > All new dirs are accessable and the file names
> include the size ...
> > 
> > What goes wrong ?
> 
> I'm not sure what the problem is here.  The only
> thing I can think of
> is a problem with the permissions or the directory
> structure.
> 
> Send me the output of an 'ls -lRa' on the maildir. 
> If you have any
> humungous directories, you can cut all but 3 or 4 of
> the email files
> from the output before you mail it.
> 
> Bowie
> 
> 
>
-------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT
> Products from real users.
> Discover which products truly live up to the hype.
> Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe:
>
https://lists.sourceforge.net/lists/listinfo/courier-users
> 


                
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 
# pwd
/var/mail/virtual/domain.tl/carl
# ls -al
total 52
drwx------  10 _postfix  wheel  512 Nov 23 16:17 .
drwx------   5 _postfix  wheel  512 Nov 25 14:18 ..
drwx------   6 _postfix  wheel  512 Nov 22 16:58 .Drafts
drwxr-xr-x   6 _postfix  wheel  512 Nov 23 16:17 .Old
drwx------   6 _postfix  wheel  512 Nov 22 14:10 .Sent
drwx------   6 _postfix  wheel  512 Nov 22 16:58 .Trash
drwx------   2 _postfix  wheel  512 Nov 23 15:10 courierimapkeywords
-rw-r--r--   1 _postfix  wheel   52 Nov 23 16:16 courierimapsubscribed
-rw-r--r--   1 _postfix  wheel  241 Nov 23 16:16 courierimapuiddb
drwx------   2 _postfix  wheel  512 Nov 23 16:16 cur
-rw-------   1 _postfix  wheel   16 Nov 23 16:18 maildirsize
drwx------   2 _postfix  wheel  512 Nov 23 16:18 new
drwx------   2 _postfix  wheel  512 Nov 23 16:18 tmp
# ls -al
total 32
drwx------   2 _postfix  wheel   512 Nov 23 16:16 .
drwx------  10 _postfix  wheel   512 Nov 23 16:17 ..
-rw-------   1 _postfix  wheel  2045 Nov 22 14:20 
1101129601.V6I114b9d.nemo.domain.tld,S=2045:2,ST
-rw-------   1 _postfix  wheel  2132 Nov 22 14:28 
1101130138.V6I114baa.nemo.domain.tld,S=2132:2,S
-rw-------   1 _postfix  wheel  1991 Nov 23 14:31 
1101216697.V6I114bc4.nemo.domain.tld,S=1991:2,S
-rw-------   1 _postfix  wheel  1991 Nov 23 14:34 
1101216866.V6I114bca.nemo.domain.tld,S=1991:2,S
-rw-------   1 _postfix  wheel  1227 Nov 23 16:15 
1101222906.V6I114bed.nemo.domain.tld,S=1227:2,
# cp *.* ../../test/.moved/cur/
# cd ../../test/.moved/cur/
# ls -al
total 32
drwx------  2 _postfix  wheel   512 Nov 25 14:22 .
drwx------  5 _postfix  wheel   512 Nov 25 14:20 ..
-rw-------  1 root      wheel  2045 Nov 25 14:22 
1101129601.V6I114b9d.nemo.domain.tld,S=2045:2,ST
-rw-------  1 root      wheel  2132 Nov 25 14:22 
1101130138.V6I114baa.nemo.domain.tld,S=2132:2,S
-rw-------  1 root      wheel  1991 Nov 25 14:22 
1101216697.V6I114bc4.nemo.domain.tld,S=1991:2,S
-rw-------  1 root      wheel  1991 Nov 25 14:22 
1101216866.V6I114bca.nemo.domain.tld,S=1991:2,S
-rw-------  1 root      wheel  1227 Nov 25 14:22 
1101222906.V6I114bed.nemo.domain.tld,S=1227:2,
# chown _postfix *
# ls -al
total 32
drwx------  2 _postfix  wheel   512 Nov 25 14:22 .
drwx------  5 _postfix  wheel   512 Nov 25 14:20 ..
-rw-------  1 _postfix  wheel  2045 Nov 25 14:22 
1101129601.V6I114b9d.nemo.domain.tld,S=2045:2,ST
-rw-------  1 _postfix  wheel  2132 Nov 25 14:22 
1101130138.V6I114baa.nemo.domain.tld,S=2132:2,S
-rw-------  1 _postfix  wheel  1991 Nov 25 14:22 
1101216697.V6I114bc4.nemo.domain.tld,S=1991:2,S
-rw-------  1 _postfix  wheel  1991 Nov 25 14:22 
1101216866.V6I114bca.nemo.domain.tld,S=1991:2,S
-rw-------  1 _postfix  wheel  1227 Nov 25 14:22 
1101222906.V6I114bed.nemo.domain.tld,S=1227:2,
# cd ../../
# ls -al
total 52
drwx------  10 _postfix  wheel  512 Nov 25 14:25 .
drwx------   5 _postfix  wheel  512 Nov 25 14:18 ..
drwx------   5 _postfix  wheel  512 Nov 25 14:20 .Drafts
drwx------   5 _postfix  wheel  512 Nov 25 14:20 .Sent
drwx------   6 _postfix  wheel  512 Nov 25 14:20 .Trash
drwx------   6 _postfix  wheel  512 Nov 25 14:25 .moved
drwx------   2 _postfix  wheel  512 Nov 25 14:20 courierimapkeywords
-rw-r--r--   1 _postfix  wheel   48 Nov 25 14:20 courierimapsubscribed
-rw-r--r--   1 _postfix  wheel   59 Nov 25 14:25 courierimapuiddb
drwx------   2 _postfix  wheel  512 Nov 25 14:25 cur
-rw-------   1 _postfix  wheel   17 Nov 25 14:24 maildirsize
drwx------   2 _postfix  wheel  512 Nov 25 14:25 new
drwx------   2 _postfix  wheel  512 Nov 25 14:25 tmp
# more maildirsize
262144000S
# mail [EMAIL PROTECTED]
Subject: qwe
qwe
.
EOT
# more maildirsize
262144000S
383 1
#

Reply via email to