Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th January 2011, 18:13
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 419
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
Default Move Spam Emails to Junk directory by default? Spamfilter = Normal by default?

Hello,

is there any option to have
mailfiter "Move Spam Emails to Junk directory"
set by default for each mailbox?

Regular BFU will never turn any kind of mail filter on, and then people are complainign that they are getting spams into inbox

i Tried to change
move_junk=y as default in table mail_user , but its not enough..
for new user Move Spam Emails.. is checked in in ISPC, but sieve script is not on place..
i have to uncheck this option in ISPC and then check it back if i want to right /var/vmail/domain/user/.sieve script on place

--------------

It will be beautifull have also the choice
Mail Domain => Spamfilter => Normal
Mailbox => Spamfilter => Normal

selected by default with all new email domains and all new mailboxes..

Something as default "Email Domain/Mailbox" template....



i'm using Ubuntu 10.04LTS + Dovecot

Last edited by radim_h; 7th January 2011 at 18:24.
Reply With Quote
Sponsored Links
  #2  
Old 10th January 2011, 17:15
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 419
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
Default

Sorry
That part with NORMAL policy was explained to me by Till here http://www.howtoforge.com/forums/sho...392#post243392

Just summary:
edit: /usr/local/ispconfig/interface/web/mail/mail_domain_edit.php
after existing line 166 - $policy_select = "<option value='0'>".$app->tform->wordbook["no_policy"]."</option>";
add line:
if($this->id == 0) $tmp_user["policy_id"] = 5;

edit: /usr/local/ispconfig/interface/web/mail/mail_user_edit.php
after existing line 95 - $policy_select = "<option value='0'>".$app->tform->lng("no_policy")."</option>";
add line:
if($this->id == 0) $tmp_user["policy_id"] = 5;


=====
But i still cannot find, where to turn "Move Spam Emails to Junk directory" ON by default ???

Last edited by radim_h; 10th January 2011 at 17:39.
Reply With Quote
  #3  
Old 17th January 2012, 23:14
Shifu Shifu is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm also looking for a way to set the move_junk field on by default.

I tried by editing: /usr/local/ispconfig/interface/web/mail/form/mail_user.tform.php:261

Setting default to 'y'.

PHP Code:
        'move_junk' => array (
            
'datatype'    => 'VARCHAR',
            
'formtype'    => 'CHECKBOX',
            
'default'    => 'y',
            
'value'        => array(=> 'y',=> 'n')
        ), 
It's simply doesn't work for that field. If i change other CHECKBOX fields on the same page from No to Yes it works. Thats pretty confusing.

Thanks,
Alex
Reply With Quote
  #4  
Old 17th January 2012, 23:22
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 419
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
Default

Sorry , i did double post by mistake, did'nt remember i have asked in this forum some time ago...
There is the second one
http://www.howtoforge.com/forums/showthread.php?t=55801

Last edited by radim_h; 17th January 2012 at 23:25.
Reply With Quote
  #5  
Old 17th January 2012, 23:25
Shifu Shifu is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh, that was too new to find with Google :-). I will participate in the other thread
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Install failure -- Apache 1.3 missing? Allen15 Installation/Configuration 11 24th February 2009 09:53
ISPConfig install issues... flyingaggie Installation/Configuration 2 18th July 2008 10:46
Ubuntu 8.04 Spamsnake - all SA scores 0.00 Thomas_Powers HOWTO-Related Questions 23 24th June 2008 17:37
Installation Error, Debian 3.1 yogi183 Installation/Configuration 6 23rd February 2007 16:11
ERROR: The PHP binary coming with ISPConfig does not work properly on your system W1SKCC Installation/Configuration 2 2nd February 2007 13:55


All times are GMT +2. The time now is 02:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.