From: data345 on
I have sendmail running on RedHat. It's main purpose is to receive
email from an application, or system messages on the local machine,
and then send those emails onto an Exchange server which unfortunately
acts as the mail hub for my place of work.

Some of those emails we don't want sent to certain users, because they
don't like getting spammed (it's a test instance of the application).

Is there a way I can divert those emails? I tried the aliases file,
but it only accepts local addresses to alias to.

Is there another possibility? I don't want to turn sendmail off
altogether, because I still want system messages to get sent.
=== Al
From: Loki Harfagr on
Fri, 29 Jan 2010 12:28:58 -0800, data345 did cat :

> I have sendmail running on RedHat. It's main purpose is to receive
> email from an application, or system messages on the local machine, and
> then send those emails onto an Exchange server which unfortunately acts
> as the mail hub for my place of work.
>
> Some of those emails we don't want sent to certain users, because they
> don't like getting spammed (it's a test instance of the application).
>
> Is there a way I can divert those emails? I tried the aliases file, but
> it only accepts local addresses to alias to.
>
> Is there another possibility? I don't want to turn sendmail off
> altogether, because I still want system messages to get sent.
> === Al

If I read you correctly you mean that you have some
identified sender address (test_instance(a)appli) that
some identified recipients should not receive ?
If so you may like to see this section:
$ grep -A 8 compat_check /usr/share/sendmail/cf/README

If that's not what you wanted please give a
more detailed view of the setup and problems :-)