Forward a specific incoming mail to a user

Hi There

Not sure if this is the correct place for this.

I'm running Sendmail on a Debian box and want to do the following.
e-mail comes in from userk@domain.co.za and is destined for usera@mydomain.co.za, but i want all mail from userk@domain.co.za to go to userb@mydomain.co.za. Sendmail must do the redirection of the mail.

How would i get this to work ?:confused:

You could check out the feature "virtusertable" from Sendmail cf/README - Features

1 Like

thanks for the help:b:

What about: mail -s "$SUBJECT" $RECIPIENTS???