[Dovecot] Sieve also filter outgoing messages
Greetings,
A probably simple question and answer: can a sieve script be executed on outgoing messages? I already use deliver on postfix, perhaps the sieve script could be executed when saving to the Sent folder?
Regards,
-- Marcio Merlone
Am 06.02.2013 14:36, schrieb Marcio Merlone:
A probably simple question and answer: can a sieve script be executed on outgoing messages? I already use deliver on postfix, perhaps the sieve script could be executed when saving to the Sent folder?
there are complete different things happening for incoming messages and save sent messages
you do NOT want get sieve in action if you drag&drop messages between folders and do this for sent messages would trigger the same since the client acts the same way
Am 06.02.2013 14:53, schrieb Reindl Harald:
Sorry Harald, i dont agree, this would be a nice feature to have in fact we internally disussed this allready, it might be used for workaround imap bugs of new outlook, and for auto flagging and auto sorting mails, anyway at recent i see no way to get it real on the tec side , but that might change in the future with i.e relation to rfc4550
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Joerg Heidrich
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 6 Feb 2013, Robert Schetterer wrote:
A combination of BCC (instead of IMAP-Append to Sent) and a stable detection of "outgoing" will work.
E.g.
BCC: myaccount+outgoing@mydomain
Then Sieve must be able to detect subaddressing or default mailbox to fileinto. First is not availble for all installations. Last is not available at all, I think.
Maybe in combination with a "From" check and/or check of last recieved header to prevent misuse, when an insider (needs to know the subaddress) mails to myaccount+outgoing@mydomain from an external MTA.
Using BCC instead of IMAP-Append-to-Sent also has the advantages that the message is transferred only once and that the Recieved header has the queueid for later trouble shooting.
Kind regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBURJ6f13r2wJMiz2NAQImZAf+PWNSGGA5rlep9Onf2GXMpGYpvkDpGj1G DcWRykGEO9kGhQwbO/B7AIQ21bCI9PrYg2pRN9XMGpH4RF9ippsICjlOW9Eo2n5X Lt/0dd/Jdyj5UhbvdcxzI1VLfDItbl2N6mNBTClo9V/DDKjo5W89gzIaxOQoTIvz LTGj1EFn17UUtP67/uE4zUcJ7/+rc2BhLcBL2ZpJXbKT4WFvjT/THuJ2UagYTdhZ 9+nvtNyxq54iGQzja5dR8CEXbcuyVtIgY5MZXBP3PMIfGrkfcTP8Iz4dTV0caO4/ QqrSJfe/K50h7pnYr+PlnjMtKu3vbDwkr/Qk8o4I4lBYlAwZtKKyjg== =YsoM -----END PGP SIGNATURE-----
- Steffen Kaiser <skdovecot@smail.inf.fh-brs.de>:
Barry (Leiba) wrote <http://tools.ietf.org/rfc/rfc6785.txt>. AFAIK it awaits further discussion.
p@rick
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Joerg Heidrich
On 2/6/2013 5:24 PM, Patrick Ben Koetter wrote:
Barry (Leiba) wrote <http://tools.ietf.org/rfc/rfc6785.txt>. AFAIK it awaits further discussion. p@rick
This is on my TODO list, but Dovecot will need to gain IMAP METADATA support first.
Regards,
Stephan.
On 2013-02-06 7:57 AM, Marcio Merlone wrote:
Would sender_bcc_maps or recipient_bcc_maps be able to work on the postfix side? Otherwise I would suggest BCC like Steffen did and filter out what you want with sieve. Heck, with the *_bcc_maps on the postfix side you can still filter what you want with sieve.
-Greg
Em 06-02-2013 14:35, Gregory Finch escreveu:
Steffen cited "outgoing detection" - I only asked about outgoing because incoming is already done with sieve, outgoing is the missing part. A single solution for both is the ideal, so you can forget about outgoing detection. IMAP-append-to-send also were a blind shot from me, forget it also. In sum, when a subject matches a pcre, bcc it to another account, no matter what direction.
Regarding Steffen suggestion, I am unable to figure what he meant. :P
-- Marcio Merlone
Am 06.02.2013 16:57, schrieb Marcio Merlone:
It should work similar to postfix always_bcc, but only when a criteria matches.
incomming mails can be filtered through sieve, always_bcc etc and + adressing maybe be a way to solve this, i tested somthing like this for mail archiving, however the filter rules may get complex
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Joerg Heidrich
participants (7)
-
Gregory Finch
-
Marcio Merlone
-
Patrick Ben Koetter
-
Reindl Harald
-
Robert Schetterer
-
Steffen Kaiser
-
Stephan Bosch