Re: [exim] System Filters

Top Page
Delete this message
Reply to this message
Author: Gareth Hastings
Date:  
To: exim-users
Subject: Re: [exim] System Filters

>
> exim -be
>

'${lookup{${domain:gareth@???}}lsearch{/etc/exim/test/gdh}{yes}{n
o}
> }'
>
> perhaps?


Thanks very much


>(Note that you don't need wildlsearch.) But more importantly,
> how are you going to obtain a domain in a system filter? Remember that
> $domain is not set, because there may be more than one recipient for a
> message. Of course, there's no problem if you are trying to match a
> sender domain.
>


Aren't I able to search through $header_to and $header_cc using
foranyaddress? I'm currently trying to move a system filter that's
running on an Exim 3.x system to a Exim 4.62 system. We current have
filters that check for lots of domains a long winded way i.e.

if $header_to contains "twi.co.uk" or $header_to contains "dom1.co.uk"
then
...
endif


> What are you *really* trying to achieve?


I would like to archive a copy of every email that comes in and out of
the server to a different mailbox but only for select domains!


Thanks