Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Suggest HOWTO

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 1st August 2007, 06:13
faraday G faraday G is offline
Junior Member
 
Join Date: May 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

One last thing to be absolutely sure I know how to do it.

I replaced /dev/null with: /var/www/web2/user/web2_spam/Maildir

does that look ok?
Reply With Quote
Sponsored Links
  #12  
Old 1st August 2007, 19:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

If it was an mbox file it would be ok, but this doesn't work with Maildir because in Maildir all messages are stored as seperate files. But you can use that user's email address instead in the procmail recipe.
__________________
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
  #13  
Old 3rd August 2007, 00:29
faraday G faraday G is offline
Junior Member
 
Join Date: May 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I cant figure out why it wont work. Here is the file located inside the customized templates folder. I also went into ispconfig and change all the users settings to mark mail as spam and keep. It was previously set to discard.

Code:
# SpamAssassin sample procmailrc
#
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
:0fw
* < 256000
| /path/to/spamassassin --prefs-file=/path/to/.user_prefs

# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
#:0:
#* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
#/dev/null

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "/dev/null".
:0:
* ^X-Spam-Status: Yes
spam@******group.com

# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped.  This will re-add it.
:0
* ^^rom[ ]
{
  LOG="*** Dropped F off From_ header! Fixing up. "

  :0 fhw
  | sed -e '1s/^/F/'
}
From what I gather, thats all I should need to do but it doesnt seem to work. Maybe I need to point ispconfig to look for this file?
Reply With Quote
  #14  
Old 3rd August 2007, 14:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's the output of
Code:
ls -la /root/ispconfig/isp/conf/customized_templates
?

Did you change anything in ISPConfig's web interface so that the procmail recipes get rewritten?
__________________
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
  #15  
Old 6th August 2007, 00:28
faraday G faraday G is offline
Junior Member
 
Join Date: May 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
drwxr-xr-x 2 root root 4096 Aug  1 14:00 .
drwxr-xr-x 3 root root 4096 Jul 31 09:18 ..
-rw-r--r-- 1 root root  459 Jun  6 11:15 procmailrc.master
-rw-r--r-- 1 root root 1090 Aug  2 08:19 spamassassin.rc.master
I changed nothing.
Reply With Quote
  #16  
Old 6th August 2007, 16:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

Quote:
Originally Posted by faraday G
I changed nothing.
Do so now. Go to each user in ISPConfig and change something for the user so that the procmail recipes get rewritten. Afterwards, you can undo the changes in the ISPConfig web interface.
__________________
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
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


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


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