From owner-freebsd-questions Tue Jan 20 07:22:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA08442 for questions-outgoing; Tue, 20 Jan 1998 07:22:05 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from emu.sourcee.com (emu.sourcee.com [199.201.159.173]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA08415 for ; Tue, 20 Jan 1998 07:21:39 -0800 (PST) (envelope-from nrice@emu.sourcee.com) Received: (from nrice@localhost) by emu.sourcee.com (8.8.8/8.8.3) id KAA06858; Tue, 20 Jan 1998 10:20:11 -0500 (EST) Message-ID: <19980120102010.39747@emu.sourcee.com> Date: Tue, 20 Jan 1998 10:20:10 -0500 From: Norman C Rice To: chas Cc: freebsd-questions@FreeBSD.ORG Subject: Re: But what if the alias name is already in use ? Re: mail aliasing References: <3.0.32.19980120224703.009171b0@peace.com.my> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <3.0.32.19980120224703.009171b0@peace.com.my>; from chas on Tue, Jan 20, 1998 at 10:40:03PM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk On Tue, Jan 20, 1998 at 10:40:03PM +0800, chas wrote: > We have many mail aliases on our machines - no problem to date. > However, one day management wanted to be bcc'ed a copy of every > mail sent to info@ourdomain.com. My problem was that > info was not already an alias but an actual mail account (The > reason being that the person answering this mail prefered > to keep this mail separate from her own personal mail account > and so didn't want the info@ mail aliased to herself). > > So, given that an account already exists info@ourdomain.com and > that it is not an alias, how can you then arrange for mail > arriving to be forwarded to another account as well as being > available for pick up from info@ourdomain.com ? > > In my case, I removed the "info" account and created a traditional > alias in /etc/aliases but am curious if I overlooked something > more obvious. There is no reason to remove the `info' account, just make an entry in /etc/aliases similar to info: boss,\info,pointy_hair,boss2 The backslash causes the mail to go to the local account named info. > > TIA, > > chas > > > > > > >On Tue, 20 Jan 1998, Wayne G Boyd wrote: > > > >> I have set up various mail aliases for things like 'sales' in the > >> /etc/aliases file. However, how do I get the mail arriving for > >> 'sales' to be copied to a list of users ? > > > >You can do this two ways: > > > >1. Put the line into /etc/aliases containing the email addresses. > > > >2. List them in an external file and reference to it from /etc/aliases. > > > >For example: > > > ># $Id: aliases,v 1.4 1997/06/29 23:09:07 wosch Exp $ > ># @(#)aliases 5.3 (Berkeley) 5/24/90 > ># > ># Aliases in this file will NOT be expanded in the header from > ># Mail, but WILL be visible over networks. > ># > ># >>>>>>>>>> The program "newaliases" must be run after > ># >> NOTE >> this file is updated for any changes to > ># >>>>>>>>>> show through to sendmail. > ># > ># bash$ newaliases > ># > ># > ># See also RFC 2142, `MAILBOX NAMES FOR COMMON SERVICES, ROLES > ># AND FUNCTIONS', May 1997 > > > >all-users: :include:/etc/mail/all-users > > > >Will use all entries in the file /etc/mail/all-users > > > >Regards, > > > >d. > > > >+-------------------------------------------------------+ > >| Dean Hollister, | dean@odyssey.apana.org.au | > >| Perth, Western Australia. | deanh@iinet.net.au | > >+-------------------------------------------------------+ > > > > > > -- Regards, Norman C. Rice, Jr.