PDA

View Full Version : Forward incomming bounce email using Postfix


jonathanfonken
28th August 2009, 23:54
Hi everyone I'm a newbie to Postfix and just started learning about it....

I would like to forward incoming bounce emails (only) to other users on other domains.

Just as an example on all email headers the "return-path" (which is the bounce to address) will be something like this.

bounce+someuser=someuserdomain.com@mycompanydomain .com

I would like to keep the bounce messages in the bounce@mycompanydomain.com inbox and at the same time forward all incoming bounce messages to someuser@someuserdomain.com.

So I will need to parse the "someuser=someuserdomain.com" and change it to someuser@someuserdomain.com then forward the bounce email to someuser....

The problem is that the someuser@someuserdomain.com address is constantly changing... Is there anything that can help me achieve this goal?

Or perhaps is there an easier way to do this? Any suggestions are appreciated.