Sieve failed to store into mailbox 'Junk'

Discussion in 'ISPConfig 3 Priority Support' started by Taleman, Dec 28, 2017.

  1. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Debian Stretch, Perfect server Apache, Dovecot, Postfix etc.

    This is from /var/vmail/somedomain.fi/emailuser/.sieve.log
    Code:
    sieve: info: started log at Dec 28 06:05:13.
    error: msgid=<[email protected]>: failed to store into mailbox 'Junk': Mailbox doesn't exist: Junk.
    
    Using Dovecot and Roundcube. Why is sieve not creating that Junk folder? Quota is not full. This is from sieve/ispconfig.sieve

    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;
    }
    
    
    
    keep;
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig creates that folder when it creates the mailbox. Is it possible that the user deleted the Junk folder? I'm not sure if Sieve can create folders automatically, but that might be the case.
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    This affects only some users. All users were migrated with migtool from old server, I have not checked if Junk existed previously or not. These messages started appearing on the TARGET after migration.
    Should I just find which mailboxes lack the Junk folder and create it with mkdir and chmod chown?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, that's probably the best option.
     

Share This Page