--- /home/stewart/rt3/rt-3-0-0rc3/lib/RT/Action/SendEmail.pm	2003-03-19 17:01:32.000000000 +1100
+++ Action/SendEmail.pm	2003-03-20 13:26:25.000000000 +1100
@@ -178,9 +178,10 @@
       if ( $self->{'PseudoTo'} && ( @{ $self->{'PseudoTo'} } )
            and ( !$MIMEObj->head->get('To') ) );
 
+    my $ReturnPath = "bounce+ticket-" . $self->TicketObj->id . "\@$RT::BounceDomain";
     if ( $RT::MailCommand eq 'sendmailpipe' ) {
         eval {
-            open( MAIL, "|$RT::SendmailPath $RT::SendmailArguments" );
+            open( MAIL, "|$RT::SendmailPath $RT::SendmailArguments -f$ReturnPath" );
             print MAIL $MIMEObj->as_string;
             close(MAIL);
           };
