"Move Spam Emails to Junk directory" on by default ?

Discussion in 'Tips/Tricks/Mods' started by radim_h, Jan 17, 2012.

  1. radim_h

    radim_h Member


    is there a way to have mailbox mailfilter option "Move Spam Emails to Junk directory" turned on by default after laibox is created ?

    Or, how to turn it on for all mailboxes without manual clicking ?

    Thanks for any hints
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Change the default of the database field with phpmyadmin.
  3. radim_h

    radim_h Member

    it is not enough, because correct sieve script is not copied into mailbox then...
  4. radim_h

    radim_h Member

    I think that all needed together with database to "y"
    has to be change default sieve script

    require ["fileinto", "regex", "date", "relational", "vacation"];


    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

    but i cannot find, where is the default script located...

    it should be
    but don't know how to change it
    Last edited: Jan 17, 2012
  5. Shifu

    Shifu New Member

    The sieve script get copied for me. So that problem is solved for me :)

    ISPConfig with Dovecot
  6. radim_h

    radim_h Member

    it didn't work some time ago.. it works for me also now...

    But i still have 600+ existing mailboxes, where i want to change it also :||
  7. richi

    richi New Member HowtoForge Supporter

    Is there a way to have those mails moved to the junk folder marked as read also ..?
  8. johjoh2k

    johjoh2k New Member

Share This Page