On Tuesday 22 May 2007 16:31, Christian Hertel wrote:
> ##
> ## mailfilter incoming
> ##
> mailfilter_incoming_director:
>   driver = manualroute
>   domains = +forward_domains
>   condition = "${if and { \
>                           { !eq {$received_protocol}{mailfilter} } \
>                           { eq
> [EMAIL PROTECTED]/etc/exim4/whitelisted-recipients}}}{
>} } \
>                         } {yes}{no}}"

Use something like this instead:

  condition = "${if and { \
                          { !eq {$received_protocol}{mailfilter} } \
                          { match_address [EMAIL PROTECTED] \
                                        {/etc/exim4/whitelisted-recipients}} \
                        }"

/etc/exim4/whitelisted-recipients has no data, just keys, so the lookup always 
returns the empty string. Alternately, append anything to each line 
of /etc/exim4/whitelisted-recipients. That's a bit more efficient since the 
whole file won't have to be read when there is a match.

>   transport = mailfilter_incoming
>   route_list = "* localhost byname"
>   verify = false

-- 
Magnus Holmgren        [EMAIL PROTECTED]
                       (No Cc of list mail needed, thanks)

  "Exim is better at being younger, whereas sendmail is better for 
   Scrabble (50 point bonus for clearing your rack)" -- Dave Evans

Attachment: pgp3yQyx9Yg0s.pgp
Description: PGP signature

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to