Gentoo Archives: gentoo-user

From: Delca <delcas@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Redirect inbox to other mail (Sendmail)
Date: Tue, 02 May 2006 21:05:49
Message-Id: 9d0acd5b0605021358h6c2bd451u9686bc379c6a2ce7@mail.gmail.com
In Reply to: Re: [gentoo-user] Redirect inbox to other mail (Sendmail) by Jarry
1 i mispelled my problem, sorry :P
2
3 i want to send all arrived mails at /var/spool/mail/john to for
4 example john334@×××××.com or john332@×××××××.com.
5
6 i think the formail is a good option, but i don't know how to tell
7 sendmail to send the mails! :( I tryed running your command and there
8 was a little problem, some mails were sent again to all users (i've
9 set up a 'to all' account i mean.. one mail that sends to every user
10 an email) and i just want to be redirected to one mail account in
11 particular.
12
13 sorry again!
14
15 Santiago
16
17 On 5/2/06, Jarry <jarry@×××.net> wrote:
18 > Delca wrote:
19 > > The problem is that i don't know how to send all mails that arrived to
20 > > /var/spool/mail/username to other mail..
21 > >
22 > > i.e.: i want to send all mails at /var/spool/mail/john to
23 > > john@××××××××.com.
24 >
25 >
26 > cat /var/spool/mail/${USER} | formail +1 -ds sendmail -oem ${USER}
27 >
28 > I don't know if it is working, it is not my idea. But you must have
29 > alias defined before, otherwise it would be delivered probably to
30 > the same mailbox (maybe infinite loop?)...
31 >
32 > Jarry
33 > --
34 > gentoo-user@g.o mailing list
35 >
36 >
37
38 --
39 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Redirect inbox to other mail (Sendmail) John Jolet <john@×××××.net>