Koozali.org: home of the SME Server

Delete User/Mailbox - Hard-disk space not correct?

Offline dbuechel

  • ****
  • 99
  • +0/-0
Delete User/Mailbox - Hard-disk space not correct?
« on: June 02, 2016, 08:17:36 AM »
Hey,

I have a big problem with our Hard-disk space when I delete a user account.

Example:
Our Hard-disk space have when 46G - Used 9,4G

I create a user and over fetchmail start the connect to a pop3 account and download over 23500 emails ;)

Then I have 25G used hard-disk space - all ok.

But now, when I delete the user over the server-manager, it delete the mail account on the hard-disk but my Hard-disk space have used 17GB

This is a different from 7.6G from start the user account!

What will not be deleted?
What can I do to clean up the hard drive?



Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #1 on: June 02, 2016, 08:47:14 AM »
Do you have alwaysbcc enabled? Did you forward emails to other accounts?

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #2 on: June 02, 2016, 08:56:14 AM »
No - there is only one user account maillog and the admin account.


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #3 on: June 02, 2016, 08:57:55 AM »
Well.. Check users' quota, maillog make me think you have alwaysbcc enabled

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #4 on: June 02, 2016, 09:16:46 AM »
Really - I've tested the now twice with a fresh installation.
I create only the user maillog, and run fetchmail.

There is only ONE user folder:
/home/e-smith/files/users/  => admin

And I don't use this:
=> Keep a copy of all emails

config setprop qpsmtpd Bcc enabled
signal-event email-update




Offline brianr

  • *
  • 990
  • +2/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #5 on: June 02, 2016, 10:40:17 AM »
In my experience deleting files in Linux does not always free the space instantly, I guess the garbage collection is run as a background task.  I'd have expected it to complete with an hour or so though.

I think we'd need to see the evidence ("df" and "du"  before and after)?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #6 on: June 02, 2016, 10:55:43 AM »
please, post the output of
Code: [Select]
config show qpsmtpd

thank you

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #7 on: June 02, 2016, 11:00:50 AM »
Quote
qpsmtpd=service
    Bcc=disabled
    BccMode=cc
    BccUser=maillog
    DNSBL=disabled
    LogLevel=6
    MaxScannerSize=25000000
    RBLList=bl.spamcop.net:dnsbl-1.uceprotect.net:dnsbl-2.uceprotect.net:psbl.surriel.com:zen.spamhaus.org
    RHSBL=disabled
    RelayRequiresAuth=disabled
    SBLList=multi.surbl.org:black.uribl.com:rhsbl.sorbs.net
    TlsBeforeAuth=1
    access=public
    qplogsumm=disabled
    status=enabled

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #8 on: June 02, 2016, 11:02:31 AM »
ok

Code: [Select]
cd /home/e-smith/files/users
du -s -m * | sort -nr

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #9 on: June 02, 2016, 11:06:27 AM »
Only:

Quote
1   admin

see picture ;)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #10 on: June 02, 2016, 11:07:59 AM »
ok..

Code: [Select]
cd /
du -s -m * | sort -nr | head

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #11 on: June 02, 2016, 11:16:08 AM »
Quote
[root@willmsmail /]# du -s -m * | sort -nr | head
du: Zugriff auf „proc/3157/task/3157/fd/4“ nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf „proc/3157/task/3157/fdinfo/4“ nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf „proc/3157/fd/4“ nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf „proc/3157/fdinfo/4“ nicht möglich: Datei oder Verzeichnis nicht gefunden
14845   var
907     usr
322     lib
77      home
71      boot
37      etc
20      sbin
8       bin
3       dev
2       tmp
[root@willmsmail /]#

in english:

you: could not access "proc/3157/task/3157/fd/4": file or directory not found
you: could not access "proc/3157/task/3157/fdinfo/4": file or directory not found
you: could not access on "proc/3157/fd/4": file or directory not found
you: could not access on "proc/3157/fdinfo/4": file or directory not found

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #12 on: June 02, 2016, 11:18:45 AM »
well.. you have 14845 mb (i.e. about 14 Gb) in /var, which is strange IMHO

let's investigate :-)

Code: [Select]
cd /var
du -s -m * | sort -nr | head

if necessary, repeat this step

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #13 on: June 02, 2016, 11:28:59 AM »
Quote
[root@willmsmail /]# cd /var
[root@willmsmail var]# du -s -m * | sort -nr | head
14397   spool
175     log
119     clamav
87      lib
63      cache
3       service
3       qmail
2       www
1       yp
1       tmp
[root@willmsmail var]# cd /spool
-bash: cd: /spool: Datei oder Verzeichnis nicht gefunden

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Delete User/Mailbox - Hard-disk space not correct?
« Reply #14 on: June 02, 2016, 11:34:58 AM »
Quote
[root@willmsmail spool]# du -s -m * | sort -nr | head
14397   qpsmtpd
1       vbox
1       squid
1       spamd
1       samba
1       plymouth
1       mail
1       lpd
1       cron
1       clamav


In this folder:

14397   qpsmtpd

all email´s inside!

Can I delete all files?
« Last Edit: June 02, 2016, 11:36:56 AM by dbuechel »