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
  #11  
Old 5th May 2009, 22:41
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,259
Thanks: 76
Thanked 23 Times in 19 Posts
Default

sounds all like good advice, still 2 more questions:

- can't find a domain wide filter, only the mailboxes seem to have a fitler attached, I wouldn't want to set this filter up for every emailbox manually or am I just not seeing the right place to put the filter?
- modifying /usr/local/ispconfig/server/plugins-enabled/mail_plugin.inc.php accordingly to your file, when is this applied? how to apply it retroactively to existing mailboxes?
Reply With Quote
Sponsored Links
  #12  
Old 28th June 2009, 22:21
OnePercentile OnePercentile is offline
Junior Member
 
Join Date: May 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default still not working

I've used this information. It looks good, but when creating a new email account no "Junk" folder appears within SquirrelMail .. Additionally, there appears to be no domain filter rule. Am I missing something? This thread seems to have died with no resolution. Thanks
Jordan

Quote:
Originally Posted by ihamouda View Post
here is it, cut and paste from my working file:
Code:
if(!empty($maildomain_path) && !is_dir($maildomain_path)) {
			exec("su -c 'maildirmake ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']);
			exec("su -c 'maildirmake -f Junk ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']);
			exec("su -c 'maildirmake -f Drafts ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']);
			exec("su -c 'maildirmake -f Sent ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']);
			exec('chown -R '.$mail_config['mailuser_name'].':'.$mail_config['mailuser_group'].' '.escapeshellcmd($data['new']['maildir']));
			$app->log("Set ownership on ".escapeshellcmd($data['new']['maildir']),LOGLEVEL_DEBUG);
			//* This is to fix the maildrop quota not being rebuilt after the quota is changed.
			exec("su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']); // Avoid maildirmake quota bug, see debian bug #214911
			$app->log('Created Maildir: '."su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name'],LOGLEVEL_DEBUG);
		}
Reply With Quote
  #13  
Old 30th June 2009, 05:27
jbryner jbryner is offline
Junior Member
 
Join Date: May 2009
Posts: 17
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I'd love to add this, but after looking at mail_plugin.inc.php, I am at a little bit of a loss about where to put it and what to replace. I found reference to create mailbox, but... Any help you could give me would be great. My apologies for not being quite up to speed on php. Am learning (slowly)
Reply With Quote
  #14  
Old 30th June 2009, 15:06
int0x21 int0x21 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Im having a little trouble with the filter
How would a filter look to make something tagged with ***SPAM*** end up in .Spam folder
Reply With Quote
  #15  
Old 4th October 2009, 19:31
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 418
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
Default

Seems simple but it doesnt work for me folders are not created

Nothing in ispc debug log:
04.10.2009-19:47 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
04.10.2009-19:47 - DEBUG - Found 2 changes, starting update process.
04.10.2009-19:47 - DEBUG - Processed datalog_id 801
04.10.2009-19:47 - DEBUG - Processed datalog_id 802
04.10.2009-19:47 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock


Quote:
Originally Posted by ihamouda View Post
here is it, cut and paste from my working file:
Code:
if(!empty($maildomain_path) && !is_dir($maildomain_path)) {
			exec("su -c 'maildirmake ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']);
			exec("su -c 'maildirmake -f Junk ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']);
			exec("su -c 'maildirmake -f Drafts ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']);
			exec("su -c 'maildirmake -f Sent ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']);
			exec('chown -R '.$mail_config['mailuser_name'].':'.$mail_config['mailuser_group'].' '.escapeshellcmd($data['new']['maildir']));
			$app->log("Set ownership on ".escapeshellcmd($data['new']['maildir']),LOGLEVEL_DEBUG);
			//* This is to fix the maildrop quota not being rebuilt after the quota is changed.
			exec("su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']); // Avoid maildirmake quota bug, see debian bug #214911
			$app->log('Created Maildir: '."su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name'],LOGLEVEL_DEBUG);
		}

Last edited by radim_h; 4th October 2009 at 19:48.
Reply With Quote
  #16  
Old 6th October 2009, 14:23
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 418
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
Default

and one more question, please..

in original script /usr/local/ispconfig/server/plugins-enabled/mail_plugin.inc.php

there are two same blocks starting with:

//* Create the maildir, if it doesn not exist, set permissions, set quota.
if(!empty($maildomain_path) && !is_dir($maildomain_path)) {
exec("su -c 'maildirmake ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']);


At line 105

And line 156

Are you modyfying both of them ??
Reply With Quote
  #17  
Old 8th October 2009, 21:51
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 418
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
Default

no one has any idea, what's wrong?
Reply With Quote
  #18  
Old 25th October 2009, 00:40
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 418
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
 
Default Fixed!

http://bugtracker.ispconfig.org/inde...ls&task_id=943
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
ISPConfig3 mail issues warlock Developers' Forum 19 26th January 2009 10:34
Move junk mail to a folder instead of deleting grant Tips/Tricks/Mods 20 22nd October 2008 23:09
Mail folders aren't being created bswinnerton Installation/Configuration 3 4th May 2008 16:24


All times are GMT +2. The time now is 07:32.


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