From owner-freebsd-questions Fri Oct 9 09:01:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA24133 for freebsd-questions-outgoing; Fri, 9 Oct 1998 09:01:31 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA24116 for ; Fri, 9 Oct 1998 09:01:22 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.8/8.8.7) id IAA21975; Fri, 9 Oct 1998 08:59:45 -0700 (PDT) (envelope-from dhw) Date: Fri, 9 Oct 1998 08:59:45 -0700 (PDT) From: David Wolfskill Message-Id: <199810091559.IAA21975@pau-amma.whistle.com> To: mike@puma.chaski.com, questions@FreeBSD.ORG Subject: Re: forward email and maintain a copy? In-Reply-To: <199810091245.HAA17134@puma.chaski.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >From: michael dorin >Date: Fri, 9 Oct 1998 07:45:00 -0500 (CDT) >Is it possible to forward email to another address and maintain a local >copy? Certainly. Here are excerpts from a coupl eof "man" pages ("forward" and "vacation", respectively), which show some examples: ... For example, if a .forward file contained the following lines: nobody@FreeBSD.org "|/usr/bin/vacation nobody" Mail would be forwarded to nobody@FreeBSD.org and to the program /usr/bin/vacation with the single argument nobody. ... ... For example, your .forward file might have: \eric, "|/usr/bin/vacation -a allman eric" which would send messages to you (assuming your login name was eric) and reply to any messages for ``eric'' or ``allman''. ... So, if you were to set up a ~/.forward file with \mike, mike@another.place in it, a copy of mail addressed to "mike" that arrived at the machine in question would (as long as it's recognized as being a local address, of course) would be placed in that machine's local mail repository (/var/mail/mail, in FreeBSD using /usr/libexec/mail.local as a local mail delivery agent), and a copy would be forwarded to "mike@another.place" (which, as written, would bounce since "another.place" doesn't have any MX records :-}). For that matter, a similar effect could be obtained by setting up the mail transport agent to treat "mike" as an alias; in the case of sendmail, this is done with /etc/aliases. Place mike: \mike, mike@another.place in /etc/aliases & run "newaliases"; test via "snedmail -bv mike". david -- David Wolfskill UNIX System Administrator dhw@whistle.com voice: (650) 577-7158 pager: (650) 371-4621 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message