On Thursday 04 March 2010 18:23:19 Charles Marcus wrote: > On 2010-03-04 11:10 AM, J. Roeleveld wrote: > > True, but it is my understanding, please correct me if I am wrong, that > > with Postfix, the BCC-option forces a copy of the email (regardless of > > which user sent it) to be delivered to a single email-address? > > This would, at least the way I see it, mean that the filtering only needs > > to be done by a single user (the owner of the bcc-email address). > > Crap... my ignorance shines through...
"All wisdom starts with admitting your ignorance" (Not sure who originally said that :) ) > This won't work with your single address approach, because the sender > address needs to be known by sieve, and with your way, it is not > available. Doing this will require explicit sender_bcc_maps for each > sender... not ideal, but still doable. Or... This is why I said you'd need to add a filter for each local user, dumping the email into each users Sent-folder. > sender_bcc_maps can use a regex, so, could a relatively simple one-liner > regex (simple for someone who understands them at least) be fashioned > that would result in <[email protected]>? > > Or, is using regex for this a really bad idea? I think a regex would make more sense when dealing with a lot of users. As otherwise you'd be forced to make a manual entry for all your (100+?) users. But, unless you can apply this only for outgoing emails, this will lead to a lot of wrong emails being sent for external emails. Not sure if I make my point clear here. Lets say charlie and maria are emailing with each other. (And we have this setup working) charlie is using this email-server and has email: [email protected] maria, working for a different company, has email: [email protected] Now, when charlie sends maria an email, Postfix at local.com will send the email to [email protected] and also, through the mentioned magic, put a copy of the email into charlie's "Sent" folder. Now, when Maria then replies, we need to make sure that the Postfix at local.com will only forward the email to Charlie's "Inbox" and not try to deliver a copy into Maria's "Sent" folder. (Which could exist if Charlie has a colleague with the same name) (Disclaimer: The names in this story are fictional, and bla bla bla :) ) > Most importantly, is any/all of this a bad idea? It seems like it should > work reliably, and not add much overhead to the smtp transaction, but > obviously I'm clueless when it comes to answering that with any degree > of certainty... As far as I can tell, it would double the amount of emails being handled by Postfix. To reduce the overhead, the "bcc"-option should only be done for out-going email. Not for incoming. This would also then resolve the problem with Charlie and Maria as mentioned above. -- Joost
