Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 1998 10:20:10 -0500
From:      Norman C Rice <nrice@emu.sourcee.com>
To:        chas <panda@peace.com.my>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: But what if the alias name is already in use ? Re: mail aliasing
Message-ID:  <19980120102010.39747@emu.sourcee.com>
In-Reply-To: <3.0.32.19980120224703.009171b0@peace.com.my>; from chas on Tue, Jan 20, 1998 at 10:40:03PM %2B0800
References:  <3.0.32.19980120224703.009171b0@peace.com.my>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980120102010.39747>