RE: [exim] require verify = sender/callout but if $interface…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Sub Zero
Päiväys:  
Vastaanottaja: exim-users
Kopio: 'Jeremy Harris'
Aihe: RE: [exim] require verify = sender/callout but if $interface_port is 587 require verify = sender
-----Original Message-----
From: exim-users-bounces@??? [mailto:exim-users-bounces@exim.org] On
Behalf Of Jeremy Harris
Sent: Saturday, October 22, 2005 5:34 PM
To: exim-users @ exim. org
Subject: Re: [exim] require verify = sender/callout but if $interface_port
is 587 require verify = sender

>Sub Zero wrote:
>>   require verify          = sender/callout

>>
>> I want to add something like this: if the interface port is
>> 587, don't use the callout function. Please help me to join
>> the following stuff in the acl above.
>>
>>           condition       = ${if eq{$interface_port}{587}...

>
> acl_sverify:
>   accept    condition = ${if eq{$interface_port}{587}}
>        endpass
>        verify = sender
>   accept    verify = sender/callout
>   deny

>
>...
>
>   require    acl =    acl_sverify


Hi Jeremy,

Thank you for your reply.

How can I turn this:

  require verify          = sender/callout
  accept  domains         = +local_domains
          endpass
          message         = "The recipient cannot be verified."
          verify          = recipient


To drop the callout check and do "verify = sender" only if "condition = ${if
eq{$interface_port}{587}}"?

Any better solutions than this:

  deny    condition       = ${if eq{$interface_port}{587}{no}{yes}}
          !verify         = sender/callout
  accept  domains         = +local_domains
          endpass
          message         = "The recipient cannot be verified."
          verify          = recipient


PS: This one doesn't have the "verify = sender" line...