Re: [exim] help with condition

Página Inicial
Delete this message
Reply to this message
Autor: Wakko Warner
Data:  
Para: Alexandre Busquets
CC: exim-users
Assunto: Re: [exim] help with condition
Alexandre Busquets wrote:
> I have this condition in a router but not runs
>
>
> #check_overquota.pl
> #1 - overquota
> #0 - non overquota
>
> checkoverquota:
> driver = redirect
> allow_fail
> condition = condition = ${if eq {${run{sudo -u test

               ^^^^^^^^^^^^^  typo?

> /home/test/check_overquota.pl $local_part $message_size}}}{1} }
> data = :fail:\n\The user $local_part@$domain is over quota, $local_part
> $message_size.
> local_part_suffix = -*
> local_part_suffix_optional
> retry_use_local_part


Wouldn't it be easier to just do:
condition = ${run{sudo -u test /home/test/check_overquota.pl $local_part $message_size}}

I have forgotten the exact usage of ${run

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