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.

API2 Email::storefilter No valid rules.

Discussion in 'cPanel Developers' started by simonas, Apr 26, 2014.

  1. simonas

    simonas Well-Known Member

    Joined:
    Apr 21, 2013
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lithuania
    cPanel Access Level:
    Root Administrator
    Hello,

    I am trying to setup email forwarder with filter (to not leave copy on server).

    When submitting these values:

    Array
    (
    [account] =>
    [action] => deliver
    [dest] => to@mail.com
    [filtername] => account@mail.com
    [match] => matches
    [part] => $header_to:
    [val] => account@mail.com
    )

    Response from the API is: No valid rules.
    Any ideas?om the API is: No valid rules.
    Any ideas?

    Thank you.

    - - - Updated - - -

    Figured it out myself.

    Although API doc clearly states:

    You still need use numbered version:

    Array
    (
    [account] =>
    [action1] => deliver
    [dest1] => to@mail.com
    [filtername] => account@mail.com
    [match1] => matches
    [part1] => $header_to:
    [val1] => account@mail.com
    )
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page