Re: [exim] Missing File creates error

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Marc Perkel
Data:  
Para: exim-users
Asunto: Re: [exim] Missing File creates error
Yes - thanks - I got it working now:

personal_blackhole:
  driver = redirect
  data = :blackhole:
  local_part_suffix=-*
  local_part_suffix_optional
  senders = ${if exists {/etc/squirrelmail/prefs/$local_part@$domain.block}\
             {/etc/squirrelmail/prefs/$local_part@$domain.block}}
  domains = +virtual_local_domains
  no_verify


This takes info from a squirrelmail pluging for blocklists and lest exim
do the blocking.

Edgar Lovecraft wrote:

>
>..[snip]...
>
>
>
>OOPS! first oops, file and data options are mutually exlusive, sorry
>about that one, and oops two, senders and require_files are both
>preconditions, so you need to wrap those in ${if statments, along the
>lines of:
>
>${if exists\
>    {/etc/squirrelmail/prefs/${lc:$local_part}\@${lc:$domain}.block}\
>    {/etc/squirrelmail/prefs/${lc:$local_part}\@${lc:$domain}.block}\
>    {/var/spool/mail/empty/.THIS_BETTER_NOT_EXIST}\
>}

>
>
>