

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
5 messages in net.sourceforge.lists.courier-usersRE: [courier-users] Recalulate Maildi...| From | Sent On | Attachments |
|---|---|---|
| Carl Libra | Nov 22, 2004 4:48 am | |
| Bowie Bailey | Nov 22, 2004 7:56 am | |
| Carl Libra | Nov 24, 2004 1:50 am | |
| Bowie Bailey | Nov 24, 2004 6:49 am | |
| Carl Libra | Nov 25, 2004 6:09 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | RE: [courier-users] Recalulate Maildirsize after moving mailbox | Actions... |
|---|---|---|
| From: | Carl Libra (crl...@yahoo.com) | |
| Date: | Nov 25, 2004 6:09:43 am | |
| List: | net.sourceforge.lists.courier-users | |
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 <Bowi...@BUC.com> wrote:
From: Carl Libra [mailto:crl...@yahoo.com]
--- Bowie Bailey <Bowi...@BUC.com> wrote:
From: Carl Libra [mailto:crl...@yahoo.com]
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 cour...@lists.sourceforge.net 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 te...@domain.tld
Subject: qwe
qwe
.
EOT
# more maildirsize
262144000S
383 1
#







