Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. nisse

    nisse Well-Known Member

    Joined:
    Nov 11, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    156
    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:
    166
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. nisse

    nisse Well-Known Member

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

    SubZero Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Balmumcu, Istanbul, TR
    but where is the
    Code:
              verify          = sender
    part here? :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #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:
    156
    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:
    156
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice