On Thu, Mar 08, 2012 at 04:49:24PM +0100, Denis BUCHER wrote: > I need to be able to change subject based on message body. > I would be very glad if someone had some advice on how to do > that with postfix ?
You cannot. And from reading the rest, I think you should not. > More precisely, what I want to do is : > > 1. Only emails for [email protected] should be > concerned (headers filter) Why the header? Mail routing is not done on the basis of mail headers. Why are you seeing these mails with this header? Also, if "mydomain.com" is intended as an example, please use "example.com". Don't use real domains as examples. > 2. Then based on body checks I would like to change the > Subject, or add a custom header > > The aim is to be able to recognize the original sender of > the failed mail so that I can handle them accordingly Failed mail? Why did it fail? I bet that is the real issue which requires your attention. You should elaborate on the actual problem you are trying to solve, and show us the logs, "postconf -n", and other relevant information about it. http://www.postfix.org/DEBUG_README.html#mail -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
