But if i just do that, only the new mails are going to be redirected, not the ones that already arrived :(
Santiago John Jolet wrote: > On Tuesday 02 May 2006 15:58, Delca wrote: > >>i mispelled my problem, sorry :P >> >>i want to send all arrived mails at /var/spool/mail/john to for >>example [EMAIL PROTECTED] or [EMAIL PROTECTED] >> >>i think the formail is a good option, but i don't know how to tell >>sendmail to send the mails! :( I tryed running your command and there >>was a little problem, some mails were sent again to all users (i've >>set up a 'to all' account i mean.. one mail that sends to every user >>an email) and i just want to be redirected to one mail account in >>particular. >> >>sorry again! >> >>Santiago >> > > um, that's just an alias.... in /etc/mail/aliases, put "john: > [EMAIL PROTECTED], [EMAIL PROTECTED]" > save the file and run "newaliases" > >>On 5/2/06, Jarry <[EMAIL PROTECTED]> wrote: >> >>>Delca wrote: >>> >>>>The problem is that i don't know how to send all mails that arrived to >>>>/var/spool/mail/username to other mail.. >>>> >>>>i.e.: i want to send all mails at /var/spool/mail/john to >>>>[EMAIL PROTECTED] >>> >>>cat /var/spool/mail/${USER} | formail +1 -ds sendmail -oem ${USER} >>> >>>I don't know if it is working, it is not my idea. But you must have >>>alias defined before, otherwise it would be delivered probably to >>>the same mailbox (maybe infinite loop?)... >>> >>>Jarry >>>-- >>>gentoo-user@gentoo.org mailing list > > -- gentoo-user@gentoo.org mailing list