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.
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
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.
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.