[imp] wu-imap quotas on Redhat 8 or 9 with imp 3.2.2

AJ aj at mindcrash.com
Fri Sep 19 08:17:49 PDT 2003


Thanks..
I am using IMP4, so I am working with the lib/Quota/command.php file.
Will this still work for that as well?  I have change the permissions on the
quota binary to suid, so do I still need to set up sudo?

Thanks
AJ



>
> >   Where should I insert this code snippet?
>
> The following (all one line) goes just before the "sudo quota" line:
>
> $junk = exec("(grep -w $homedir[1] /etc/fstab || grep -w \"/\" /etc/fstab) |
> cut -f1 -d\  | cut -f1", $my_device); // this is a new line
>
> The next line reads:
>
> if ($return_code === 0 && $my_device === 1) // this is a new line
>
> and the very next line reads (all one line):
>
> $junk = exec("/usr/local/phpbin/sudo /usr/bin/quota -u $imap_admin | grep
> $my_device",$quota_data,$return_code); // replace your existing "quota" line
> with this one.
>
> If you can't make this out, I'll email the entire quota function fragment.
> It works well on three different systems which use radically different disk
> and filesystem layouts.
>
> =Apollyon=
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>



More information about the imp mailing list