From owner-freebsd-questions Sat Dec 29 3:13:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from relay1.ntu-kpi.kiev.ua (www.ntu-kpi.kiev.ua [212.111.192.161]) by hub.freebsd.org (Postfix) with ESMTP id D7F0437B423 for ; Sat, 29 Dec 2001 03:13:45 -0800 (PST) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id 6CA012EEF1; Sat, 29 Dec 2001 13:13:41 +0200 (EET) Received: from pm5149 (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) with SMTP id fBTBFkF37470; Sat, 29 Dec 2001 13:15:47 +0200 (EET) Message-ID: <016901c19050$c34a62a0$6d36120a@comsys.ntukpi.kiev.ua> From: "Andrey Simonenko" To: "Scott Aitken" Cc: References: <000101c19053$bcf199c0$0a01010a@merry> Subject: Re: mail aliases and forwarding Date: Sat, 29 Dec 2001 13:08:27 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: Scott Aitken Newsgroups: lucky.freebsd.questions Sent: Saturday, December 29, 2001 1:30 PM Subject: mail aliases and forwarding > Hi all, > I want my fBSD machine to forward mail for root and fred to another, > internet address. > I added the following to /etc/mail/aliases > > root: user@domain.tld,root > fred: user@domain.tld,fred > > and it seems to work fine. Mail goes to the root and fred mailboxes as well > as the internet address. > > My question is: is this the best way to do it? > You didn't say what MTA you use, but I guess it is Sendmail. There are some ways to do mail aliasing: alias file, ~/.forward file and virtusertable, may be some more. All these methods can give the same result for your task. I suppose that since ~/.forward file is a plain text file, then alias file and virtusertable will be the better choices. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message