Question : Monitor NDR's generated by sendmail

How can I produce a report or send a copy of NDRs to a specific email address?  

I am running OpenBSD v4.3 and Sendmail v8.14.1.

Answer : Monitor NDR's generated by sendmail

Are you talking about old NDRs that have already been sent, or catching future ones?

The best you can do for old ones is to look through the logs where the sender = "<>". Sendmail doesn't store that data anywhere, it just delivers the NDR to the original sender.

As for future NDRs, I don't think Sendmail can forward them to some account by itself. There are many milters you can use to do this though. I use Mimedefang (http://mimedefang.org) for spam filtering and you could easily add a bcc recipient to any message where the sender is blank.
Random Solutions  
 
programming4us programming4us