Email Filtering

Discussion in 'Installation/Configuration' started by goebelmeier, Mar 3, 2012.

  1. goebelmeier

    goebelmeier ISPConfig Developer ISPConfig Developer

    Hello forum,

    i'm working a quite long time with ISPconfig 3 yet. But i don't find any solution to create an email filter which catches emails with a specific mail address in To: AND Cc:

    I want to filter some emails which are sent to a specific mailing list. Sometimes the mailing lists email address is in To: and sometimes in Cc:

    Until now i just can filter emails with that mail address in the To: header. How to combine To: and Cc:

    I'm using courier-imap until i find a valid migration strategy to dovecot.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Maildrop offers more extensive mailfiltering options then dovecot, so when it comes to mail filtering then courier is the more versatile option. Please see here:

    http://www.courier-mta.org/maildrop/maildroptips.html

    so a if statement to filter to and cc would look like this

    Code:
    if ( /^TO:a@a.tld/ && / ^CC:b@b.tld/ )
         {
            .........
         }
    
     
  3. goebelmeier

    goebelmeier ISPConfig Developer ISPConfig Developer

    Thank you till,

    i created custom filter in custom filter like this:
    Afterwards i deleted my rule which i created first. I will wait until i receive some emails from my mailing list, but i expect it will be working now. Thank you for your assisstance.
     

Share This Page