forwarding mail

Mike Bilow mikebw at colossus.bilow.com
Tue Nov 21 04:06:57 EST 2000


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).



More information about the Discuss mailing list