User Viewable SquirrelMail Quota's

k9Wolf

Verified User
Joined
Jul 6, 2004
Messages
6
I have noted that there are a couple of plugins for SquirrelMail which are supposed to present quota usage.

The objective I have is to display a users pop 3 current usage in SquirrelMail. This will provide a visual warning for when they are reaching their mailbox limit.

Have tried both the available plugins at SquirrelMail without success.

I have included the steps taken below and was wondering if anyone else had succeeded or if there is an alternative people might be using.

-------------------------------
DA with RH 9

Version 1.1 of quota_uage (quota_usage-1.1) has been verified to work with SquirrelMail 1.4.

The proggy has been installed in: /var/www/html/squirrelmail-1.4.2/plugins/quota_usage-1.2.tar.gz/

I then did cd ../../config/ to change to the config directory and ran ./conf.pl

From the menu that runs, I select the plugin and S to save. The a Q to quit the Menu.

Logged into a Squirrelmail Mailbox - checked if anything was showing - nope.

Went back to the pluggins docs..

Its supposed to work with both with Courier-IMAP 1.4.0 > and Cyrus IMAP.

======================
The Plugin FAQ had this to say..

QUESTIONS

1. I use Courier-IMAP with the user quota set, but nothing shows up.


ANSWERS

1. I use Courier-IMAP with the user quota set, but nothing shows up.

A: The "QUOTA" capability is not listed in the configuration file by
default. To turn this on, add "QUOTA" in the CAPABILITY directive
of /usr/lib/courier-imap/etc/imapd, then restart the imap server.

NOTE: Courier-IMAP will NOT report a quota if usage is 0%. If you
Believe you have it setup correctly, try sending a message to the user,
then check again.
======================

I believe I tracked down the required file in /etc/xinetd.d/imap

Did a less to show:

# default: on
# description: imapd
service imap
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/imapd
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}
(END)


Modified the file to include quota:

# default: on
# description: imapd
service imap
{
quota = yes
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/imapd
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}
(END)

Saved the file and ran /sbin/service xinetd restart to restart the service.

Did a cd /var/www/html/squirrelmail-1.4.2/config/ and ran ./conf.pl again.

Added the quota_uage to the plugins menu (8). Saved and quit.
Checked Squirrelmail again - still nothing. :(

I then reversed back out of all the changes made re the plugin and changed back the /etc/xinetd.d/imap to original settings (removed the previous addition of quota = yes

Saved the file and ran /sbin/service xinetd restart to restarted the service.
 
Did you try this on email accounts that had a quota set when they were created through DirectAdmin? If there is no quota then the stats won't work.

I'll try installing and see if I get the same result :)
 
I did not have any luck either.

Maybe someone who has better knowledge of how DA setup and uses imap would be helpful.
 
Thanks for trying Jon

Thanks for trying Jon.

After reading your first reply I too decided to go back and see if it worked with a DA user account as opposed to a DA Pop-email account.

Sadly, it made no difference. At present, I can only think that it might be a compatibility issue with the version of IMAP that DA runs.

the ./conf.pl file for squirrelmail plugins did have a D option (Set pre-defined settings for specific IMAP servers) but I was unsure what settings I should have been using there.

Kind regards,
Rohan.
 
Back
Top