#1  
Old 5th December 2005, 12:43
jmroth jmroth is offline
ISPConfig Developer
 
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 6 Times in 6 Posts
Default customized procmail setup

Hi there,
I was wondering if it was possible to define some extra filters for certain users. Some want virus-infected mails deleted etc. Now if I put something like that in the local .procmailrc or similar it will be gone the next time ispconfig does something. Also I can't make it global if only few people want it. Is there a feature or do I have to be creative?
Regards,
~jm
Reply With Quote
Sponsored Links
  #2  
Old 5th December 2005, 12:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Quote:
Originally Posted by jmroth
Hi there,
I was wondering if it was possible to define some extra filters for certain users. Some want virus-infected mails deleted etc. Now if I put something like that in the local .procmailrc or similar it will be gone the next time ispconfig does something. Also I can't make it global if only few people want it. Is there a feature or do I have to be creative?
Regards,
~jm
I'm afraid you have to be creative. I haven't figured out a way yet to write custom recipes into .procmailrc without ISPConfig overwriting them...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 5th December 2005, 13:47
jmroth jmroth is offline
ISPConfig Developer
 
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 6 Times in 6 Posts
Default

Alright, but you don't need to be that creative

Just put the following at the end of the procmailrc master file

Code:
:0
* ? test -f $HOME/.procmailrc-custom
{
INCLUDERC=$HOME/.procmailrc-custom
}
Now for every customer where such a file exists, it is executed

Last edited by jmroth; 5th December 2005 at 13:51.
Reply With Quote
  #4  
Old 5th December 2005, 15:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

That's one solution, but please keep in mind that the order of the recipes matters. If you put your file at the end, the recipes will be executed after all other recipes, if at all...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 5th December 2005, 22:20
jmroth jmroth is offline
ISPConfig Developer
 
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 6 Times in 6 Posts
 
Default

yeah that's right but I think that's the direction in which one should go... maybe offer pre- and post-ispconfig-rules, but I think the latter is enough to satisfy wishes like please delete my virus mails etc... although those could be directly built-in somehow
one could offer a textfield where users can input their custom procmail data, then maybe somehow test it for sanity, and then just add it to the home
of course one should think about moving it too when the user home moves (e.g. from admin to non-admin)
i will add it to my feature request list
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
Procmail not delivering to mailboxes crudolphy Server Operation 3 9th February 2006 20:13
Fedora Core 4 - The Perfect Setup nandhu HOWTO-Related Questions 27 10th January 2006 13:23
procmail supposed to be in main.cf? Smitty Installation/Configuration 4 5th December 2005 11:10
Attempting The Perfect Setup (To Some Extent) PsyVision HOWTO-Related Questions 3 3rd November 2005 12:50
Suse 9.3 setup probs with php5 hyperclock Tips/Tricks/Mods 0 21st September 2005 03:34


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


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