[comp.mail.sendmail] can I generate non-destructive bounces?

gamiddleton@watmath.waterloo.edu (Guy Middleton) (11/09/89)

Does anybody know of a way to get sendmail to send a message back to the
sender without preventing the original from going through?  We want to
generate a warning about every message to a certain class of addresses, and I
can't see any way to do this non-destructively.

 -Guy Middleton, University of Waterloo		gamiddleton@watmath.waterloo.edu
		(+1 519 885 1211 x3472)		gamiddleton@watmath.uwaterloo.ca

perry@ccssrv.UUCP (Perry Hutchison) (11/10/89)

In article <31258@watmath.waterloo.edu> gamiddleton@watmath.waterloo.edu
(Guy Middleton) writes:

> We want to generate a warning about every message to a certain class of
> addresses, and I can't see any way to do this non-destructively.

I'm no expert, but would it work to create alias(es) to pipe the message into
a program (or script)?  The program could then forward the message to the
actual destination and also mail back the warning to the sender.

The recently-posted Deliver program might also be helpful here.

pvo3366@sapphire.OCE.ORST.EDU (Paul O'Neill) (11/13/89)

In article <31258@watmath.waterloo.edu> gamiddleton@watmath.waterloo.edu (Guy Middleton) writes:
>Does anybody know of a way to get sendmail to send a message back to the
>sender without preventing the original from going through?  

Include in your header the line:

Return-Receipt-To: you@your_address


Paul O'Neill                 pvo@oce.orst.edu
Coastal Imaging Lab
OSU--Oceanography
Corvallis, OR  97331         503-754-3251