Error: sieve: .ispconfig-before: parse failed - line 17: "spam"

Discussion in 'Installation/Configuration' started by DrSheep, Jul 13, 2022.

  1. DrSheep

    DrSheep New Member

    Hello,
    today I found something mystic. Sieve can't compile ".ispconfig-before.sieve" because at last line it appear "spam" (for example if I create a new mail account).
    This error appear:
    System: debian 10, latest isp

    Here the content:
    Code:
    # This sieve script is generated by ISPConfig, any changes made will be overwritten.
    # You can create and activate a per-user sieve script (manually or via managesieve),
    # which will execute after this.
    
    require ["fileinto", "mailbox", "regex", "date", "relational", "vacation", "imap4flags", "envelope", "subaddress", "copy", "reject"];
    
    # Move spam to spam folder
    if anyof (header :is ["X-Spam", "X-Spam-Flag"] "Yes", header :matches "X-Spam-Status" "Yes, *") {
      fileinto :create "Junk";
      # Stop here so that we do not reply on spams
      stop;
    }
    
    
    spam
    Where it comes? I checked '/usr/local/ispconfig/server/conf/sieve_filter.master' but everything, including configs, are default by auto-installer.
    It seems exist long time ago (or since beginning)? I know that "spam" at the end is wrong, but I checked server now 3 hours... and didn't find where it's adding to the sieve conf.

    I think about to reinstall server - but I'm unsure how to secure mails and recover.
    Is it enough to backup /var/vmail, ispconfig database and some config files - reinstall and upload backups (change ispconfig db password in new server instance)?


    Maybe someone have an idea or can tell me that a mail backup and recover can work like this. Thank you very much!

    Best, JE
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Reinstalling makes no sense for such an issue, so do not reinstall. Plus its c´very likely that a reinstall will not solve it anyway as the word spam is most likely part of the configuration of the affected mailbox. Regarding your issue, check the custom filter rules field of the mailbox, you probably entered the word spam there.
     
  3. DrSheep

    DrSheep New Member

    Hi,
    thanks for your fast reply.
    Mhh... the ispconfig /custom-conf/ folder is empty and in panel there are no entries. Only domain and email accounts as list.
    I tried "search-in-files" for "spam" in /var and /etc... but nothing. Only the .sieve that are corrupted.
    So I can edit everything by hand... but after next mail or edit via isp the syntax error is saved again.

    Do you have any ideas where I can find else? I checked /etc/dovecot/*; /etc/postfix/*; and /usr/local/ispconfig/server/*
    EDIT: Now I'm sure: I changed one mail account by removing "spam" in .sieve and it moves first time in server lifetime spam to spam folder! :))

    Best, JE
     
    Last edited: Jul 14, 2022

Share This Page