"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 HowtoForge Supporter

    Hello,

    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
    RH
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

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

    radim_h Member HowtoForge Supporter

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

    radim_h Member HowtoForge Supporter

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

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

    to

    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;
    }

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

    it should be
    /usr/local/ispconfig/server/conf/sieve_filter_1.2.master
    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 3.0.4.2 with Dovecot
     
  6. radim_h

    radim_h Member HowtoForge Supporter

    great!
    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