[imp] Can I enable "Quota" function with my imap server ?

Eric Rostetter eric.rostetter at physics.utexas.edu
Tue Dec 3 15:03:36 2002


Quoting EdwardSPL@ita.org.mo:

> > See https://mail..ph.utexas.edu/patches/wu-imap-quotas/

Those programs assume you can get the quotas from the web server machine.

> About the System of my company;
> Server A : imap server ( come from redhat 6.2 )
> Server B : Web server ( redhat system 7.2 ) + IMP ( http://horde.org/imp )

Unless server B can get the quotas somehow (nfs mounted/shared disks for
example with nis for user authentication) then these scripts won't work. 
 
> The result of Quota is the attached file...

Sounds like the account "edward" doesn't exist on the webserver? If not,
then the script won't work.  It assumes local (or network shared) accounts
and local (or network mounted) disk access.

Now, you might be able to modify it to use rpc.quota or something like that
*IF* your mail server where running rpc quotas (only likely if it was an
NFS server).  Other than that, you are out of luck with these scripts.

Someone else posted a quota routine that runs the quota command as a cron
job saving the info to a file, and then IMP reads that file.  You could perhaps
set up such as system, but it wouldn't be efficient or time-accurate.  You
would need to have server A create the file periodically, share (e.g. NFS) or
send (e.g. scp) it with server B, which would then grab the quota out of the
file.  If interested, check the IMP list archives for more info.

> Very thank for your more help !

Yeah, sounds like we can't help much though, as all the quota stuff assumes 
either a) your web server and mail server are the same machine, b) your mail
server and web server share disk/account data (nfs/nis/etc) or c) your mail
server supports the IMAP quota commands (which your servers don't).

> Edward.

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the imp mailing list