Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Redirect inbox to other mail (Sendmail) Santiago del Castillo <delcas@×××××.com>