On 2011-04-29 3:44 PM, Max Gribov wrote:
> Hi all,
> i developed a simple/small patch against trunk which allows enabling domain-wide (NOT per user) BCC setting (http://www.postfix.org/ADDRESS_REWRITING_README.html#auto_bcc)
>
> The patch adds "BCC Recipient" and "BCC Sender" columns to the domain list, and adds 2 text inputs for the functionality in domain edit screens.
>
> When either field is set, an apropriate wildcard BCC entry is created in bcc_recipients/bcc_senders tables
>
> Here's an example db entry to forward all incoming email for example.com to eve...@ex...
> mysql> select * from bcc_senders;
> +--------------+------------------------+-------------+---------------------+---------------------+--------+
> | user | bcc | domain | created | modified | active |
> +--------------+------------------------+-------------+---------------------+---------------------+--------+
> | @example.com | eve...@ex... | example.com | 2011-04-29 12:02:11 | 2011-04-29 18:48:41 | 1 |
> +--------------+------------------------+-------------+---------------------+---------------------+--------+
>
> Is there interest in this kind of functionality? The patch is attached, as im not sure how to go about submitting it?..
>
> Also, i've never seen PA code before today, so of course the patch may not comply with PA coding standards, but i will happily change whatever is needed.
Very nice, and definitely should be considered for addition to the core
code, but I wonder if it is possible to adjust this so that it adds a
plus delimeter with the original users local address part?
Ie, instead of aliasing to 'everything@', alias to 'everything+user@'...
where 'user' is the original recipients local address part?
This would make it easy to file these in folders, rather than dumping
everyone's messages in a single folder.
To expand on this... could it be made to differentiate between outbound
and inbound?
Ie, everything-in+user@, and everything-out+user@ ?
I know, I like to complicate things.
|