Re: [exim] conditions

Etusivu
Poista viesti
Vastaa
Lähettäjä: Jakob Hirsch
Päiväys:  
Vastaanottaja: gshine
Kopio: exim-users
Aihe: Re: [exim] conditions
Quoting Shine, Gary:

first, please read the list etiquette on
http://www.exim.org/eximwiki/MailingListEtiquette, esp. last point
"thread stealing"

> deny    condition     = ${if
> eq{$sender_helo_name}{{212.151.164.171}{yes}{no}}
> How do I specify more IP addresses


from the spec file:
${if match_ip{$sender_host_address}{1.2.3.4:5.6.7.8}{...}{...}}

matching $sender_helo_name against IP addresses won't give you much. It
contains almost always a host name, and if the client wants to use an IP
address, it has to enclose it into square brackets, like in "EHLO
[1.2.3.4]".