[PLUG] /var/mail/user1 to be forwarded

Randal L. Schwartz merlyn at stonehenge.com
Sat Dec 14 05:24:05 UTC 2002


>>>>> "Paul" == Paul Heinlein <heinlein at attbi.com> writes:

Paul> On Fri, 13 Dec 2002, BMDimaculangan wrote:
>> I have a user who have existing account in our server
>> (user1 at mycompany.com). The mails of this user is then forwarded to
>> another email address (user1 at newcompany.com) using aliassing.
>> Unforunately, aliassing was done after some of the mail was
>> delivered, and I need the mail in /var/mail/user1 to be forwarded to
>> user1 at newcompany.com. How is that accomplished? Please help.

Paul>   cat /var/mail/user1 | formail -s /bin/mail user1 at newcompany.com

Aha.  A useless use of cat.

<http://www.ling.helsinki.fi/~reriksso/unix/award.html>.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



More information about the PLUG mailing list