Gentoo Archives: gentoo-user

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