The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

require verify = sender/callout but if $interface_port is 587 require verify = sender

Discussion in 'General Discussion' started by SubZero, Oct 29, 2005.

  1. SubZero

    SubZero Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Balmumcu, Istanbul, TR
    Hi,

    I want to set something here. I have this in my current config:

    Code:
      require verify          = sender/callout
      accept  domains         = +local_domains
              endpass
              message         = "The recipient cannot be verified.  Please check all recipients of this message to verify they are valid."
              verify          = recipient
    I want to add something like this:
    if the interface port is 587, don't use the callout function. Please help me to join theese two.

    Code:
              condition       = ${if eq{$interface_port}{587}{yes}{no}}
    Code:
      require verify          = sender
    Awaiting your answers.
     
  2. nisse

    nisse Well-Known Member

    Joined:
    Nov 11, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    Code:
    deny
      condition = ${if eq{$interface_port}{587}{no}{yes}}
      !verify   = sender/callout
     
  3. SubZero

    SubZero Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Balmumcu, Istanbul, TR
    So nisse, all I have to do is this:

    Code:
      deny    condition       = ${if eq{$interface_port}{587}{no}{yes}}
              !verify         = sender/callout
      accept  domains         = +local_domains
              endpass
              message         = "The recipient cannot be verified.  Please check all recipients of this message to verify they are valid."
              verify          = recipient
    Right?
     
  4. nisse

    nisse Well-Known Member

    Joined:
    Nov 11, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    Yep, that should do it. :)
     
  5. SubZero

    SubZero Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Balmumcu, Istanbul, TR
    but where is the
    Code:
              verify          = sender
    part here? :)
     
    #5 SubZero, Oct 30, 2005
    Last edited: Oct 30, 2005
  6. nisse

    nisse Well-Known Member

    Joined:
    Nov 11, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    It's in the second line.

    What it's saying is:

    - verify the sender if the port isn't 587, and
    - if the sender verification fails, don't accept the message.
     
  7. nisse

    nisse Well-Known Member

    Joined:
    Nov 11, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    Ah, sorry - I see what you're trying to do now. :eek:

    This should do it:

    Code:
    deny
      condition = ${if eq{$interface_port}{587}{no}{yes}}
      !verify   = sender/callout
    
    deny
      condition = ${if eq{$interface_port}{587}{yes}{no}}
      !verify   = sender
     
Loading...

Share This Page