Sieve script issue after migrating 3.0.5.4p8 to 3.1.5 and courier to dovecot

Discussion in 'General' started by Miron, Jul 15, 2017.

  1. Miron

    Miron New Member

    I migrated from ispconfig 3.0.5.4p8 to 3.1.5 using the ispconfig migration tool. I also migrated from courier to dovecot. Worked like a charm. But something is wrong with sieve, I am getting following error messages since then:

    In the /var/log/mail.log
    Code:
    Jul 15 13:56:35 mars dovecot: lda([email protected]): sieve: failed to compile script /var/vmail/example.com/foo/.sieve;name=main script (view user logfile /var/vmail/example.com/foo/.sieve.log for more information)
    Sieve log at /var/vmail/example.com/foo/.sieve.log
    Code:
    sieve: info: started log at Jul 15 13:56:35.
    main script: line 12: error: expecting test identifier after '(' in test list, but found '/'.
    main script: line 12: error: unexpected character(s) starting with '^'.
    main script: line 12: error: unexpected character(s) starting with '.'.
    main script: line 13: error: failed to accept more tests for command 'if'.
    main script: error: parse failed.
    Sieve script at /var/vmail/example.com/foo/sieve (first 18 lines)
    Code:
    require ["fileinto", "regex", "date", "relational", "vacation"];
    
    
    # Move spam to spam folder
    if header :contains "X-Spam-Flag" "YES" {
      fileinto "Junk";
      # Stop here so that we do not reply on spams
      stop;
    }
    
    ### BEGIN FILTER_ID:23
    if (/^Subject: .*pharmacology/:h)
    {
    exception {
    to /dev/null
    }
    }
    ### END FILTER_ID:23
    Did someone encounter something similar ? How can i fix it ? Seems like the error is only thrown on migrated mail accounts. Accounts created in ispconfig 3.1.5 work without any issues.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Under System > Server config > Mail is a field 'Mailfilter Syntax', is that set to sieve?
     
  3. Miron

    Miron New Member

    Yes, it is set to sieve.
     
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    does Tools > Resync > Mailfilter fix it?
     
  5. Miron

    Miron New Member

    Unfortunately after the mailfilter resync the error still gets thrown. I also restarted the server ...
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try to add a new mail filter for one of the affected mailboxes and save it, does the error disappear then for this one mailbox?
     

Share This Page