Re: [Nolug] Sendmail Rules

From: -ray <ray_at_ops.selu.edu>
Date: Tue, 13 Jul 2004 15:30:48 -0500 (CDT)
Message-ID: <Pine.LNX.4.44.0407131521490.21249-100000@romulus.csd.selu.edu>

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

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ray DeJean  				       	 http://www.r-a-y.org
Systems Engineer                    Southeastern Louisiana University
IBM Certified Specialist  	      AIX Administration, AIX Support
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
___________________
Nolug mailing list
nolug@nolug.org
Received on 07/13/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST