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
> {${lookup{$local_part@$domain}lsearch{/etc/exim4/whitelisted-recipients}}}{
>} } \
> } {yes}{no}}"
Use something like this instead:
condition = "${if and { \
{ !eq {$received_protocol}{mailfilter} } \
{ match_address {$local_part@$domain} \
{/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 holmgren@???
(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