how to apply spam filter to forwarded emails on postfix?

Discussion in 'Server Operation' started by sluggish_homer, Apr 14, 2008.

  1. sluggish_homer

    sluggish_homer New Member

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

    falko Super Moderator ISPConfig Developer

  3. sluggish_homer

    sluggish_homer New Member

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

    falko Super Moderator ISPConfig Developer

    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.
     

Share This Page