Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th April 2008, 15:13
jspierre jspierre is offline
Junior Member
 
Join Date: Apr 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question Mail Subject Filtering & ISPConfig - where & how?

Hello, everyone. This is my first post here. I've been using ISPConfig without problem for about a month now after having used CPanel for years.

Here's my problem: In Cpanel, for a domain, I was able to set "filters" on e-mail so that any mail that came in with certain "colorful" words (profanity, "Viagra", etc.) were just dropped and never delivered to the User's box. SpamAssassin never catches all of these as spam and there's no e-mail that I want that will contain profanity in the subject line. Where in ISPConfig (or Postfix?) do I need to write these "rules" for rejecting mail with unacceptable subjects? Also, what would be an example of how to do this (regexp?)?

I used the "Perfect Server" setup on Ubuntu 7.10 with the latest version of ISPConfig installed. I have no weird or special installation, I pretty much used ISPConfig's defaults for everything. Also, I am not a reseller, this is my own personal/side-business server, so if the easiest solution applies to "all domains" on my server, that is more than okay.

Any ideas or help would be appreciated!
Reply With Quote
Sponsored Links
  #2  
Old 25th April 2008, 17:08
the_spy the_spy is offline
Member
 
Join Date: May 2007
Posts: 91
Thanks: 20
Thanked 6 Times in 6 Posts
Default

I use it with postfix.

in main.cf :

Quote:
header_checks = regexp:/etc/postfix/header_checks
and in header_checks:

Quote:
/^Subject:.*Viagra.*$/ DISCARD Spam
you can add one rule per line
Reply With Quote
  #3  
Old 25th April 2008, 19:33
jspierre jspierre is offline
Junior Member
 
Join Date: Apr 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Smile Thank you!

Thanks - I'll try that.
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
mail for aol.com loops back to myself CODAC Installation/Configuration 15 7th October 2009 14:36
procmail can't write Hellbound General 27 8th June 2009 21:51
moving ISPconfig to dedicatd mail server lifeisboost Installation/Configuration 6 13th April 2007 11:38
best way to migrate from old mail server to new mail server w/ ispconfig. istep Installation/Configuration 1 20th March 2007 08:55
Fetching external mail with Ispconfig robere General 1 20th June 2006 14:14


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


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