Re: [exim] Rejecting over quota at RCPT time - revisited

Pàgina inicial
Delete this message
Reply to this message
Autor: Robert Blayzor
Data:  
A: Todd Lyons
CC: exim-users@exim.org
Assumpte: Re: [exim] Rejecting over quota at RCPT time - revisited
On Nov 29, 2012, at 11:59 AM, Todd Lyons <tlyons@???> wrote:
> I'm envisioning an external daemon to check for over_quota condition:
> 1. Listen on $port.
> 2. Accept requests such as "CHECK_QUOTA local_part domain"
> 3. Check for key in memcache for this email address, return "1" if
> found and is overquota (has value bigger than zero).
> 4. If not found, or has value 0, do the quota calculation from the
> maildirsize file, set the key in memcache with some small TTL, then
> return answer to socket ("0" = ok, "1" = over quota) and close.
>
> Along the same lines as your thoughts? (aside from external daemons == UGLY).



While working on the same thing, I ran into the same issue you had with the effective user and squash root on the NetApp. (same exact thing here).

Since the "real user" is uid 0 I was able to change the effective user in Perl to whatever I wanted to, so in my case:


$> = getpwnam('mailnull') or warn "cannot set effective user!";


And now it works fine.

--
Robert Blayzor
INOC, LLC
rblayzor@???
http://www.inoc.net/~rblayzor/