Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Conditional always_bcc

237 views
Skip to first unread message

André Luiz dos Santos

unread,
Feb 21, 2001, 2:23:49 PM2/21/01
to

Is there a way to "always_bcc" emails coming from a specific address?
For example, all emails coming from "so...@address.com" be copied to another
email address, and the original email be deliveried to its destination.

Thanks!

William J Wheatley

unread,
Feb 21, 2001, 2:27:51 PM2/21/01
to
yes you can do a .forward putting /home/<user>/.forward
and in that file put

<user>
<usertofowardto>

then both will get a copy


Bill Wheatley
Director of Development
AEPS INC
Allaire ColdFusion Consulting Partner
Allaire Certified ColdFusion Developer
http://www.aeps.com
ICQ: 417645
http://www.aeps2000.com
954-472-6684 X303

IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee. It is confidential and may contain legally privileged
information. No confidentiality or privilege is waived or lost by any
mistaken transmission to you. If you receive this e-mail in error, please
immediately delete it from your system and notify the sender. You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient. The RTA is not responsible for any unauthorized alterations to
this e-mail or attachment to it

Lars Hecking

unread,
Feb 21, 2001, 2:38:49 PM2/21/01
to
William J Wheatley writes:
> yes you can do a .forward putting /home/<user>/.forward
> and in that file put
>
> <user>
> <usertofowardto>
>
> then both will get a copy

But that's not what he wants. He wants to always_bcc only mails from
a certain address.

> > Is there a way to "always_bcc" emails coming from a specific address?
> > For example, all emails coming from "so...@address.com" be copied to
> > another email address, and the original email be deliveried to its
> > destination.

The original mail will go to it's destination anyway.

Use procmail for the user who receives the always_bcc messages, and set
up a simple .procmailrc:

/etc/postfix/main.cf:
always_bcc = bigbr...@localdomain.com

~bigbrother/.forward:
"|IFS=' ' && exec /usr/sbin/procmail -f- || exit 75 #bigbrother"

~bigbrother/.procmailrc (untested):
:0:
* ^From.*so...@address.com
! ano...@email.address

:0:
/dev/null


William J Wheatley

unread,
Feb 21, 2001, 2:44:46 PM2/21/01
to
Ahh ok the way he worded it it sounded like he wanted incoming mail bcc'd
not outgoing..

How do you BCC just certain outgoing mail? i would love to use that too =)


Bill Wheatley
Director of Development
AEPS INC
Allaire ColdFusion Consulting Partner
Allaire Certified ColdFusion Developer
http://www.aeps.com
ICQ: 417645
http://www.aeps2000.com
954-472-6684 X303

IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee. It is confidential and may contain legally privileged
information. No confidentiality or privilege is waived or lost by any
mistaken transmission to you. If you receive this e-mail in error, please
immediately delete it from your system and notify the sender. You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient. The RTA is not responsible for any unauthorized alterations to
this e-mail or attachment to it
----- Original Message -----

Lars Hecking

unread,
Feb 21, 2001, 2:46:30 PM2/21/01
to
William J Wheatley writes:
> Ahh ok the way he worded it it sounded like he wanted incoming mail bcc'd
> not outgoing..

Postfix has no concept of "incoming" or "outgoing" mail.

> How do you BCC just certain outgoing mail? i would love to use that too =)

You can't, in postfix. That's why the little detour via procmail (or
something equivalent, like maildrop) is required.


Wietse Venema

unread,
Feb 21, 2001, 3:28:16 PM2/21/01
to
André Luiz dos Santos:

>
> Is there a way to "always_bcc" emails coming from a specific address?

Not yet.

> For example, all emails coming from "so...@address.com" be copied to another
> email address, and the original email be deliveried to its destination.

Postfix has always_bcc. This adds one bcc recipient to all mail
regardless of origin or destination.

At one point I was discussing a way to implement sender_bcc_maps
and recipient_bcc_maps that would allow you to add one extra recipient
to all mail from or to specific accounts (left-hand map side is
the specific sender or recipient; right-hand side is the bcc address).

However, the context was law enforcement, and that is not what the
Postfix always_bcc feature was designed for - mail deliveries will
be reported to the sender. An automatic bcc that creates a separate
message with a different sender is much more complicated to implement.

Automatic bcc per sender or recipient would be great for help desks,
though.

Wietse

Wietse Venema

unread,
Feb 21, 2001, 3:36:51 PM2/21/01
to
Wietse Venema:

> André Luiz dos Santos:
> >
> > Is there a way to "always_bcc" emails coming from a specific address?
>
> Not yet.
>
> > For example, all emails coming from "so...@address.com" be copied to another
> > email address, and the original email be deliveried to its destination.
>
> Postfix has always_bcc. This adds one bcc recipient to all mail
> regardless of origin or destination.
>
> At one point I was discussing a way to implement sender_bcc_maps
> and recipient_bcc_maps that would allow you to add one extra recipient
> to all mail from or to specific accounts (left-hand map side is
> the specific sender or recipient; right-hand side is the bcc address).
>
> However, the context was law enforcement, and that is not what the
> Postfix always_bcc feature was designed for - mail deliveries will
> be reported to the sender. An automatic bcc that creates a separate

That should be: mail delivery PROBLEMS will be reported to the sender.

Rafi Sadowsky

unread,
Feb 21, 2001, 3:37:41 PM2/21/01
to

On Wed, 21 Feb 2001, Wietse Venema wrote:

> André Luiz dos Santos:
> >
> > Is there a way to "always_bcc" emails coming from a specific address?
>
> Not yet.

If you can take the performance hit - this should be easy pushing the
always_bcc recipient through procmail

Alternatively forward the always_bcc recipient to a PC(or several) running
FreeBSD/Linux/<whatever> & do the procmail filtering there

- Rafi

>
> > For example, all emails coming from "so...@address.com" be copied to another
> > email address, and the original email be deliveried to its destination.
>
> Postfix has always_bcc. This adds one bcc recipient to all mail
> regardless of origin or destination.
>
> At one point I was discussing a way to implement sender_bcc_maps
> and recipient_bcc_maps that would allow you to add one extra recipient
> to all mail from or to specific accounts (left-hand map side is
> the specific sender or recipient; right-hand side is the bcc address).
>
> However, the context was law enforcement, and that is not what the
> Postfix always_bcc feature was designed for - mail deliveries will
> be reported to the sender. An automatic bcc that creates a separate

0 new messages