Re: [Exim] if condition question

Top Page

Reply to this message
Author: Marc Perkel
Date:  
To: exim-users
Subject: Re: [Exim] if condition question
You could do it also in the system filter.

# Various Stalkers blackhole
if "$h_from:" matches "hotmail.com"
then
seen finish
endif


Stephen Fulton wrote:

> Hi all,
>
> I am blocking mail from some sites, like Hotmail, if the mail does not
> come
> from a Hotmail server. However, there are circumstances when legitimate
> mail does come from outside Hotmail, most notably E-Bay. I want to
> expand
> my if match condition to exclude sites like E-Bay, but I haven't found
> documentation which can tell me how to do a more complicated
> condition. So, with that said, here's my current one:
>
> condition = ${if match {$sender_host_name}{\Nhotmail.com$\N}{no}{yes}}
>
> Again, what I want to do is exclude certain providers from that
> condition. Can someone point me in the right direction?
>
> Thanks!
>
> -- Steve
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> Exim details at http://www.exim.org/ ##
>
>