Tech Support > Operating Systems > Linux / Variants > How to configure sendmail to forward me a copy of the email
How to configure sendmail to forward me a copy of the email
Posted by Sony Antony on July 6th, 2003


Hello:
1. I have sendmail running in association with fetchmail on my Linux
machine.
I would like to know if it is possible to configure sendmail in such a
way that it forwards a copy of all the emails it receives to another
email account ( office email ). The linux m/c should still get the
original as usual.

2. Similarly is there any way to configure sendmail to check if the
email came from a particular email address ( Office ). If yes, then I
want it to a. ) change the 'From' to my Linux email account b. )
forward it to the email address given as the first token of the
address line.
( Eg : If it receives an email from sony@office.com
subject : someone@somewhere.com Hello how are you
I want it to forward the email as

To: someone@somewhere.com
Subject : Hello how are you
From : sony@home.com
( The body is unchanged )

I understand that 2. is probably impossible to do with sendmail. In
that case is there any other tool I can use for the objective.
Even partial answers will be welcomed with thanks.

--sony

Posted by mike on July 7th, 2003


check out Procmail Mail Filter

i have not found any good how to's yet .. but from what i have seen it looks
like it will do what you want


"Sony Antony" <sonyantony@hotmail.com> wrote in message
news:3eb007f1.0307061353.5463759b@posting.google.c om...


Posted by Michael Heiming on July 7th, 2003


mike <no@spam.plz> wrote:
Yep, procmail will do all this and more for you, just check the man pages
that come with it.

$ man -k procmail
procmail (1) - autonomous mail processor
procmailex (5) - procmail rcfile examples
procmailrc (5) - procmail rcfile
procmailsc (5) - procmail weighted scoring technique

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM


Similar Posts