"late" forwarding of email

This is a discussion on "late" forwarding of email within the SendMail forums in Other Technologies category; Email for fbloggs@here.com gets delivered to a sendmail server into file /var/mail/fbloggs. How could I send all mail in /var/mail/fbloggs to fbloggs@there.com subsequently? i.e. the mail has already arrived and its too late to set up any .forwards etc. TIA ian...

Go Back   Application Development Forum > Other Technologies > SendMail

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-03-2008, 09:45 AM
didds
Guest
 
Default "late" forwarding of email

Email for fbloggs@here.com gets delivered to a sendmail server into
file /var/mail/fbloggs.

How could I send all mail in /var/mail/fbloggs to fbloggs@there.com
subsequently?

i.e. the mail has already arrived and its too late to set up
any .forwards etc.

TIA

ian
Reply With Quote
  #2  
Old 09-03-2008, 12:35 PM
Winfried Magerl
Guest
 
Default Re: "late" forwarding of email

In article <9911bdd3-e2cb-4a9d-ac2d-08e06bcdbcea@d77g2000hsb.googlegroups.com>,
didds <didds2@excite.com> wrote:
>Email for fbloggs@here.com gets delivered to a sendmail server into
>file /var/mail/fbloggs.
>
>How could I send all mail in /var/mail/fbloggs to fbloggs@there.com
>subsequently?
>
>i.e. the mail has already arrived and its too late to set up
>any .forwards etc.


for example with mutt something like this:

# Tag all messages:
T.
# bounce all messages to new mail-address:
;b fbloggs@there.com

regards

winfried

--
Winfried Magerl - Internet Administration
Siemens IT Solutions and Services, 81739 Munich, Germany
Internet-Mail: winfried.magerl@siemens.com
Reply With Quote
  #3  
Old 09-03-2008, 01:16 PM
Grant Taylor
Guest
 
Default Re: "late" forwarding of email

On 09/03/08 08:45, didds wrote:
> Email for fbloggs@here.com gets delivered to a sendmail server into
> file /var/mail/fbloggs.
>
> How could I send all mail in /var/mail/fbloggs to fbloggs@there.com
> subsequently?
>
> i.e. the mail has already arrived and its too late to set up
> any .forwards etc.


Use formail to read each message out of the file individually and
re-send them (via mail or Sendmail) to the new address.

Literally the command will be something like (I'm running on 2 hours
sleep so read the man page(s) to be sure.)

formail <some flag(s)> /var/mail/fbloggs | mail <optional flag(s)>
fbloggs@there.com



Grant. . . .

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:53 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.