Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

forwarding mail



This is basically good advice, but I offer a small technical correction:
it is not Sendmail, but rather the delivery agent program spawned by
Sendmail, which is responsible for processing the ~/.forward file.  This
is important especially on Linux because many distributions ship with
different delivery agents from each other, and these can behave
unexpectedly.  For example, many Linux distributions use Procmail as their
default delivery agent, which looks for a ~/.procmailrc file; whether a
~/.forward file is also used in such cases is implementation-dependent.

-- Mike


On 2000-11-19 at 01:29 -0500, Douglas Melniker wrote:

> Sendmail recognizes a .forward file in a user's home directory to be
> forwrading instructions. In your case, you want to keep a copy of the mail
> on the machine and send a copy to a remote machine. here's what you should 
> do, assuming your username is agabriel
> 
> echo '\agabriel, user at other.host.com' > ~/.forward
> 
> That's it. Sendmail is picky about permissions though: make sure that
> .forward and all directories leading to it (recursively from /) are only
> writable to user.
> 
> As always, make sure to test it out before you commit to it :)
> 
> HTH,
> Doug Melniker
> 
> 
> On Sat, 18 Nov 2000, Anthony J. Gabrielson wrote:
> 
> > Hello,
> > 	I need to send a carbon copy of all mail I get to one address to
> > another.  I need my email on two networks that can't be be bridged, and I 
> > would like to use the internal machines. I was wondering if anyone new if
> > sendmail had built in functionality for this - or if there is a script
> > somewhere out there that can do this.
> > 
> > THanks,
> > Anthony

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org