On Tue, 2004-07-13 at 15:46 -0500, Wimprine, Thomas wrote:
> We need mail from bob@aol.com to be viewed by the HR department, and
> forwarded if "approved". So unfortunately this rules out just adding the
> BCC.
Who would bob@aol.com be sending the email to? A generic
hr@stei.com address?
> -----Original Message-----
> From: owner-nolug@joeykelly.net [mailto:owner-nolug@joeykelly.net] On Behalf
> Of -ray
> Sent: Tuesday, July 13, 2004 3:31 PM
> To: 'Nolug'
> Subject: Re: [Nolug] Sendmail Rules
>
> On Tue, 13 Jul 2004, Wimprine, Thomas wrote:
>
> > I have a need to do some sendmail rules for my HR department. (I don't
> like
> > it it's my job.) If bob@aol.com <mailto:bob@aol.com> sends an email I
> need
> > the recipients replaced with HR@localdomain.com
> <mailto:HR@localdomain.com>
> > . Does anyone have a clue how to accomplish this? I have the bat book open
> > but it looks like Greek right now, it just doesn't make sense.
>
> You need the *recipient* addresses replaced? That would be complicated in
> sendmail and probably easier to do with the MUA. (send to
> hr@localdomain.com and bcc everyone else).
>
> If you want all mail *from* bob@aol.com to appear to come from
> hr@localdomain.com, that's more common and can be accomplished with
> sendmail generics rewriting (ie bob works for HR). Not sure off the top
> of my head, but look for the FEATURE(`genericstable'). The
> /etc/mail/genericstable would look like:
>
> bob@aol.com hr@localdomain.com
>
> You may also have to put aol.com in the GENERICS_DOMAIN macro.
>
> ray
-- ----------------------------------------------------------------- Ron Johnson, Jr. Jefferson, LA USA PGP Key ID 8834C06B "The attack by those who want to die -- this is the attack against which you cannot prepare a perfect defense" The Dosadi Experiment, by Frank Herbert
___________________
Nolug mailing list
nolug@nolug.org
This archive was generated by hypermail 2.2.0 : 12/19/08 EST