Re: [exim] Quota disciplne, need some help with rules

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Brett Parker
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Quota disciplne, need some help with rules
On 16 Sep 02:44, Tomasz wrote:

<snip class="lots" />

> I've added additional rule to acl_smtp_rcpt chain that will
> deny SMTP for authenticating users, who are in the "blacklist":
>
>   deny    message   = Sending prohibited, your mailbox is full
>           condition = ${if \
>                        ${lookup{$authenticated_id} \
>                        lsearch{/etc/mail/blocked_because_mailboxisfull}}{1}{0}}
>           authenticated = *

>
> But it doesn't work. It logs a failed to expand ACL string, condition name
> expected (?).


Why isn't that, more simply:
    deny message      = Sending prohibited, your mailbox is full
        authenticated = lsearch;/etc/mail/blocked_because_mailboxisfull


> Q1: How should the condition look like to be correct?
> Q2: Is such a rule and a place for that rule (acl_smtp_rcpt, quite high,
> before many other checks) optimal for per-user SMTP prohibition?
>
>
> Ad. b) - bounce incoming mail
> -----------------------------
>
> I'm not sure where this sould be checked.
>
> Q3: If possible during RCPT? That would be perfect, but do I have
> e-mail address to system username relation then?


Well, you must do that lookup sometime, so you could always do that
lookup in an ACL...
--
Brett Parker