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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 25th April 2008, 16: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
Old 25th April 2008, 18:08
the_spy the_spy is offline
Join Date: May 2007
Posts: 91
Thanks: 20
Thanked 6 Times in 6 Posts

I use it with postfix.

in main.cf :

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

/^Subject:.*Viagra.*$/ DISCARD Spam
you can add one rule per line
Reply With Quote
Old 25th April 2008, 20: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


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 15:36
procmail can't write Hellbound General 27 8th June 2009 22:51
moving ISPconfig to dedicatd mail server lifeisboost Installation/Configuration 6 13th April 2007 12:38
best way to migrate from old mail server to new mail server w/ ispconfig. istep Installation/Configuration 1 20th March 2007 09:55
Fetching external mail with Ispconfig robere General 1 20th June 2006 15:14

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

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