Re: [exim] Adding delay on *failure* of condition - impossib…

Top Page
Delete this message
Reply to this message
Author: Wakko Warner
Date:  
To: Eli
CC: exim-users, 'Bill Hacker'
Subject: Re: [exim] Adding delay on *failure* of condition - impossible?
Eli wrote:
> Heh, I blame this on too much work (and not playing with Exim for a while)
> ;P That did it - can't believe I didn't think of that.
>
>  deny    message     = No such account <${local_part}@${domain}>
>          domains     = +treat_as_local
>          !condition  = ${lookup {${local_part}@${domain}} dbmnz
> {/etc/exim.acct.db} {${if eq {$value}{1} {yes}{no}}}}
>          delay       = ${eval:$rcpt_fail_count * 5}s

>
>  accept  domains     = +treat_as_local

>
> Still, it's too bad I can't trigger delay on a false - using endpass was a
> prettier piece of code and it made me feel a bit better at night knowing
> that if for whatever reason a lookup failed, Exim would instead just not
> accept the recipient - now with the quite naked accept after this deny,
> should the deny suffer any baddies, the accept will take the recipient when
> I'd rather not :(


Sure you can...
accept    ...
    ...
    endpass
    ...
    acl =    deny    ...\n\
            delay = ...\n\
        accept ...        


I agree it's not the most elegant solution, but it should work.

--
Lab tests show that use of micro$oft causes cancer in lab animals