Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th April 2008, 12:47
sluggish_homer sluggish_homer is offline
Junior Member
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to apply spam filter to forwarded emails on postfix?

Hi,

I have built postfix mail server on fedora. I have Spamassassin and Procmail works well to filter emails coming to my domains but the problem is all the emails which will be forwarded from my mail server to other accounts such as gmail.com or yahoo.com will not be filtered but will be delivered directly without being filtered first. I tried using Usermin's module Filter and Mail Forwarding but it won't work or maybe i just configured it wrongly.

Please help.

Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 15th April 2008, 18:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

The problem is that when you forward emails, procmail isn't called at all.
Instead of using procmail, I suggest you do your spam filtering with amavisd instead: http://www.howtoforge.com/amavisd_postfix_debian_ubuntu
__________________
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 16th April 2008, 03:31
sluggish_homer sluggish_homer is offline
Junior Member
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Falko,

The mail server is already being used so i bit hesitate to install any other applications. is there a way to call procmail before forwarding?
Sorry, i am new to linux.

Thank very much.
Reply With Quote
  #4  
Old 16th April 2008, 22:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
 
Default

Quote:
Originally Posted by sluggish_homer
is there a way to call procmail before forwarding?
Sorry, i am new to linux.
Instead of configuring the forwards in Postfix, you could tell procmail to do the forward (of course, after the spam scanning).

Take a look at
Code:
man procmailex
and http://www.howtoforge.com/procmail_tips_recipes , maybe there's an appropriate example.
__________________
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 09:40
network issues now it says "401 The web site is blocked by administrator" Check General 3 26th February 2008 14:22
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


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


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