Em 06-02-2013 14:00, Marcio Merlone escreveu:
Could anybody advice me how to achieve a sometimes_bcc, which should
work as an always_bcc only when certain criteria is matched, based on
subject and/or destination, like a sieve script?
Greetings,
I think I'm best rephrasing my previous question and better explain my
problem on a higher level without trying to guess a solution.
I use postfix 2.7 with dovecot 1.2.9, PAM system users from LDAP. We
have a team of engineers working on a project which must have an archive
of all inbound *and* outbound mails regarding such project. For ISO9000
compliance those mails will be identified by its subject matching the
regexp /os\s?1234/. Those engineers are also working on other projects,
so *_bcc_maps are not the way to go, that would catch other unwanted mails.
I have created a mail account solely for such purpose, like
os.1...@domain.tld, which will hold such archiving. They could simply CC
such account and all done, but it would not be error/mistake-proof and I
don't want to ask my customer to also CC such account or use plus
addressing, it must be transparent, based on subject.
My first try was create a system wide sieve script for dovecot's
deliver, but it was not OK because:
- When multiple internal rcpts, I get multiple copies to os.1...@domain.tld.
- When no internal rcpts, I get no copy.
So, to work on incoming and outgoing mails regardless of rcpts it has to
be implemented on postifx. Can someone advice me on how can I solve this?
Thanks in advance, best regards.
--
Marcio Merlone