Mail filter

Discussion in 'Installation/Configuration' started by alfredo.ardito, Aug 17, 2017.

  1. alfredo.ardito

    alfredo.ardito New Member HowtoForge Supporter

    Mail filter not working. Tried different mail filters. None of them are working.
    Debian Stretch + ISPConfig Version: 3.1.6
    I did a fresh install following "The Perfect Server - Debian 9 (Stretch) with Apache, BIND, Dovecot, PureFTPD and ISPConfig 3.1"
    Everything works fine but I cannot get the mail filter working. Is there something I need to do or check?

    ### BEGIN FILTER_ID:5
    if header :regex ["subject"] [".*test"] {
    fileinto "myfolder";
    stop;
    }
    ### END FILTER_ID:5
    ### BEGIN FILTER_ID:4
    if header :regex ["from"] [".*example\.com"] {
    fileinto "myfolder";
    stop;
    }
    ### END FILTER_ID:4
     
  2. Jesse Norell

    Jesse Norell Well-Known Member

Share This Page