m...@ruggedinbox.com: > Perhaps we could pass ${sender} to our custom script > and then use sendmail's -f argument to change the Return-Path header ?
The -f argument IS THE RETURN-PATH ADDRESS. SENDMAIL(1) SENDMAIL(1) NAME sendmail - Postfix to Sendmail compatibility interface SYNOPSIS sendmail [option ...] [recipient ...] .... -f sender Set the envelope sender address. This is the address where delivery problems are sent to. If you ever find the time to read up on Internet email, that is also the address that ends up in the Return-Path header. That has nothing to do with Postfix. All mail systems with a "sendmail" command work that way. Wietse