[Dovecot] Using sieve with virtual delivery & maildir

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Fri Oct 9 10:11:56 EEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 8 Oct 2009, Jerry wrote:

> I am using Postfix virtual users/domains with Dovecot virtual delivery
> to maildir style mailboxes. Now I want to get sieve working to sort out
> a few minor delivery problems.
>
> I want all mail with a message header "Delivered-To: foo+bar at domain.com
> placed in the /var/mail/vhost/example.com/foo/new directory.

Hmm, it's my impression that this is no duty for Sieve ... .

>
> Would this work:
>
> require "fileinto";
> if anyof (header :contains "Delivered-To" "foo+bar at domain.com") {
> fileinto "foo at example.com";
> stop;
> }
>
> Running 'sieve-test' works OK; however, I do not want to implement it
> and suddenly start losing mail.

Well, install this script as the personal script of a test account and, 
please, tell us the result :)

Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSs7iPnWSIuGy1ktrAQLInQgArETi3bNzXk6MFOAmtMZ1QIkJ9bPH4rxj
31q3CfNQivmfRENPG3f32mzPybt0b9OreI/jV/Wdc6xr6ZjzeaxxqacCCfE9T7tN
lxXN8vI9bkqYBBd/PUcFERVishYFxLMQH0Nkx7BoW+KcclKfvl1+3T31zBJVFhII
nhdGSW/CywAXBJ2nwJKlsJpKF6HhO7axiic7Fj6pUgkHn7yhaYO473EIDko5rgiF
Jhitn/Mxh28zQ3tAZ+mig1gNItu3k3FqLvHx+QUD3ZrtAGKoojClFGXOD1HtAiNj
0T2k/wncwFsCvJH4KF/QqiLAA8DzHVXS/1cJwWJUQQFDDlkyUHDvIQ==
=qVMT
-----END PGP SIGNATURE-----


More information about the dovecot mailing list