OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
mail forward based on user to specific filter then to another address

From: J.P. Trosclair (jptrosclairjudelawfirm.com)
Date: Wed Dec 10 2008 - 17:31:33 CST


Hi,

I've got a user that wants their mail forwarded to their blackberry
account. No big deal. The catch is they want attachments stripped first.
I've found this tool called renattach that does just that. I set this up
in main.cf:

renattach unix - n n - - pipe
        flags=q user=postfix argv=/mailtools/bin/renattach -dal -p
/usr/sbin/sendmail -i -f ${sender} -- ${recipient}

What I would like to do is when mail arrives for usermydomain.com,
deliver the mail to their local mailbox as normal and then send the same
  mail to userblackberryaccount.com with the mail first being run
through the renattach filter I have setup above. I'm not sure how to
accomplish this. I'm guessing I will need to setup a special submission
for this filter as the next step that uses content_filter=renattach but
I'm not sure how to make sure the forward gets pushed through the
renattach filter before it goes out to the user's blackberry address.

J.P.