[Dovecot] Using sieve with virtual delivery & maildir
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@domain.com placed in the /var/mail/vhost/example.com/foo/new directory.
Would this work:
require "fileinto"; if anyof (header :contains "Delivered-To" "foo+bar@domain.com") { fileinto "foo@example.com"; stop; }
Running 'sieve-test' works OK; however, I do not want to implement it and suddenly start losing mail.
-- Jerry gesbbb@yahoo.com
Outside of a dog, a book is a man's best friend: and inside a dog, it's too dark to read.
Groucho Marx
-----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@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@domain.com") { fileinto "foo@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-----
On Oct 8, 2009, at 7:41 AM, 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@domain.com placed in the /var/mail/vhost/example.com/foo/new directory.
So basically you just want the +bar part to be ignored? http://wiki.dovecot.org/LDA/Postfix
explains how to configure Postfix to do it ("This example ignores
address extensions" part).
participants (3)
-
Jerry
-
Steffen Kaiser
-
Timo Sirainen