Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to copy email from particular sender?

Status
Not open for further replies.

gary0214

Programmer
Sep 19, 2001
1
US
I've been tasked to copy or BCC all emails from a particular sender. So basicially, I need to examine the incoming email...and if the sender matches "whoever@whatever.com", then i deliver the email to the specified recipient...but i *also* BCC the email to an admin.

i know i can use something like perl's Mail::Audit to filter all emails, but i was hoping to try an alternate method. any suggestions?
 
Sendmail doesn't and won't allow you to do this but if you are using 'procmail' as your local mailer you can setup .procmailrc with a recipe that can do that for you. Check your man pages and it will give you some ideas on how to do this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top