|
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: Magnus Bäck (magnus
dsek.lth.se)
Date: Wed Aug 02 2006 - 17:17:35 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thursday, August 03, 2006 at 00:10 CEST,
Greg Hackney <hackney
swbell.net> wrote:
>
> >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. :-)
What on earth gave you the idea that restriction classes can be used in
this manner?
This type of matching a specific sender address to a specific recipient
address is not possible with Postfix. Catch everything from either the
sender or to the recipient and use the filtering features of your
delivery agent to remove the message that don't belong there. One can
also use a content filter to capture messages.
--
Magnus Bäck
magnus
dsek.lth.se
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]