OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: This has probably been asked a million times but here goes..

From: mouss (usebsdfree.fr)
Date: Wed Jun 01 2005 - 14:56:33 CDT


Simon Powell wrote:
> Have a common or garden setup whereby mail gateway is postfix
> forwarding to internal MS server. Previously before the arrival of
> said server, postfix acted as the mail server and thus used my much
> vaunted and extremely well developed and reliable procmailrc file. My
> question is thus - how the hell do I get postfix to invoke procmail to
> check every mail that is relayed thru it? (ie it aint doing anything
> now - mail is just transparently passed thru and I have limited
> filtering ability - only listing RBS and blackholes etc in my
> /main.cf. I know the deal whereby procmail is normally only for local
> mail delivery but have also heard rumours that mail can be told to
> pass thru it on its way to the smtp host (am using transport_map by
> the way - dunno if this makes any odds).
> Any help would be very very appreciated!
> Cheers
> Si.
>

- if like "many" people you are using procmail to run spamassassin or
dspam, then switch to a content filter setup (amavisd-new is the de
facto "standard", dspam can run in relay mode, ...).

- if you're doing header checks, see if you can achieve the same with
postfix builtin checks. otherwise, use a proxy to run any perl "scripts"
you need (see the content filter readme).

- if you insist, then let procmail forward the messages, but that's ugly
and requires a lot of design to get things right...