*BSD News Article 89653


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!newsfeed.internetmci.com!cpk-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!uunet!in2.uu.net!192.233.85.167!shore!cam-news-feed2.bbnplanet.com!enigma.staff.ichange.com!News
From: Tim Daneliuk <tundra@tundraware.com>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: How to send a copy of incoming mail to another server?
Date: Mon, 17 Feb 1997 10:39:24 -0600
Organization: TundraWare
Lines: 43
Message-ID: <330889BC.41C67EA6@tundraware.com>
References: <33088329.7909636@news.cois.on.ca>
NNTP-Posting-Host: eskimo.industry.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (X11; I; FreeBSD 2.1.6-RELEASE i386)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:6039

Shane Bywater wrote:
> 
> Hi,
> 
>         I'm wondering what the easiest way to send a copy of selected
> user's email on one server to another server on the local network.  I
> need a way to copy and not just redirect it.  This copied email is
> then sent by this second server to the customer's pager or fax
> machine.  Do I have to modify sendmail or can I add something to the
> forward file of those selected users?
>         Any help would be greatly appreciated.
> 
>                                 Shane

This is quite straightforward.  You need to setup an alias on the
machine receiving the mail so that sendmail knows to send it two
places.  Suppose the user's name is 'buffy'.  In the /etc/aliases
file create and entry like this:

buffy: buffy@machine1.com, buffy@machine2.com

Notice that the recipients don't even have to be on the same machine
that actually receives the mail.

Then run the 'newaliases' command and it's done...

This is how you can advertise a canonical email address to the 
outside world without actually specifying where the mail is being
delivered.  For instance: buffy@myco.com  can be aliased to any
internal machine at myco.com without the rest of the world being the
wiser.
-- 
 
 
 
 
------------------------------------------------------------------------------
			"Tundra" Tim Daneliuk
		    System Architect, Nets Inc.
		      email: tundra@netsinc.com
		       Voice/FAX: 847.827.1706
			 Pager: 630.223.0266
------------------------------------------------------------------------------