question about sieve script
Alain Spineux
aspineux at gmail.com
Wed Mar 21 11:31:40 CET 2007
Sievescript is ran at delivery time.
But distribution list have no mailbox, then their is no delivery.
Distribution list is just a ldap object that postfix use to "duplicate" the
emails to
multiple addresses that are then delivered into local cyrus mailbox.
You can what you want by simulating a distribution list inside a sieve
script :
if header :contains ["To", "Cc", "Bcc"] "distlist at example.org" {
if header :contains "Subject" "*myname*" {
redirect "myname at example.org";
}}
else {
redirect "recipients1 at example.or"
redirect "recipients2 at example.or"
redirect "recipients3 at example.or"
redirect "recipients4 at example.or"
fileinto "INBOX";
}
On 3/21/07, bud.golf4 <bud.golf4 at laposte.net> wrote:
>
> hello all,
>
> one question, how can i put a sieve script in a distribution
> list ??
>
> is it possible?
> this command failed with a distribution list:
> /kolab/bin/sieveshell --user=distlist at example.org
> --authname=manager localhost
>
> the reason is i want to filter when a message arrive in a dist
> list, if there is the name of the recipient in the subject
> only it and the person in charge of the service can receive
> the mail, like this:
>
> if header :contains ["To", "Cc", "Bcc"] "distlist at example.org" {
> if header :contains "Subject" "*myname*" {
> redirect "myname at example.org";
> }}
> else {
> fileinto "INBOX";
> }
>
> how can i do this?
> thanks for your help.
>
> Envoyez vos cartes de voeux depuis www.laposte.net
> Elles seront ensuite distribuées par le facteur : pratique et malin !
>
> _______________________________________________
> Kolab-users mailing list
> Kolab-users at kolab.org
> https://kolab.org/mailman/listinfo/kolab-users
>
--
--
Alain Spineux
aspineux gmail com
May the sources be with you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20070321/7f71e6f5/attachment.html>
More information about the users
mailing list