OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: mail copy

From: Greg Hackney (hackneyswbell.net)
Date: Wed Aug 02 2006 - 17:10:54 CDT


> 1) when sender is matched -> copy this mail to the disk or
> forward this mail to some account. But original delivery must stay.
>
sender_bcc_maps will work for this (Postfix 2.1 or later)

> 2) almost same as point 1,but sender and recipient must match.
>
sender_bcc_maps will also work for this one, but you'd have to
use a smtpd_restriction_class and matching recipient/bcc
table per each monitored sender:

--< main,.cf >--
sender_bcc_maps = hash:/etc/postfix/bcc_maps
smtpd_restriction_classes = from_joe
from_joe = check_recipient_access hash:/etc/postfix/watch_joe

--< /etc/postfix/bcc_maps >---
# BCC all mail from Mike
mikehisdomain.com bcc_addressmydomain.com
# BCC only certain email from Joe
joehisdomain.com from_joe

--< /etc/postfix/watch_joe >--
# This table sends a bcc of email from Joe going to:
user1mydomain.com bcc_addressmydomain.com
user2mydomain.com bcc_addressmydomain.com

There may be a way to chain these together into a reduced number
of tables, but I don't want to think about it any longer. :-)

--
Greg