[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:
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
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:
Am 06.02.2013 14:53, schrieb Reindl Harald:
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
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
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:
On Wed, 6 Feb 2013, Robert Schetterer wrote:
Am 06.02.2013 14:53, schrieb Reindl Harald:
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?
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.
Am 06.02.2013 14:53, schrieb Reindl Harald:
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?
Am 06.02.2013 14:36, schrieb Marcio Merlone: 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 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 My specific need in this case is that we must forward copy all mails with a specific subject and/or destination to a mail account for auditing and registry purposes. It already works for messages which has at least on inside destination (multiple exact same copies when multiple inside destination, but what the heck...), but if a message is sent with only outside destinations I get no copy. It should work similar to
Em 06-02-2013 13:19, Robert Schetterer escreveu: postfix always_bcc, but only when a criteria matches.
Regards.
-- Marcio Merlone
On 2013-02-06 7:57 AM, Marcio Merlone wrote:
Em 06-02-2013 13:19, Robert Schetterer escreveu:
Am 06.02.2013 14:53, schrieb Reindl Harald:
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?
Am 06.02.2013 14:36, schrieb Marcio Merlone: 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 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 My specific need in this case is that we must forward copy all mails with a specific subject and/or destination to a mail account for auditing and registry purposes. It already works for messages which has at least on inside destination (multiple exact same copies when multiple inside destination, but what the heck...), but if a message is sent with only outside destinations I get no copy. It should work similar to postfix always_bcc, but only when a criteria matches.
Regards.
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:
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. I've been poking around postfix now, a subject_bcc_maps with a pcre map would do :), and more realistic, a pcre header_checks with a milter may be the way to go, must read about milter first.
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
Em 06-02-2013 15:40, Robert Schetterer escreveu:
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 Incoming is done with sieve, the problem comes to outgoing without any rcpt to inside, in which case it becomes incoming too. It must happen only on a specific subject....
-- Marcio Merlone
participants (7)
-
Gregory Finch
-
Marcio Merlone
-
Patrick Ben Koetter
-
Reindl Harald
-
Robert Schetterer
-
Steffen Kaiser
-
Stephan Bosch