On Thursday 04 March 2010 16:57:02 Charles Marcus wrote:
> On 2010-03-04 10:26 AM, J. Roeleveld wrote:
> >> Interesting... yes, this is doable with dovecot if you are using its
> >> LDA, and you can do it via the global sieve script (which can be made
> >> mandatory for all users) - no need to make a script for each user.
> >
> > My idea (NOTE: untested) would only require one dummy-account where this
> > filtering takes place.
> 
> Yes, but didn't you later say:
> > You will need to create a filter-entry for each of your users, eg.
> > duplicate the following inside the filter for every user that is
> > allowed to sent emails:> --"
> 
> What I meant was, if you were using dovecots LDA, you wouldn't need to
> create these user scripts, the global script could handle it for
> everyone (using user variables, ie, %%Lu in this case)...

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).

Eg:
Email client
   |
Postfix  -> external SMTP-server
  | 
BCC to <bcc-user>@mydomain
 |
Postfix
  |
filtering tool for user "bcc-user"
  |
delivery into senders "sent" folder
sender is determined by checking the "mail-from" header

> > The basic idea should be possible to be implemented with any
> > filtering method along with any mail-storage option you want. The
> > above is a bit more specific with Sieve-scripts, but I see no reason
> > why this approach wouldn't work with something like "procmail"
> 
> Correct...
> 
> >> So... two more questions...
> 
> These two questions weren't directed at you specifically, but in general
> to someone who actually knows the answers... ;)

True, but I tend to, when I at least have a theory, to also answer with my 
theory. I hope my reply made it clear that I was not 100% certain? :)

--
Joost

Reply via email to