Easy way to setup antispam of an emailuser

Discussion in 'Developers' Forum' started by themark, Jun 20, 2014.

  1. themark

    themark Member

    Dear,

    i'm finding the simplest way to setup a "Normal" antispam policy to a new email account created, via API.

    It's there a method to do that?

    In addiction of that, how can grab the mailuser id starting from mail user account?

    Thank's and regards.
    :)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This is done with the function mail_spamfilter_user_add($session_id, $client_id, $params)

    You can query for a mailuser with the advanced syntax of the *_get functions. e.g.:

    $client->mail_user_get($session_id, array('email' => '[email protected]'));
     
  3. themark

    themark Member

    Thank you till, amazing stuff as usual!
    Danke!
     

Share This Page