View Full Version : quota_notify does not work
barrysul
23rd August 2006, 06:46
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV)
I followed the above how to and everything seems to work fine.
The only problem I have is that quota notify only reports quota info for one domain. The script expects the domain dirs to exist in /home/vmail/domains, but all of my domain dirs were created in /home/vmail.
How can this be fixed? Can I manually create the 'domains' directory and move the domain dirs into it, or will I break something else.
Please help!
falko
24th August 2006, 17:58
The only problem I have is that quota notify only reports quota info for one domain. The script expects the domain dirs to exist in /home/vmail/domains, but all of my domain dirs were created in /home/vmail.
Are you sure you followed the tutorial as close as possible? Because the mail boxes should be created in /home/vmail/{domain}. Please compare your configuration with the one from the tutorial.
barrysul
26th August 2006, 07:05
This is what my vmail dir looks like, which, it seems, is what your reply is telling me.
#---------------/
#-------------|
#-------------|
#-------home/vmail
#-------|-------------|
#-------|-------------|
# barrysul.com example.com
But this is what quota_notify expects (extracted from comments in /usr/local/sbin/quota_notify)
#
# ---------------------/
#----------------------|
#----------------------|
#----------- home/vmail/domains/
#----------------------|--------------|
#----------------------|--------------|
# example.com/ foo.com/
#----------------------|
#----------------------|
# --------------------
#------------|---------|---------|
#------------|---------|---------|
#---------user1/ user2/ user3/
#----------------------|
#----------------------|
#----------------maildirsize
#
Would everything still work if I changed my 'virtual_mailbox_base" to 'virtual_mailbox_base = /home/vmail/domains' and move the domain dirs into /home/vmail/domains?? That would seem to be the simple solution, if nothing breaks. Otherwise, I think that the quota_notify code would have to change.
Thanks
falko
27th August 2006, 17:49
It's possible that the quota notify script changed since I wrote the tutorial. At the time I wrote the tutorial it was working fine. You can try to change the script and see if it works.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.