|
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 (hackney
swbell.net)
Date: Wed Aug 02 2006 - 17:10:54 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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
mike
hisdomain.com bcc_address
mydomain.com
# BCC only certain email from Joe
joe
hisdomain.com from_joe
--< /etc/postfix/watch_joe >--
# This table sends a bcc of email from Joe going to:
user1
mydomain.com bcc_address
mydomain.com
user2
mydomain.com bcc_address
mydomain.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
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]