@ jeremy, the issue was resolved with a partial-lsearch, I think the ^.* is 
needed because the sender is [email protected] and I ant to match all before 
name@ and only search for the domain in the file. (that needed to match)

@All
For the future how can you enable debugging in such a way that you can see how 
it is selecting and what is actually in the string? Is that possible?

Thx for everybody his time and effort to reply.

Jan

-----Original Message-----
From: Jeremy Harris [mailto:[email protected]] 
Sent: donderdag 23 oktober 2014 10:16
To: [email protected]
Subject: Re: [exim] Using senders= to send to seperate smarthosts based upon a 
lsearch

On 22/10/14 14:34, Jan Dijk wrote:
> Can anyone please assist? Is there perhaps a bug or why it is not searching 
> the file correctly..
> As I understand it should match the email address like 
> [email protected]<mailto:[email protected]> but I want to list only domain.com in 
> the textfile and then accept everything before the domainname so why is 
> ^.@lsearch;/etc/virtual/spamexperts_domainsout<mailto:%5e.@lsearch;/etc/virtual/spamexperts_domainsout>
>  then not working?
> And or do I need a total other approach to filter the senders domain 
> to direct it to a custom smarthost


I suspect you're confused by the difference between an envelope address and a 
header address.  All that stuff in angle-brackets, lose it.
--
Cheers,
  Jeremy





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

Reply via email to