From owner-freebsd-questions Tue Jan 20 06:54:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA05059 for questions-outgoing; Tue, 20 Jan 1998 06:54:45 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dove.peace.com.my (peace.com.my [202.184.153.15]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA05045 for ; Tue, 20 Jan 1998 06:54:29 -0800 (PST) (envelope-from panda@peace.com.my) Received: from lovebox ([202.184.153.99]) by dove.peace.com.my (8.8.5/8.8.5) with SMTP id WAA12847 for ; Tue, 20 Jan 1998 22:40:03 +0800 (SGT) Date: Tue, 20 Jan 1998 22:40:03 +0800 (SGT) Message-Id: <3.0.32.19980120224703.009171b0@peace.com.my> X-Sender: panda@peace.com.my X-Mailer: Windows Eudora Pro Version 3.0 (32) To: freebsd-questions@FreeBSD.ORG From: chas Subject: But what if the alias name is already in use ? Re: mail aliasing Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk 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. 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 | >+-------------------------------------------------------+ > > >