J.P. Trosclair a écrit :
> 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 [email protected],
> deliver the mail to their local mailbox as normal and then send the same
> mail to [email protected] 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.
>
you can try:
- change the definition of your renattach transport: replace
${recipient} with ${us...@${nexthop}:
renattach unix - n n - - pipe
flags=q user=postfix argv=/mailtools/bin/renattach -dal -p
/usr/sbin/sendmail -i -f ${sender} -- ${us...@${nexthop}
- in main.cf, set:
renattach_destination_recipient_limit = 1
- use virtual_alias_maps:
[email protected] [email protected], [email protected]
- use transport_maps:
renattach.example.com renattach:example.com