From owner-freebsd-questions Sun Oct 27 14: 4:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3615D37B434 for ; Sun, 27 Oct 2002 14:04:30 -0800 (PST) Received: from mail.bobj.org (cpe-gan-68-101-90-216-cmcpe.ncf.coxexpress.com [68.101.90.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54C0543E6E for ; Sun, 27 Oct 2002 14:04:29 -0800 (PST) (envelope-from stest033@garbonzo.hos.ufl.edu) Received: from bobj.dyndns.org (dhcp6.wb4jcm.org [192.168.132.167]) by neti.bobj.org with esmtp; Sun, 27 Oct 2002 08:29:39 -0500 From: Bob Johnson To: randy@turbowarp.net, questions@freebsd.org Subject: Re: Sendmail .forward Date: Sun, 27 Oct 2002 08:29:38 -0500 X-Mailer: KMail [version 1.4] Cc: randy@turbowarp.net References: <1344.207.71.22.4.1035689022.squirrel@new.host.name> In-Reply-To: <1344.207.71.22.4.1035689022.squirrel@new.host.name> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <200210270829.38259.stest033@garbonzo.hos.ufl.edu> X-Mime-Autoconverted: from 8bit to 7bit by courier 0.39 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 On Saturday 26 October 2002 11:23 pm, randy@turbowarp.net wrote: > Hello, > > I am afraid I don't understand the instructions that I have found on > Sendmail. > > What I want done is for mail that is sent to me to also go to my pager. > (which is internet email addressable.) There are two ways you might go about doing this. You can either use a .forward file to forward ALL of your mail to another address, or you can set up an alias that forwards all of its mail to another address, and subscribe the alias to the mailing list. > > I have tried to figure out how to use forward, but haven't gotten it to > work. Where is the forward statement supposed to be and how do I use it? > (And can I use the forward command to also forward mail to my pager?) > To use .forward, create a file in your home directory and name the file ".forward". Don't forget the "." at the beginning of the file name. Edit the file so it contains a list of addresses that you want your email forwarded to, one address per line. You don't actually use a command named "forward". To set up an alias, become the root user (or use sudo) and edit /etc/mail/aliases. Create an entry that looks something like freddy: pager123456@pagerland.com,fred After you are done editing the aliases file, run the command "newaliases". This will create an alias "freddy" for whom all mail will be forwarded to the email address "pager123456@pagerland.com" and to the local user "fred". Then subscribe freddy@whateveryour.domainname.is to the mailing list of interest. The aliases(5) man page will give you a few more details about this. - Bob To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message