* Paul Cockings <p...@cytringan.co.uk>: > Hi List - > > I send a mail to d...@gdshgf.ggg via my postfix server > I get a an NDR back with the a 550 Host or domain name not found (in > the body) > - That works like normal > > Now I'd like to alter things; > > When I get an NDR I'd like to parse the header only to find who the > message was oringally sent to and why it failed. > > I currently have X-Original-To: which works for the who, but not why > I'd like to be add a custom header in the NDR to say > > x-mycustomheader: d...@gdshgf.ggg = 550 Host or domain name not found > > then I can parse the header for this key/pair, store (probably in a > MySQL table) the who and why. I can dump the body (i don't need to > waste resources reading the body) > > Hope this makes sense, kind regards
Nope. Simply use VERP. -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebra...@charite.de | http://www.charite.de