HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Mail quota not working (http://www.howtoforge.com/forums/showthread.php?t=60499)

ttvilaplana 9th February 2013 20:11

Mail quota not working
 
Hello,

I've installed Ispconfig 3.0.4.6 in Debian Squeeze

I'm working on a new server rsynced from old one.

In ispconfig interface I can see a lot of mailbox accounts with 0 kb of "Mailbox Quota".
squirrel works fine and I can see the real usage of the maibox hard disk.

Is strange because not all the mailboxes shows 0Kb in the ispconfig "Mailbox quota".

Looking the ispconfig cron.log I can see a lot of entries like this

du: cannot access `/var/vmail/xxxxxx.com/xxxxxxx': No such file or directory

How can I debug this behavior?

Thanks.

till 11th February 2013 13:06

Ensure that all files and folders in /var/vmail/ are owned by user and group vmail.

ttvilaplana 11th February 2013 13:58

Quote:

Originally Posted by till (Post 291851)
Ensure that all files and folders in /var/vmail/ are owned by user and group vmail.


Thanks Till,
All files and folders are:
drwx------ vmail vmail
except:
drwxr-xr-x 51 root root 4096 Jan 31 18:27 mailfilters

till 11th February 2013 14:07

Ok, so thats ok.

Does the path mentioned in the error message "/var/vmail/xxxxxx.com/xxxxxxx" exists? Or did you move the mailboxes to a different path and the old path is still in the mail_user database table for some mailboxes?

ttvilaplana 11th February 2013 15:39

Yes.

The path exists for every error message in the cron.log
There are also several errors like this: find: `./system': Permission denied

¿Which script executes 'du' command to count the disk occupation of mailboxes? maybe I could follow it to find the error.

Thanks.

till 11th February 2013 16:41

Quote:

¿Which script executes 'du' command to count the disk occupation of mailboxes?
/usr/local/ispconfig/server/server.sh

This script runs as root user, run "crontab -l" as root user to see the cronjob entry.

ttvilaplana 22nd February 2013 08:42

Hello Till

We can't find the problem for wich the mail quote is 0 on isp control panel.

We can see in the cron.log file the following errors when we execute manually the script: /usr/local/ispconfig/server/cron_daily.sh

find: `./bin': Permission denied
find: `./lib': Permission denied
find: `./dev': Permission denied
find: `./system': Permission denied
find: `./home': Permission denied
find: `./usr': Permission denied
find: `./var': Permission denied
find: `./etc': Permission denied

The script you comment /usr/local/ispconfig/server/server.sh don't show any errors.

Thanks

scarleo 29th March 2014 07:51

Mail quota doesn't work for me either, all mail boxes show something like 104 kb even though I know that some of them contains a lot more. Nonw of the mentioned scripts gives any errors.


All times are GMT +2. The time now is 05:04.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.