HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   how to apply spam filter to forwarded emails on postfix? (http://www.howtoforge.com/forums/showthread.php?t=22299)

sluggish_homer 14th April 2008 13:47

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.

falko 15th April 2008 19:19

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

sluggish_homer 16th April 2008 04:31

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.

falko 16th April 2008 23:52

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.


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

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