[Dovecot] Sieve also filter outgoing messages

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Wed Feb 6 17:45:02 EET 2013


-----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 at 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 at 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-----



More information about the dovecot mailing list