* Paul Cockings <[email protected]>:
> Hi List -
> 
> I send a mail to [email protected] 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: [email protected] =  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
  [email protected] | http://www.charite.de
            

Reply via email to