Date: Fri, 9 Oct 1998 08:59:45 -0700 (PDT) From: David Wolfskill <dhw@whistle.com> To: mike@puma.chaski.com, questions@FreeBSD.ORG Subject: Re: forward email and maintain a copy? Message-ID: <199810091559.IAA21975@pau-amma.whistle.com> In-Reply-To: <199810091245.HAA17134@puma.chaski.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>From: michael dorin <mike@puma.chaski.com> >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810091559.IAA21975>