Re: Sieve: vacation from: parameter with display-name

2016-03-10 Thread Edda via Info-cyrus

Am 08.03.16 um 14:19 schrieb Edda via Info-cyrus:
[...]


From: >

To my understanding of RFC 5322 this is not a valid „mailbox“, because 
of the outer angle brackets around. sendmail rewrites it internally to 
the resulting valid but ugly form:


From: "

I looked at RFC 5322 a bit further. It states that address header fields 
are (finally) of the form "mailbox":


   mailbox =   name-addr / addr-spec

where

   name-addr   =   [display-name] angle-addr

(addr-spec has no angle brackets around).

MTAs mostly tolerate the forms with angle brackets, but they are not 
compliant to RFC... as far as I see...


Sieve vacation already uses name-addr or addr-spec, so I would suggest 
this simple patch:


diff -Naur cyrus-imapd-2.4.18.orig/imap/lmtp_sieve.c 
cyrus-imapd-2.4.18/imap/lmtp_sieve.c
--- cyrus-imapd-2.4.18.orig/imap/lmtp_sieve.c2015-07-06 
05:38:29.0 +0200
+++ cyrus-imapd-2.4.18/imap/lmtp_sieve.c2016-03-10 
13:44:04.173224594 +0100

@@ -650,8 +650,8 @@
 fprintf(sm, "Date: %s\r\n", datestr);

 fprintf(sm, "X-Sieve: %s\r\n", SIEVE_VERSION);
-fprintf(sm, "From: <%s>\r\n", src->fromaddr);
-fprintf(sm, "To: <%s>\r\n", src->addr);
+fprintf(sm, "From: %s\r\n", src->fromaddr);
+fprintf(sm, "To: %s\r\n", src->addr);
 /* check that subject is sane */
 sl = strlen(src->subj);
 for (i = 0; i < sl; i++)



Best regards,
Edda






Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Sieve: vacation from: parameter with display-name

2016-03-08 Thread Edda via Info-cyrus

Hi,

I’m referring back to a post from 2009 for which I can’t find an answer:

https://lists.andrew.cmu.edu/pipermail/info-cyrus/2009-March/030707.html

According to sieve/vacation RFCs 5228/5230 it is possible to add a 
display-name in the :from parameter, for example:


vacation :from "My Name "

This entry in a cyrus sieve script results in the following From: header 
in the auto-reply (via sendmail):


From: "

Please see the first unbalanced „<„ in the display-name.

In cyrus source code  (2.4.18 in our case but the same in 2.5.7), file 
../imap/lmtp_sieve.c, function send_response we have:


[…]
static int send_response(void *ac,
 void *ic __attribute__((unused)),
 void *sc, void *mc, const char **errmsg)
{
[…]
fprintf(sm, "X-Sieve: %s\r\n", SIEVE_VERSION);
fprintf(sm, "From: <%s>\r\n", src->fromaddr);
fprintf(sm, "To: <%s>\r\n", src->addr);
[…]

cyrus always adds <> to the fromaddr, even if the vacation :from 
parameter contains a display-name like in the example above:


vacation :from "My Name "

In this case cyrus provides the following From: header to the mta:

From: >

To my understanding of RFC 5322 this is not a valid „mailbox“, because 
of the outer angle brackets around. sendmail rewrites it internally to 
the resulting valid but ugly form:


From: "

Looks like a bug in cyrus to me or am I missing something, maybe an 
answer to the original post ;-) ?


Best regards,
Edda


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Sieve vacation script?

2016-01-21 Thread Leena Heino via Info-cyrus

On Sat, 26 Dec 2015, Patrick Goetz via Info-cyrus wrote:

I've been struggling with figuring out how to set up a sieve vacation reply 
script.  The documentation on this is pretty sparse, and the stuff I do find 
doesn't work.  For example,


I have a script that kind of does that. We needed in our organization a 
script that would convert old $HOME/.vacation.msg files to sieve script. 
The script would then install and activate the script on the mail server 
using the mail server admin rights.


The script uses Cyrus::SIEVE::managesieve and blocks of code borrowed from 
sieveshell.


Attached is a perl script that install two files to server: common.script 
and vacation.script. The common.script is just a script that includes 
vacation.script and ingo.script among others.


First question:  is there step by step explanation for manually creating and 
invoking a cyrus sieve script for a particular user?


I think there is no documentation to do it, but all the bits are there in 
sieveshell code.


--
  Leena Heino  University of Tampere / Computer Centre
  ( liinu at uta.fi )  ( http://www.uta.fi/laitokset/tkk )#!/usr/bin/perl

use Cyrus::SIEVE::managesieve;

my $rc = 0;
my $commonrc = 0;
my $horderc = 0;
my $vacationrc = 0;
my $realm = "";
my $server = "";
my $user = "";
my $authz = "";
my $pass = "";

$realm = "";
$server = "imapserver.example.com";
$user = "exampleuser";
$authz = "cyrusadm";
$pass = "adminpassword";

sub prompt {
my($type, $prompt) = @_ ;

if (($type eq "username") && (defined $user)) {
return $user;
} elsif (($type eq "authname") && (defined $authz)) {
return $authz;
} elsif (($type eq "realm") && (defined $realm)) {
return $realm;
}

if (($type eq "password") && (defined $pass)) {
return $pass;
} elsif ($type eq "password") {
my $ostty;
my $str = "";
chomp($ostty = `stty -g`);

system "stty -echo -icanon min 1 time 0 2>/dev/null || " .
   "stty -echo cbreak";
$str = "\n";

print "$prompt: ";

$b = ;
chop($b);

print $str;
system "stty $ostty";

return $b;
}
}

sub list_cb {

my($name, $isactive) = @_ ;

print "$name ";
if ($isactive == 1) {
  print " <- active script\n";
} else {
  print "\n";
}
}

my $obj = sieve_get_handle($server, "prompt", "prompt", "prompt", "prompt");

if (!defined $obj) {
die "unable to connect to server";
}

$rc = sieve_activate($obj, "");
if ($rc != 0) {
my $errstr = sieve_get_error($obj);
$errstr = "unknown error" if(!defined($errstr));
#print "deactivate failed: $errstr\n";
}

$rc = sieve_delete($obj, "common");
if ($rc != 0) {
my $errstr = sieve_get_error($obj);
$errstr = "unknown error" if(!defined($errstr));
#print "delete failed: $errstr\n";
}

$rc = sieve_put_file($obj, 
"/tmp/cyrus_sieve.181426.21062.tmpdir/common.script");
if ($rc != 0) {
my $errstr = sieve_get_error($obj);
$errstr = "unknown error" if(!defined($errstr));
print "upload failed: $errstr\n";
}
$commonrc += $rc;

$rc = sieve_activate($obj, "common");
if ($rc != 0) {
my $errstr = sieve_get_error($obj);
$errstr = "unknown error" if(!defined($errstr));
print "activate failed: $errstr\n";
}
$commonrc += $rc;

$rc = sieve_delete($obj, "vacation");
if ($rc != 0) {
my $errstr = sieve_get_error($obj);
$errstr = "unknown error" if(!defined($errstr));
#print "delete failed: $errstr\n";
}

$rc = sieve_put_file($obj, 
"/tmp/cyrus_sieve.181426.21062.tmpdir/vacation.script");
if ($rc != 0) {
my $errstr = sieve_get_error($obj);
$errstr = "unknown error" if(!defined($errstr));
print "upload failed: $errstr\n";
}
$vacationrc += $rc;

my $listrc = sieve_list($obj, "list_cb");
if ($listrc != 0) {
my $errstr = sieve_get_error($obj);
$errstr = "unknown error" if(!defined($errstr));
print "list failed: $errstr\n";
}

$scriptrc = $commonrc + $horderc + $vacationrc;
exit $scriptrc;

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Sieve vacation script?

2015-12-27 Thread Shawn Bakhtiar via Info-cyrus

> On Dec 26, 2015, at 1:14 PM, Sebastian Hagedorn via Info-cyrus 
>  wrote:
> 
> Hi,
> 
>> I've been struggling with figuring out how to set up a sieve vacation
>> reply script.  The documentation on this is pretty sparse, and the stuff
>> I do find doesn't work.  For example,
>> 
>> [cyrus@www ~]$ sieveshell --user=resea...@episcopalarchives.org
>> --authname=cyrus localhost
>> connecting to localhost
>> unable to connect to server at /usr/bin/sieveshell line 191.
>> [cyrus@www ~]$ sieveshell --user=resea...@episcopalarchives.org
>> --authname=cyrus episcopalarchives.org
>> connecting to episcopalarchives.org
>> unable to connect to server at /usr/bin/sieveshell line 191.
> 
> first of all you have to add lines to /etc/cyrus.conf to make the server 
> listen to the right ports:
> 
> At least in our /etc/services file, "sieve" is still port 2000 even though 
> that's been superseded by RFC 5804. We listen on both ports:
> 
> sieve cmd="timsieved" listen="cyrus.rrz.uni-koeln.de:sieve" prefork=0
> managesieve   cmd="timsieved" listen="cyrus.rrz.uni-koeln.de:4190" prefork=0
> 
>> I'm also not sure what the point is of sieveshell is if I'm running it on
>> the mail server and not remotely; similarly for timsieved.
> 
> You can run sieveshell on any computer you like. Just make sure the port 
> mentioned above are reachable.
> 
>> First question:  is there step by step explanation for manually creating
>> and invoking a cyrus sieve script for a particular user?
> 
> Not really. I prefer to use a GUI. We offer Smartsieve to our clients:
> 
I would agree… most users will not be tech savvy enough to create sieve 
scripts. We provide RoundCube webmail, with a manage sieve plugging where users 
can manage their filters (including vacation).

If you install it on the IMAP server itself, you simply need to have the 
service running as mentioned above. If you have it running on a separate 
server, make sure to check your firewall rules to allow the remote RoundCube 
(as a client) to connect to the local timseived service.

> <http://freecode.com/projects/smartsieve>
> 
> There's also an Add-On for Thunderbird:
> 
> <https://addons.mozilla.org/de/thunderbird/addon/sieve/>
> --
> Sebastian Hagedorn - Weyertal 121, Zimmer 2.02
> Regionales Rechenzentrum (RRZK)
> Universität zu Köln / Cologne University - Tel. +49-221-470-89578
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Sieve vacation script?

2015-12-26 Thread Sebastian Hagedorn via Info-cyrus

Hi,


I've been struggling with figuring out how to set up a sieve vacation
reply script.  The documentation on this is pretty sparse, and the stuff
I do find doesn't work.  For example,

[cyrus@www ~]$ sieveshell --user=resea...@episcopalarchives.org
--authname=cyrus localhost
connecting to localhost
unable to connect to server at /usr/bin/sieveshell line 191.
[cyrus@www ~]$ sieveshell --user=resea...@episcopalarchives.org
--authname=cyrus episcopalarchives.org
connecting to episcopalarchives.org
unable to connect to server at /usr/bin/sieveshell line 191.


first of all you have to add lines to /etc/cyrus.conf to make the server 
listen to the right ports:


At least in our /etc/services file, "sieve" is still port 2000 even though 
that's been superseded by RFC 5804. We listen on both ports:


 sieve cmd="timsieved" listen="cyrus.rrz.uni-koeln.de:sieve" 
prefork=0
 managesieve   cmd="timsieved" listen="cyrus.rrz.uni-koeln.de:4190" 
prefork=0



I'm also not sure what the point is of sieveshell is if I'm running it on
the mail server and not remotely; similarly for timsieved.


You can run sieveshell on any computer you like. Just make sure the port 
mentioned above are reachable.



First question:  is there step by step explanation for manually creating
and invoking a cyrus sieve script for a particular user?


Not really. I prefer to use a GUI. We offer Smartsieve to our clients:

<http://freecode.com/projects/smartsieve>

There's also an Add-On for Thunderbird:

<https://addons.mozilla.org/de/thunderbird/addon/sieve/>
--
Sebastian Hagedorn - Weyertal 121, Zimmer 2.02
Regionales Rechenzentrum (RRZK)
Universität zu Köln / Cologne University - Tel. +49-221-470-89578

pgpcMwNkJNLSS.pgp
Description: PGP signature

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Sieve vacation script?

2015-12-26 Thread Patrick Goetz via Info-cyrus
I've been struggling with figuring out how to set up a sieve vacation 
reply script.  The documentation on this is pretty sparse, and the stuff 
I do find doesn't work.  For example,


[cyrus@www ~]$ sieveshell --user=resea...@episcopalarchives.org 
--authname=cyrus localhost

connecting to localhost
unable to connect to server at /usr/bin/sieveshell line 191.
[cyrus@www ~]$ sieveshell --user=resea...@episcopalarchives.org 
--authname=cyrus episcopalarchives.org

connecting to episcopalarchives.org
unable to connect to server at /usr/bin/sieveshell line 191.

I'm also not sure what the point is of sieveshell is if I'm running it 
on the mail server and not remotely; similarly for timsieved.


First question:  is there step by step explanation for manually creating 
and invoking a cyrus sieve script for a particular user?


Second question:  Ancient unix/linux users will recall a simple vacation 
program that any user could run to throw up or take down an automated 
vacation reply.  The age of sieve has made this process considerably 
more complicated, but I would like to write (or obtain) a script that 
performs a similar function for cyrus sieve; i.e. the user runs vacation 
and it automatically sets up an automated vacation reply message. 
Anyone have something like this already?


I've been beating my head against google for many hours at this point 
looking for information on how this all works, particularly with cyrus 
and haven't found anything.




Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: sieve vacation with start and end date

2014-12-30 Thread k...@rice.edu
On Tue, Dec 30, 2014 at 09:25:48AM -0500, James Cassell wrote:
> 
> On Tue, Dec 30, 2014, at 08:51 AM, k...@rice.edu wrote:
> > Quoting Adam Tauno Williams :
> > 
> > > On Sun, 2014-12-28 at 10:20 +0100, Marcus Schopen wrote:
> > >> does sieve vacation understand a start and end date? Something like this
> > >> does not work:
> > >> ---
> > >> require ["date", "relational", "vacation"];
> > >> if allof(currentdate :value "ge" "date" "2007-06-30",
> > >>  currentdate :value "le" "date" "2007-07-07")
> > >> { vacation :days 7  "I'm away during the first week in July."; }
> > >> ---
> > >> System: cyrus 2.4.12 on Ubuntu 12.04 LTS
> > >
> > > It may or may not;  depends on what extensions/plugins are activated in
> > > your SIEVE.  Is the above documented syntax from somewhere?
> > >
> > > Horde's Ingo application uses regular expressions to match dates in
> > > order to implement vacation start/end.  I believe date matching in SIEVE
> > > is a relatively recent thing, and I am not sure to what level it is
> > > implemented [anywhere].
> > >
> > Cyrus sieve does not have the date extension. I wish it did. :)
> > 
> 
> cyrus 2.5 will have the date extension.  It has already been implemented in 
> the master git branch.  Likely, it could be backported to 2.4 if anyone is up 
> to the task.
> 
> > Regards,
> > Ken
> > 

Very, very cool!

Regards,
Ken

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: sieve vacation with start and end date

2014-12-30 Thread James Cassell

On Tue, Dec 30, 2014, at 08:51 AM, k...@rice.edu wrote:
> Quoting Adam Tauno Williams :
> 
> > On Sun, 2014-12-28 at 10:20 +0100, Marcus Schopen wrote:
> >> does sieve vacation understand a start and end date? Something like this
> >> does not work:
> >> ---
> >> require ["date", "relational", "vacation"];
> >> if allof(currentdate :value "ge" "date" "2007-06-30",
> >>  currentdate :value "le" "date" "2007-07-07")
> >> { vacation :days 7  "I'm away during the first week in July."; }
> >> ---
> >> System: cyrus 2.4.12 on Ubuntu 12.04 LTS
> >
> > It may or may not;  depends on what extensions/plugins are activated in
> > your SIEVE.  Is the above documented syntax from somewhere?
> >
> > Horde's Ingo application uses regular expressions to match dates in
> > order to implement vacation start/end.  I believe date matching in SIEVE
> > is a relatively recent thing, and I am not sure to what level it is
> > implemented [anywhere].
> >
> Cyrus sieve does not have the date extension. I wish it did. :)
> 

cyrus 2.5 will have the date extension.  It has already been implemented in the 
master git branch.  Likely, it could be backported to 2.4 if anyone is up to 
the task.

> Regards,
> Ken
> 

V/r,
James Cassell

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: sieve vacation with start and end date

2014-12-30 Thread ktm
Quoting Adam Tauno Williams :

> On Sun, 2014-12-28 at 10:20 +0100, Marcus Schopen wrote:
>> does sieve vacation understand a start and end date? Something like this
>> does not work:
>> ---
>> require ["date", "relational", "vacation"];
>> if allof(currentdate :value "ge" "date" "2007-06-30",
>>  currentdate :value "le" "date" "2007-07-07")
>> { vacation :days 7  "I'm away during the first week in July."; }
>> ---
>> System: cyrus 2.4.12 on Ubuntu 12.04 LTS
>
> It may or may not;  depends on what extensions/plugins are activated in
> your SIEVE.  Is the above documented syntax from somewhere?
>
> Horde's Ingo application uses regular expressions to match dates in
> order to implement vacation start/end.  I believe date matching in SIEVE
> is a relatively recent thing, and I am not sure to what level it is
> implemented [anywhere].
>
Cyrus sieve does not have the date extension. I wish it did. :)

Regards,
Ken



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: sieve vacation with start and end date

2014-12-30 Thread Adam Tauno Williams
On Tue, 2014-12-30 at 08:39 -0500, Adam Tauno Williams wrote: 
> On Sun, 2014-12-28 at 10:20 +0100, Marcus Schopen wrote: 
> > does sieve vacation understand a start and end date? Something like this
> > does not work:
> > ---
> > require ["date", "relational", "vacation"];
> > if allof(currentdate :value "ge" "date" "2007-06-30",
> >  currentdate :value "le" "date" "2007-07-07")
> > { vacation :days 7  "I'm away during the first week in July."; }
> > ---
> > System: cyrus 2.4.12 on Ubuntu 12.04 LTS
> It may or may not;  depends on what extensions/plugins are activated in
> your SIEVE.  Is the above documented syntax from somewhere?

It looks like there is an open bug.

Implement date extension (rfc5260) 
<https://bugzilla.cyrusimap.org/show_bug.cgi?id=3724>

> Horde's Ingo application uses regular expressions to match dates in
> order to implement vacation start/end.  I believe date matching in SIEVE
> is a relatively recent thing, and I am not sure to what level it is
> implemented [anywhere].

-- 
Adam Tauno Williams <mailto:awill...@whitemice.org> GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: sieve vacation with start and end date

2014-12-30 Thread Adam Tauno Williams
On Sun, 2014-12-28 at 10:20 +0100, Marcus Schopen wrote: 
> does sieve vacation understand a start and end date? Something like this
> does not work:
> ---
> require ["date", "relational", "vacation"];
> if allof(currentdate :value "ge" "date" "2007-06-30",
>  currentdate :value "le" "date" "2007-07-07")
> { vacation :days 7  "I'm away during the first week in July."; }
> ---
> System: cyrus 2.4.12 on Ubuntu 12.04 LTS

It may or may not;  depends on what extensions/plugins are activated in
your SIEVE.  Is the above documented syntax from somewhere?

Horde's Ingo application uses regular expressions to match dates in
order to implement vacation start/end.  I believe date matching in SIEVE
is a relatively recent thing, and I am not sure to what level it is
implemented [anywhere].

-- 
Adam Tauno Williams <mailto:awill...@whitemice.org> GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


sieve vacation with start and end date

2014-12-28 Thread Marcus Schopen
Hi,

does sieve vacation understand a start and end date? Something like this
does not work:

---
require ["date", "relational", "vacation"];
if allof(currentdate :value "ge" "date" "2007-06-30",
 currentdate :value "le" "date" "2007-07-07")
{ vacation :days 7  "I'm away during the first week in July."; }
---

System: cyrus 2.4.12 on Ubuntu 12.04 LTS

Cheers
Marcus



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: SIEVE vacation not works with "email aliases"

2014-04-04 Thread Niels Dettenbach
Am Freitag, 4. April 2014, 09:33:47 schrieben Sie:
> require ["vacation","regex"];
> 
> vacation :days 7 :addresses ["addre...@example.com", "addre...@example.com"]
> text:

ahh! This syntax seem to work so far. Thank you!

I've tried/used things similiar to this (roundcube generated):

## Generated by Roundcube Webmail SieveRules Plugin ##
require ["vacation"];

if anyof (true)
{
vacation
:days 7
:subject "Bin kurz weg"
"..und gleich wieder da";
}


any idea why it is not working?

many thanks again.

cheerioh,


Niels.
-- 
 ---
 Niels Dettenbach
 Syndicat IT & Internet
 http://www.syndicat.com
 PGP: https://syndicat.com/pub_key.asc
 ---
 





signature.asc
Description: This is a digitally signed message part.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: SIEVE vacation not works with "email aliases"

2014-04-04 Thread k...@rice.edu
On Fri, Apr 04, 2014 at 04:26:43PM +0200, Niels Dettenbach wrote:
> Hi all,
> 
> 
> it seems i'm not alone with this "effect" or "bug" in the SIEVE vacation 
> module.
> 
> On a cyrus-imap ("feeded" by EXIM) with virtual domains where usernames are 
> "equal" to email adresses i have the effect, that vacations are not sent out 
> when an incoming email is addressed to an "alias" of the mailbox (means to an 
> email address which is NOT the same as the IMAP user name / mailbox name).
> 
> On another machine where user accounts arr in the format user.domain.tld 
> (instead of u...@domain.tld) under NetBSD it works without any problems. So i 
> assume slightly that it may be related to the aliasing mechanism.
> 
> There is no change if i catch all incoming emails or define each by hand in 
> sieve.
> 
> 
> Is anyone out there faced to the same problem? Is there any solution? 
> 
> 
> many thanks in advance.
> cheerioh,
> 
> Niels.
> -- 

Hi Niels,

You need to include the addresses that the vacation is to reply to. Here is
an example:

require ["vacation","regex"];

vacation :days 7 :addresses ["addre...@example.com", "addre...@example.com"] 
text:
testing vacation
.
;

Regards,
Ken

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


SIEVE vacation not works with "email aliases"

2014-04-04 Thread Niels Dettenbach
Hi all,


it seems i'm not alone with this "effect" or "bug" in the SIEVE vacation 
module.

On a cyrus-imap ("feeded" by EXIM) with virtual domains where usernames are 
"equal" to email adresses i have the effect, that vacations are not sent out 
when an incoming email is addressed to an "alias" of the mailbox (means to an 
email address which is NOT the same as the IMAP user name / mailbox name).

On another machine where user accounts arr in the format user.domain.tld 
(instead of u...@domain.tld) under NetBSD it works without any problems. So i 
assume slightly that it may be related to the aliasing mechanism.

There is no change if i catch all incoming emails or define each by hand in 
sieve.


Is anyone out there faced to the same problem? Is there any solution? 


many thanks in advance.
cheerioh,

Niels.
-- 
 ---
 Niels Dettenbach
 Syndicat IT & Internet
 http://www.syndicat.com
 PGP: https://syndicat.com/pub_key.asc
 ---
 





signature.asc
Description: This is a digitally signed message part.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Sieve vacation in virtdomains / ldap

2013-06-15 Thread Gabriele Bulfon
Hi,
we've been using cyrus for years in pam auth mode, with vacation scripts 
working correctly.
We recently switched to virtdomains: userid using ldap authentication.
Since this switch, vacation scripts are never considered, while filters parts 
of the script work fine.
Sieve scripts are usually like this:
#
# Generated by Sonicle WebTop Services [http://www.sonicle.com]
#
require ["fileinto","vacation","reject"];
if anyof (header :contains "subject" "***SPAM***") {
fileinto "Spam";
}
else {
keep;
}
vacation :days 1 :addresses ["realm...@realdomain.com"] text:
Test risposta automatica.
.
;
Is there anything to consider in virtomains mode??
Thanks for any help
Gabriele.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Minimum days between sieve vacation responses

2011-11-05 Thread Bron Gondwana
On Sat, Nov 05, 2011 at 01:37:02PM +0530, Ramprasad wrote:
> But our client requires that every mail to "sa...@domain.com"should
> immediately get a response ( Business requirements .. not technical ) 

Sieve is probably the wrong tool for the job.

> Assuming that I have methods to avoid looping at the SMTP level .. how
> can I do this in cyrus, sieve

I would recommend an email autoresponder designed for the job, see:

http://en.wikipedia.org/wiki/Autoresponder

In particular "Today's autoresponders need to be careful to not
generate e-mail backscatter, which can result in the autoresponses
being considered E-mail spam."

I would probably hang something like request-tracker on the sales
address, causing every contact to not only get an immediate response,
but be trackable from there.

Bron.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: Minimum days between sieve vacation responses

2011-11-05 Thread Ramprasad
On Fri, 2011-11-04 at 08:24 -0500, k...@rice.edu wrote:
> On Fri, Nov 04, 2011 at 07:59:07AM +0100, Bron Gondwana wrote:
> > On Fri, Nov 04, 2011 at 12:22:54PM +0530, Ram wrote:
> > > Can I configure sieve to send vacation responses for every message .. 
> > > rather than waiting for "n" days before responding again to the same 
> > > sender
> > 
> > Ouch - why?  There's a danger of mail loops, amongst other things.
> > 
> > Bron.
> 
> Double ouch, ouch! That is a really, really, REALLY bad idea. We actually
> made a work-around within the mail system to make this happen and sooner
> or later, in EVERY case, we had a massive mail loop or other type of self-
> inflicted DoS against our mail infrastructure. In most of them, the users
> themselves received so much mail that their mail clients were unable to
> handle the volume and mail administrators were needed to clean things
> enough for them to get back to work.
> 


I understand that this may lead to mail loops

But our client requires that every mail to "sa...@domain.com"should
immediately get a response ( Business requirements .. not technical ) 


Assuming that I have methods to avoid looping at the SMTP level .. how
can I do this in cyrus, sieve




Thanks
Ram






Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: Minimum days between sieve vacation responses

2011-11-04 Thread k...@rice.edu
On Fri, Nov 04, 2011 at 07:59:07AM +0100, Bron Gondwana wrote:
> On Fri, Nov 04, 2011 at 12:22:54PM +0530, Ram wrote:
> > Can I configure sieve to send vacation responses for every message .. 
> > rather than waiting for "n" days before responding again to the same sender
> 
> Ouch - why?  There's a danger of mail loops, amongst other things.
> 
> Bron.

Double ouch, ouch! That is a really, really, REALLY bad idea. We actually
made a work-around within the mail system to make this happen and sooner
or later, in EVERY case, we had a massive mail loop or other type of self-
inflicted DoS against our mail infrastructure. In most of them, the users
themselves received so much mail that their mail clients were unable to
handle the volume and mail administrators were needed to clean things
enough for them to get back to work.

The moral is, if you need this, the implementation is far from trivial
and you will need to implement internal controls and feedback loops to
prevent these types of problems. Unless you are legally required to
do this, figure out another way.

Cheers,
Ken

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: Minimum days between sieve vacation responses

2011-11-04 Thread Bron Gondwana
On Fri, Nov 04, 2011 at 12:22:54PM +0530, Ram wrote:
> Can I configure sieve to send vacation responses for every message .. 
> rather than waiting for "n" days before responding again to the same sender

Ouch - why?  There's a danger of mail loops, amongst other things.

Bron.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Minimum days between sieve vacation responses

2011-11-03 Thread Ram
Can I configure sieve to send vacation responses for every message .. 
rather than waiting for "n" days before responding again to the same sender


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: sieve vacation filter not working for one user

2010-03-18 Thread Andrew Morgan
On Thu, 18 Mar 2010, Maria McKinley wrote:

>> I tried changing the name. Cyrus remade the file, and it didn't seem to
>> cause any problems, but unfortunately, it didn't help either.
>
> Actually, don't try this at home. A few seconds after I sent this email,
> my mail server started freaking out about DBERRORs. I tried replacing
> the file, that didn't help. Tried restarting cyrus, it wouldn't shutdown
> properly, finally had to reboot the machine. And yes, the vacation
> problem still exists...

Hehe, don't change those files while Cyrus is running!

If you delete deliver.db, make sure Cyrus is stopped.  You'll also want to 
remove the files in the {configdir}/db/ directory.  Again, only do that 
while Cyrus is stopped.

Andy

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve vacation filter not working for one user

2010-03-18 Thread Maria McKinley
Maria McKinley wrote:
> Simon Matter wrote:
>>> Simon Matter wrote:
> Can anyone tell me where the file(s) with list of email addresses that
> have been sent a vacation reply lives in a debian installation? I 
> can't
> seem to find it.
 Hi,

 I think what you are looking for is deliver.db in $configdir. Don't 
 know
 on Debian but on my systems it's /var/lib/imap/deliver.db.

 Regards,
 Simon

>>> Thanks, I found it. Didn't answer my question though, since I can't read
>>> it. Wanted to see if my test email sent to a user on vacation was read,
>>> and entered into the database, but for some reason the vacation response
>>> didn't work, or if it didn't even get that far. Is it possible/likely
>>> that this could have been corrupted, and that is why I have a user whose
>>> vacation sieve doesn't work? It seems like this file must be used by all
>>> users. Is it used for anything besides vacations? What would happen if I
>>> deleted it?
>>
>> I'm not exactly an expert here... but IIRC deliver.db is also used to
>> detect duplicate deliveries and things like single instance storage may
>> therefore also use it.
>> But, removing it should not hurt much. It will get created again and 
>> maybe
>> some users will get vacation responses again because of it but nothing
>> serious should happen. Maybe you just rename it and check how it goes so
>> you can go back if there is need to.
>>
>> Regards,
>> Simon
>>
> 
> I tried changing the name. Cyrus remade the file, and it didn't seem to 
> cause any problems, but unfortunately, it didn't help either. 

Actually, don't try this at home. A few seconds after I sent this email, 
my mail server started freaking out about DBERRORs. I tried replacing 
the file, that didn't help. Tried restarting cyrus, it wouldn't shutdown 
properly, finally had to reboot the machine. And yes, the vacation 
problem still exists...

~m

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve vacation filter not working for one user

2010-03-18 Thread Maria McKinley
Simon Matter wrote:
>> Simon Matter wrote:
 Can anyone tell me where the file(s) with list of email addresses that
 have been sent a vacation reply lives in a debian installation? I can't
 seem to find it.
>>> Hi,
>>>
>>> I think what you are looking for is deliver.db in $configdir. Don't know
>>> on Debian but on my systems it's /var/lib/imap/deliver.db.
>>>
>>> Regards,
>>> Simon
>>>
>> Thanks, I found it. Didn't answer my question though, since I can't read
>> it. Wanted to see if my test email sent to a user on vacation was read,
>> and entered into the database, but for some reason the vacation response
>> didn't work, or if it didn't even get that far. Is it possible/likely
>> that this could have been corrupted, and that is why I have a user whose
>> vacation sieve doesn't work? It seems like this file must be used by all
>> users. Is it used for anything besides vacations? What would happen if I
>> deleted it?
> 
> I'm not exactly an expert here... but IIRC deliver.db is also used to
> detect duplicate deliveries and things like single instance storage may
> therefore also use it.
> But, removing it should not hurt much. It will get created again and maybe
> some users will get vacation responses again because of it but nothing
> serious should happen. Maybe you just rename it and check how it goes so
> you can go back if there is need to.
> 
> Regards,
> Simon
> 

I tried changing the name. Cyrus remade the file, and it didn't seem to 
cause any problems, but unfortunately, it didn't help either. Here is 
the output of the log file for a mail sent to mike, which should have 
been sent a vacation notice.:

Mar 18 16:44:52 ella cyrus/lmtpunix[6709]: duplicate_check: 
#010S<9A>xTy7U 
mike 1269560373
Mar 18 16:44:52 ella cyrus/lmtpunix[6709]: duplicate_check: 
 user.mike 
0
Mar 18 16:44:52 ella cyrus/lmtpunix[6709]: duplicate_check: 
 user.mike 
0
Mar 18 16:44:52 ella cyrus/lmtpunix[6709]: mystore: starting txn 2147486822
Mar 18 16:44:52 ella cyrus/lmtpunix[6709]: mystore: committing txn 
2147486822
Mar 18 16:44:52 ella cyrus/lmtpunix[6709]: duplicate_mark: 
 user.mike 
1268955892 4483413
Mar 18 16:44:52 ella cyrus/lmtpunix[6709]: Delivered: 
 to 
mailbox: user.mike
Mar 18 16:44:52 ella cyrus/lmtpunix[6709]: mystore: starting txn 2147486823
Mar 18 16:44:52 ella cyrus/lmtpunix[6709]: mystore: committing txn 
2147486823
Mar 18 16:44:52 ella cyrus/lmtpunix[6709]: duplicate_mark: 
 
.mi...@.sieve.   1268955892 0
Mar 18 16:44:52 ella cyrus/lmtpunix[6709]: telling master 1
Mar 18 16:44:52 ella cyrus/master[27902]: service lmtpunix pid 6709 in 
BUSY state: now available and in READY state
Mar 18 16:44:52 ella cyrus/master[27902]: service lmtpunix now has 1 
ready workers
Mar 18 16:44:52 ella postfix/lmtp[6708]: 1EA71D1A5E: 
to=, 
relay=smtp.mycompany.org[/var/run/cyrus/socket/lmtp], delay=0.06, 
delays=0.01/0.02/0.02/0.01, dsn=2.1.5, status=sent (250 2.1.5 Ok)
Mar 18 16:44:52 ella postfix/qmgr[2779]: 1EA71D1A5E: removed

Here is an email sent to another user, maria, in which the vacation 
notice worked successfully. Clearly there is much more going on here. 
Interesting that actual email addresses (which I have changed) show up 
in the logs here, but didn't for mike.

Mar 18 16:52:06 ella postfix/smtpd[7189]: connect from localhost[127.0.0.1]
Mar 18 16:52:06 ella postfix/smtpd[7189]: E7B64D1A5E: 
client=localhost[127.0.0.1]
Mar 18 16:52:06 ella postfix/cleanup[7178]: E7B64D1A5E: 
message-id=
Mar 18 16:52:06 ella postfix/smtpd[7189]: disconnect from 
localhost[127.0.0.1]
Mar 18 16:52:06 ella postfix/qmgr[2779]: E7B64D1A5E: 
from=, size=2438, nrcpt=1 (queue active)
Mar 18 16:52:06 ella amavis[5974]: (05974-05) FWD via SMTP: 
 -> ,BODY=7BIT 250
  2.0.0 Ok, id=05974-05, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: 
queued as E7B64D1A5E
Mar 18 16:52:06 ella cyrus/lmtpunix[7192]: telling master 2
Mar 18 16:52:06 ella cyrus/lmtpunix[7192]: accepted connection
Mar 18 16:52:06 ella cyrus/lmtpunix[7192]: telling master 3
Mar 18 16:52:06 ella cyrus/lmtpunix[7192]: lmtp connection preauth'd as 
postman
Mar 18 16:52:06 ella cyrus/master[27902]: service lmtpunix pid 7192 in 
READY state: now unavailable and in BUSY state
Mar 18 16:52:06 ella cyrus/master[27902]: service lmtpunix now has 0 
ready workers
Mar 18 16:52:06 ella cyrus/master[27902]: service lmtpunix pid 7192 in 
BUSY state: now serving connection
Mar 18 16:52:06 ella cyrus/master[27902]: service lmtpunix now has 0 
ready workers
Mar 18 16:52:06 ella cyrus/lmtpunix[7192]: duplicate_check: 
R<9B>#034#036t<9B><#023l1#005&
maria0
Mar 18 16:52:06 ella cyrus/lmtpunix[7192]: mystore: starting txn 2147486834
Mar 18 16:52:06 ella cyrus/lmtpunix[7192]: mystore: committing txn 
2147486834
Mar 18 16:52:06 ella cyrus/lmtpunix[7192]: duplicate_mark: 
R<9B>#034#036t<9B><#023l1#005& 
maria1269561126 0
Mar 18 16:52:06 ella cyrus/lmtpunix[7192]: mystore: starting txn 21

Re: sieve vacation filter not working for one user

2010-03-18 Thread Simon Matter
> Simon Matter wrote:
>>> Can anyone tell me where the file(s) with list of email addresses that
>>> have been sent a vacation reply lives in a debian installation? I can't
>>> seem to find it.
>>
>> Hi,
>>
>> I think what you are looking for is deliver.db in $configdir. Don't know
>> on Debian but on my systems it's /var/lib/imap/deliver.db.
>>
>> Regards,
>> Simon
>>
>
> Thanks, I found it. Didn't answer my question though, since I can't read
> it. Wanted to see if my test email sent to a user on vacation was read,
> and entered into the database, but for some reason the vacation response
> didn't work, or if it didn't even get that far. Is it possible/likely
> that this could have been corrupted, and that is why I have a user whose
> vacation sieve doesn't work? It seems like this file must be used by all
> users. Is it used for anything besides vacations? What would happen if I
> deleted it?

I'm not exactly an expert here... but IIRC deliver.db is also used to
detect duplicate deliveries and things like single instance storage may
therefore also use it.
But, removing it should not hurt much. It will get created again and maybe
some users will get vacation responses again because of it but nothing
serious should happen. Maybe you just rename it and check how it goes so
you can go back if there is need to.

Regards,
Simon


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve vacation filter not working for one user

2010-03-18 Thread Maria McKinley
Simon Matter wrote:
>> Can anyone tell me where the file(s) with list of email addresses that
>> have been sent a vacation reply lives in a debian installation? I can't
>> seem to find it.
> 
> Hi,
> 
> I think what you are looking for is deliver.db in $configdir. Don't know
> on Debian but on my systems it's /var/lib/imap/deliver.db.
> 
> Regards,
> Simon
> 

Thanks, I found it. Didn't answer my question though, since I can't read 
it. Wanted to see if my test email sent to a user on vacation was read, 
and entered into the database, but for some reason the vacation response 
didn't work, or if it didn't even get that far. Is it possible/likely 
that this could have been corrupted, and that is why I have a user whose 
vacation sieve doesn't work? It seems like this file must be used by all 
users. Is it used for anything besides vacations? What would happen if I 
deleted it?

thanks,
maria

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve vacation filter not working for one user

2010-03-17 Thread Simon Matter
> Can anyone tell me where the file(s) with list of email addresses that
> have been sent a vacation reply lives in a debian installation? I can't
> seem to find it.

Hi,

I think what you are looking for is deliver.db in $configdir. Don't know
on Debian but on my systems it's /var/lib/imap/deliver.db.

Regards,
Simon


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


sieve vacation filter not working for one user

2010-03-17 Thread Maria McKinley
Can anyone tell me where the file(s) with list of email addresses that 
have been sent a vacation reply lives in a debian installation? I can't 
seem to find it.

thanks,
maria

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


sieve vacation filter not working for one user

2010-03-15 Thread Maria McKinley
I have one user who cannot get their vacation filter to work. Other 
filters work fine. I have tried moving their filter folder and 
re-creating it, and that has not helped, so I don't think the problem is 
the way squirrel mail created/edited the filter, or some corruption in 
the files themselves. Any ideas of what else could go wrong for just one 
user?

thanks,
maria

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve "vacation" and duplicated emails

2009-07-27 Thread Bernd Petrovitsch
Hi!

On Wed, 2009-07-22 at 15:22 +0200, Bernd Petrovitsch wrote:
[...]
> I'm in the process of upgrading cyrus-imapd-2.2.13 (from
> Debian-3.1/Sarge) to cyrus-imapd-2.3.7 (from RHEL-5/CentOS-5) on a
> system with approx. 25k mailboxes.
> 
> We are using quite simple sieve scripts for vacation and 2.3.7
> duplicates (into the local inbox) all emails which trigger an outgoing
> vacation mail.
> Glancing over the source diff'ing the old and new imap/lmtp_sieve.c file
> (and diff'ing to 2.3.14) doesn't reveal anything remotely strange (to my
> eyes - I'm not experienced with cyrus-imapd's source code. So I may well
> looked into the wrong file.).
It was the correct file as it calls "sendmail" (configureable
in /etc/imapd.conf) there to send out the vacation mail.

> Googling and searching in the bug/issue trackers from above also doesn't
> give any useful hint - and I didn't even found someone else having that
> problem.
Please find the solution at the end:

> FWIW, we have "duplicatesuppression: false" in /etc/imapd.conf - as it
> saved a lot of I/O load on the old systems (avoiding storing and
> checking the for duplicates in the DB).
This and Cyrus-Imapd had nothing to do with it - at least for the root
cause. The symptoms are IMHO strange nonetheless.

Debugging the issue leads to: the above mentioned "sendmail" call is in
my case the (real) sendmail from the RHEL/5/CentOS-5
sendmail-8.13.8-2.el5 package. "sendmail" returned with an exitcode of
65 - "data format error" according to sendmail's source and the erros
was reproducable on the shell. It was *not* caused by illegal characters
in headers or some other fault in the to-be-sent mail (at least I and an
other pair of eyes didn't find anything faulty).
The root cause was (to the best of my understanding - please correct me
of/when/where I'm wrong): The called sendmail acted as a MSA and - thus
- used /etc/mail/submit.mc which had at the end
  snip  
FEATURE(`msp', `[$IP_ADDRESS_OF_SMARTHOST]')dnl
  snip  
to deliver the mail directly to the resident smart host.
Changing that to
  snip  
FEATURE(`msp', `[127.0.0.1]')dnl
  snip  
returns 0 (and made everything else magically work as expected). Adding
`MSA' to use port 587 instead of 25 doesn't change anything BTW.
The main difference is that the MSA now connects to the local MTA which
in turn forwards the mail so the smart host (as the sendmail.mc has an
equivalent SMART_HOST() line there).

In short: Obviously I either mis/ab/used sendmails features or something
else is somewhere wrong.
Sorry, but I don't feel like I's like to debug sendmail as such further
(and that would belong to some sendmail ML anyways).

Thanks for all the answers,
Bernd
-- 
Firmix Software GmbH   http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
  Embedded Linux Development and Services



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve "vacation" and duplicated emails

2009-07-27 Thread Bernd Petrovitsch
On Wed, 2009-07-22 at 12:49 -0700, Andrew Morgan wrote:
> On Wed, 22 Jul 2009, Bernd Petrovitsch wrote:
[]
> > If I add a "vacation" statement (with a known working local email
> > address) as in
> >   snip  
> > require [ "fileinto", "vacation" ];
> > vacation :days 7 :addresses [ "u...@example.com" ] "Bin im Urlaub ...";
> > if header :contains [ "X-Spam-Flag" ] [ "YES" ] {
> > fileinto "INBOX/Spam";
> > } else {
> > keep;
> > }
> >   snip  
> > each (non-spam-)mail, which triggers a vacation response, is stored 2
> > times in the INBOX (and not just once - from the "keep").
> 
> This does sound a bit like a bug, but I think your sieve rules are 
> somewhat out-of-order as well.  Here is how I would write it:
> 
> require [ "fileinto", "vacation" ];
> if header :contains "X-Spam-Flag" "YES" {
>   fileinto "INBOX/Spam";
>   stop;
> }
> vacation :days 7 :addresses [ "u...@example.com" ] "Bin im Urlaub ...";

> "stop" tells sieve to stop processing the message.  With "stop" in place, 
> you don't need a clunky "else { keep; }" clause.  There is an implicit 
> "keep" action if a message is not fileinto'd a different mailbox.
The above is the reduced version for exactly on "if" - my
personal .sieve script sorts mailing-lists in different folders and it's
far smaller with the one clunky "else" after an if-cascade than having a
"stop" after each "if".
Other than that: It's probably more a matter of style and/or taste than
anything else IMHO.

> Also, you want the vacation responder to avoid processing spam emails.
ACK, sending `vacation` for detected Spams is probably not a very good
idea.

Bernd
-- 
Firmix Software GmbH   http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
  Embedded Linux Development and Services



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve "vacation" and duplicated emails

2009-07-22 Thread Andrew Morgan
On Wed, 22 Jul 2009, Bernd Petrovitsch wrote:

> If I have the following sieve script, everything works fine and each
> (non-Spam-)mail appears once in the INBOX (since we have the "keep"
> there)
>   snip  
> require [ "fileinto", "vacation" ];
> if header :contains [ "X-Spam-Flag" ] [ "YES" ] {
> fileinto "INBOX/Spam";
> } else {
> keep;
> }
>   snip  
> If I add a "vacation" statement (with a known working local email
> address) as in
>   snip  
> require [ "fileinto", "vacation" ];
> vacation :days 7 :addresses [ "u...@example.com" ] "Bin im Urlaub ...";
> if header :contains [ "X-Spam-Flag" ] [ "YES" ] {
> fileinto "INBOX/Spam";
> } else {
> keep;
> }
>   snip  
> each (non-spam-)mail, which triggers a vacation response, is stored 2
> times in the INBOX (and not just once - from the "keep").

This does sound a bit like a bug, but I think your sieve rules are 
somewhat out-of-order as well.  Here is how I would write it:

require [ "fileinto", "vacation" ];
if header :contains "X-Spam-Flag" "YES" {
fileinto "INBOX/Spam";
stop;
}
vacation :days 7 :addresses [ "u...@example.com" ] "Bin im Urlaub ...";


"stop" tells sieve to stop processing the message.  With "stop" in place, 
you don't need a clunky "else { keep; }" clause.  There is an implicit 
"keep" action if a message is not fileinto'd a different mailbox.

Also, you want the vacation responder to avoid processing spam emails.

Andy

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve "vacation" and duplicated emails

2009-07-22 Thread Bernd Petrovitsch
Hi!

On Wed, 2009-07-22 at 16:49 +0200, Simon Matter wrote:
[...]
> > I'm in the process of upgrading cyrus-imapd-2.2.13 (from
> > Debian-3.1/Sarge) to cyrus-imapd-2.3.7 (from RHEL-5/CentOS-5) on a
> > system with approx. 25k mailboxes.
> >
> > We are using quite simple sieve scripts for vacation and 2.3.7
> > duplicates (into the local inbox) all emails which trigger an outgoing
> > vacation mail.
> 
> I'm not sure I completely understand your situation and what your problem is.
I can give more details:

If I have the following sieve script, everything works fine and each
(non-Spam-)mail appears once in the INBOX (since we have the "keep"
there)
  snip  
require [ "fileinto", "vacation" ];
if header :contains [ "X-Spam-Flag" ] [ "YES" ] {
fileinto "INBOX/Spam"; 
} else {
keep;
}
  snip  
If I add a "vacation" statement (with a known working local email
address) as in
  snip  
require [ "fileinto", "vacation" ];
vacation :days 7 :addresses [ "u...@example.com" ] "Bin im Urlaub ..."; 
if header :contains [ "X-Spam-Flag" ] [ "YES" ] {
fileinto "INBOX/Spam"; 
} else {
keep;
}
  snip  
each (non-spam-)mail, which triggers a vacation response, is stored 2
times in the INBOX (and not just once - from the "keep").

I have now more details. The vacation response is sent via sendmail but
the sendmail process terminates with an exit code 65 which is -
according to the sources - "data format error". The vacation response
mails always arrived BTW.
I don't know yet if it's related to that problem or not.

> However, you should note that the RHEL-5 system might have delayed expunge
> enabled which at least means that a mail delivered to an inbox and then
> deleted from there will still be visible on the filesystem. Do you really
> see the mail via IMAP or only on the filesystem?

I see them via IMAP (and I didn't actually check the filesystem as I saw
no reason).


> > Glancing over the source diff'ing the old and new imap/lmtp_sieve.c file
> > (and diff'ing to 2.3.14) doesn't reveal anything remotely strange (to my
> > eyes - I'm not experienced with cyrus-imapd's source code. So I may well
> > looked into the wrong file.).
> >
> > Googling and searching in the bug/issue trackers from above also doesn't
> > give any useful hint - and I didn't even found someone else having that
> > problem.
> >
> > FWIW, we have "duplicatesuppression: false" in /etc/imapd.conf - as it
> > saved a lot of I/O load on the old systems (avoiding storing and
> > checking the for duplicates in the DB).
> >
> > Does anyone have any idea what could be wrong or what could/should be
> > debugged/analyzed/?

TIAaA,
Bernd
-- 
Firmix Software GmbH   http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
  Embedded Linux Development and Services



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve "vacation" and duplicated emails

2009-07-22 Thread Simon Matter
> Hi all!
>
> I'm in the process of upgrading cyrus-imapd-2.2.13 (from
> Debian-3.1/Sarge) to cyrus-imapd-2.3.7 (from RHEL-5/CentOS-5) on a
> system with approx. 25k mailboxes.
>
> We are using quite simple sieve scripts for vacation and 2.3.7
> duplicates (into the local inbox) all emails which trigger an outgoing
> vacation mail.

I'm not sure I completely understand your situation and what your problem is.
However, you should note that the RHEL-5 system might have delayed expunge
enabled which at least means that a mail delivered to an inbox and then
deleted from there will still be visible on the filesystem. Do you really
see the mail via IMAP or only on the filesystem?

Regards,
Simon

> Glancing over the source diff'ing the old and new imap/lmtp_sieve.c file
> (and diff'ing to 2.3.14) doesn't reveal anything remotely strange (to my
> eyes - I'm not experienced with cyrus-imapd's source code. So I may well
> looked into the wrong file.).
>
> Googling and searching in the bug/issue trackers from above also doesn't
> give any useful hint - and I didn't even found someone else having that
> problem.
>
> FWIW, we have "duplicatesuppression: false" in /etc/imapd.conf - as it
> saved a lot of I/O load on the old systems (avoiding storing and
> checking the for duplicates in the DB).
>
> Does anyone have any idea what could be wrong or what could/should be
> debugged/analyzed/?
>
>   Bernd
> --
> Firmix Software GmbH   http://www.firmix.at/
> mobil: +43 664 4416156 fax: +43 1 7890849-55
>   Embedded Linux Development and Services
>
>
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


sieve "vacation" and duplicated emails

2009-07-22 Thread Bernd Petrovitsch
Hi all!

I'm in the process of upgrading cyrus-imapd-2.2.13 (from
Debian-3.1/Sarge) to cyrus-imapd-2.3.7 (from RHEL-5/CentOS-5) on a
system with approx. 25k mailboxes.

We are using quite simple sieve scripts for vacation and 2.3.7
duplicates (into the local inbox) all emails which trigger an outgoing
vacation mail.
Glancing over the source diff'ing the old and new imap/lmtp_sieve.c file
(and diff'ing to 2.3.14) doesn't reveal anything remotely strange (to my
eyes - I'm not experienced with cyrus-imapd's source code. So I may well
looked into the wrong file.).

Googling and searching in the bug/issue trackers from above also doesn't
give any useful hint - and I didn't even found someone else having that
problem.

FWIW, we have "duplicatesuppression: false" in /etc/imapd.conf - as it
saved a lot of I/O load on the old systems (avoiding storing and
checking the for duplicates in the DB).

Does anyone have any idea what could be wrong or what could/should be
debugged/analyzed/?

Bernd
-- 
Firmix Software GmbH   http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
  Embedded Linux Development and Services



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working (solved)

2009-05-28 Thread Garry Glendown
Garry wrote:
> define(`confLOCAL_MAILER', `cyrus')dnl
> ifdef(`CYRUS_MAILER_ARGS',,
>  `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
> dnl MAILER(`cyrus')dnl

Of course, that was

MAILER(`cyrus')dnl

Also, please note that the define/ifdef part was well above all the
other MAILER lines, whereas the MAILER line was inserted as the last
MAILER line, on both versions ...

-garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Sieve: Vacation not working (My issue resolved!!)

2009-05-28 Thread Gottschalk, David
Good news!

I was able to get it working. I had the lines in the wrong order, and that 
apparently caused sendmail to not recognize the mailer.

Now, the vacation replies are working, and it appears sieve is working well.

Thanks to everyone for their help!

David Gottschalk
UTS Email team
david.gottsch...@emory.edu


-Original Message-
From: Garry [mailto:ga...@glendown.de]
Sent: Thursday, May 28, 2009 10:17 AM
To: Gottschalk, David
Subject: Re: Sieve: Vacation not working (solved)

Gottschalk, David wrote:
> Oh, one thing I forgot to mention.
>
> I got the unknown mailer error in a SMTP conversation after rebuilding the 
> .cf file. I didn't get it when doing a make on the .mc file, or even when 
> restarting sendmail.
>
Phew ... sounds weird ...  normally, m4 barfs when there is something
wrong or missing ... please note that I pulled th lines apart, having
the first two well above any "MAILER" lines, and the MAILER(cyrusv2) at
the end ... dunno if that might cause a problem with your setup ...


This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Sieve: Vacation not working (solved)

2009-05-28 Thread Gottschalk, David
Gary,
   I actually have this file in my /usr/share/sendmail-cf/mailer folder 
already. Is there something special I have to do to make sendmail build this 
into the .cf file? I didn't think there was, but maybe I'm missing something.

Thanks.

David Gottschalk
UTS Email team
david.gottsch...@emory.edu


-Original Message-
From: Garry Glendown [mailto:ga...@glendown.de]
Sent: Wednesday, May 27, 2009 11:18 PM
To: Gottschalk, David
Subject: Re: Sieve: Vacation not working (solved)

Gottschalk, David wrote:
> I put the lines in  my sendmail.mc file then built the sendmail.cf file.
>
> I'm running a old version of Redhat.
>
> Sendmail version is 8.12.11.

That could be the cause of the problem ... I reckon 8.12 doesn't have
the cyrusv2 mailer config files yet ... if you have access to some newer
systems, try whether you can copy the files from
/usr/share/sendmail/mailer/cyrusv2.m4 (or similar) to your system and
see if that gets it working ...

The resulting .cf has these differences on my system: (SuSE Enterprise
10 w/ sendmail 8.13):

787c786
< R<@>  $#cyrus $: <@>  special case error msgs
---
> R<@>  $#cyrusv2 $: <@>special case
error msgs
866,867c865,866
< R$=L < @ $=w . >  $#cyrus $: @ $1 special local names
< R$+ < @ $=w . >   $#cyrus $: $1   regular
local name
---
> R$=L < @ $=w . >  $#cyrusv2 $: @ $1   special
local names
> R$+ < @ $=w . >   $#cyrusv2 $: $1 regular
local name
889,890c888,889
< R$=L  $#cyrus $: @ $1 special local names
< R$+   $#cyrus $: $1   regular local names
---
> R$=L  $#cyrusv2 $: @ $1   special local names
> R$+   $#cyrusv2 $: $1 regular local names
907,908c906,907
< R$+ + *   $#cyrus $@ $&h $: $1
< R$+ + $*  $#cyrus $@ + $2 $: $1 + *
---
> R$+ + *   $#cyrusv2 $@ $&h $: $1
> R$+ + $*  $#cyrusv2 $@ + $2 $: $1 + *
921c920
< R< > < $+ > + $*  $#cyrus $@ $2 $: @ $1   strip the extra +
---
> R< > < $+ > + $*  $#cyrusv2 $@ $2 $: @ $1 strip the extra +
975,976c974,975
< R< > $* < @ $* > $*   $#cyrus $@ $...@$2 $: $1
< R< > $+   $#cyrus $@ $1$: $1
---
> R< > $* < @ $* > $*   $#cyrusv2 $@ $...@$2 $: $1
> R< > $+   $#cyrusv2 $@ $1$: $1
982,983c981,982
< R< $+ > $* <@ $* > $* $#cyrus $@ $...@$3 $: $1
< R< $+ > $*$#cyrus $@ $2$: $1
---
> R< $+ > $* <@ $* > $* $#cyrusv2 $@ $...@$3 $: $1
> R< $+ > $*$#cyrusv2 $@ $2$: $1
1873,1877c1872,1874
< ##
< ###   Cyrus Mailer specification   ###
< ##
<
< #  $Id: cyrus.m4,v 8.23 2001/11/12 23:11:34 ca Exp $ (Carnegie
Mellon)  #
---
> #
> ###   Cyrus V2 Mailer specification   ###
> #
1878a1876
> #  $Id: cyrusv2.m4,v 1.1 2002/06/01 21:14:57 ca Exp $  #
1880,1886c1878,1881
< Mcyrus,   P=/usr/lib/cyrus/bin/deliver, F=lsDFMnPqAh5@/:|,
S=EnvFromL, R=EnvToL/HdrToL,
<   U=cyrus:mail, T=DNS/RFC822/X-Unix,
<   A=deliver -e -f $f -m $h -- $u
<
< Mcyrusbb, P=/usr/lib/cyrus/bin/deliver, F=lsDFMnPu, S=EnvFromL,
R=EnvToL/HdrToL,
<   U=cyrus:mail, T=DNS/RFC822/X-Unix,
<   A=deliver -e -m $u
---
> Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,
>   S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
>   T=DNS/RFC822/SMTP,
>   A=FILE /var/lib/imap/socket/lmtp


This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working (solved)

2009-05-28 Thread Sebastian Hagedorn

--On 28. Mai 2009 11:39:03 +0200 Garry  wrote:


You didn't actually edit the .cf file, did you? That's not how it
works ... you need to edit the .mc and generate the .cf.

He didn't, he put it in the .mc and m4'd it ...


Wouldn't the m4 command have thrown an error in that case if it didn't know 
the cyrusv2 mailer? Unless you use the m4 files of a newer sendmail than 
the one you're actually running, that is.



anyway, I suppose the
cause is the rather old sendmail 8.12 he is running, which most likely
doesn't have the appropriate files for cyrusv2 as a mailer yet ...


Actually it does, at least with 8.12.6 and higher. 8.12.2 doesn't seem to 
have it.

--
.:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:.
.:.Regionales Rechenzentrum (RRZK).:.
.:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:.

pgpNlKAiwoQRI.pgp
Description: PGP signature

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Sieve: Vacation not working (solved)

2009-05-28 Thread Garry
Sebastian Hagedorn wrote:
> --On 27. Mai 2009 22:42:30 -0400 "Gottschalk, David"
>  wrote:
>
>> Well, I tried to enable this same feature this evening in sendmail, but
>> ran into some problems. Forgive me as I am complete novice when it comes
>> to enabling this feature in sendmail. I enabled this in my sendmail.cf,
>
> You didn't actually edit the .cf file, did you? That's not how it
> works ... you need to edit the .mc and generate the .cf.
He didn't, he put it in the .mc and m4'd it ... anyway, I suppose the
cause is the rather old sendmail 8.12 he is running, which most likely
doesn't have the appropriate files for cyrusv2 as a mailer yet ...

I'm not sure if it will be sufficient to just add the appropriate config
files, or if the cyrusv2-files require some additional functionality
inside sendmail 8.13.x that might not be present in earlier versions ...

-garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Sieve: Vacation not working (solved)

2009-05-28 Thread Sebastian Hagedorn
--On 27. Mai 2009 22:42:30 -0400 "Gottschalk, David"  
wrote:



Well, I tried to enable this same feature this evening in sendmail, but
ran into some problems. Forgive me as I am complete novice when it comes
to enabling this feature in sendmail. I enabled this in my sendmail.cf,


You didn't actually edit the .cf file, did you? That's not how it works ... 
you need to edit the .mc and generate the .cf.



then got the following error:

unknown mailer cyrusv2

--
.:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:.
.:.Regionales Rechenzentrum (RRZK).:.
.:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:.

pgpGH6Rpkaax6.pgp
Description: PGP signature

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

RE: Sieve: Vacation not working (solved)

2009-05-27 Thread Gottschalk, David
Well, I tried to enable this same feature this evening in sendmail, but ran 
into some problems. Forgive me as I am complete novice when it comes to 
enabling this feature in sendmail. I enabled this in my sendmail.cf, then got 
the following error:

unknown mailer cyrusv2

I had a feeling this would happen, what exactly do I need to do to enable this 
mailer within sendmail?

Thanks all.

David Gottschalk
UTS Email team
david.gottsch...@emory.edu


-Original Message-
From: info-cyrus-bounces+dgottsc=emory@lists.andrew.cmu.edu 
[mailto:info-cyrus-bounces+dgottsc=emory@lists.andrew.cmu.edu] On Behalf Of 
Garry
Sent: Wednesday, May 27, 2009 3:45 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: Re: Sieve: Vacation not working (solved)

Well, found another post on this ... seems to be that depending on the
way the MTA does the local delivery causes vacation (and only vacation)
to work or not...

Originally, I had this in my .mc file:

define(`confLOCAL_MAILER', `cyrus')dnl
ifdef(`CYRUS_MAILER_ARGS',,
 `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
dnl MAILER(`cyrus')dnl

After replacing this with:

define(`confLOCAL_MAILER',`cyrusv2')dnl
define(`CYRUSV2_MAILER_ARGS',`FILE /var/lib/imap/socket/lmtp')dnl
MAILER(cyrusv2)dnl

I finally got vacation replies from Cyrus ...

-garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Sieve: Vacation not working (solved)

2009-05-27 Thread Gottschalk, David
Good news!

I'm thinking that is the same issue I have.

I will be trying it out today off hours, and report what I find.

David Gottschalk
UTS Email team
david.gottsch...@emory.edu


-Original Message-
From: info-cyrus-bounces+dgottsc=emory@lists.andrew.cmu.edu 
[mailto:info-cyrus-bounces+dgottsc=emory@lists.andrew.cmu.edu] On Behalf Of 
Garry
Sent: Wednesday, May 27, 2009 3:45 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: Re: Sieve: Vacation not working (solved)

Well, found another post on this ... seems to be that depending on the
way the MTA does the local delivery causes vacation (and only vacation)
to work or not...

Originally, I had this in my .mc file:

define(`confLOCAL_MAILER', `cyrus')dnl
ifdef(`CYRUS_MAILER_ARGS',,
 `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
dnl MAILER(`cyrus')dnl

After replacing this with:

define(`confLOCAL_MAILER',`cyrusv2')dnl
define(`CYRUSV2_MAILER_ARGS',`FILE /var/lib/imap/socket/lmtp')dnl
MAILER(cyrusv2)dnl

I finally got vacation replies from Cyrus ...

-garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working (solved)

2009-05-27 Thread Garry
Well, found another post on this ... seems to be that depending on the
way the MTA does the local delivery causes vacation (and only vacation)
to work or not...

Originally, I had this in my .mc file:

define(`confLOCAL_MAILER', `cyrus')dnl
ifdef(`CYRUS_MAILER_ARGS',,
 `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
dnl MAILER(`cyrus')dnl

After replacing this with:

define(`confLOCAL_MAILER',`cyrusv2')dnl
define(`CYRUSV2_MAILER_ARGS',`FILE /var/lib/imap/socket/lmtp')dnl
MAILER(cyrusv2)dnl

I finally got vacation replies from Cyrus ...

-garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working

2009-05-27 Thread Andrew Morgan
On Wed, 27 May 2009, Garry wrote:

> Can someone please clarify what process' job it is to generate the mail
> by calling sendmail? Is it lmtpd which I assumed? I really need to stop
> wasting time on looking at the wrong places and got to move on to more
> important work ...

lmtpd processes sieve scripts as messages are given to it, including 
sending vacation notices and reject emails.

Andy

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working

2009-05-27 Thread Garry
Carsten Hoeger wrote:
> On Wed, May 27, Garry wrote:
>
>   
>>> Also, the logfile created by this line:
>>> [..]
>>> doesn't show up right away either ...
>>>   
>>>   
>> Actually, I just noticed that timsieved of course isn't even the process
>> responsible for doing any filtering, but only for doing the back-end
>> script stuff ... so I added the "-D" to the lmtpd line, which I _assume_
>> (please correct me if I'm wrong) is the process that actually should be
>> doing the sieve checking and processing ... anyway, there was no sign
>> that lmtpd attempted to do any sendmail interaction ...
>> 
>
> AFAIR the Mail headers must contain the addresses you specified in the
> vacation rules. Did you check that?
>   
Yes ...
> Also keep in mind, that vacation mail is not sent, when sender and recipient
> are the same.
>   
No, tried sending from a multitude of different places, like GMX and
GMail, my own servers, etc ...

Can someone please clarify what process' job it is to generate the mail
by calling sendmail? Is it lmtpd which I assumed? I really need to stop
wasting time on looking at the wrong places and got to move on to more
important work ...

Tnx, -garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working

2009-05-27 Thread Adam Tauno Williams
On Wed, 2009-05-27 at 16:35 +0200, Carsten Hoeger wrote:
> On Wed, May 27, Garry wrote:
> > > Also, the logfile created by this line:
> > > [..]
> > > doesn't show up right away either ...
> > Actually, I just noticed that timsieved of course isn't even the process
> > responsible for doing any filtering, but only for doing the back-end
> > script stuff ... so I added the "-D" to the lmtpd line, which I _assume_
> > (please correct me if I'm wrong) is the process that actually should be
> > doing the sieve checking and processing ... anyway, there was no sign
> > that lmtpd attempted to do any sendmail interaction ...
> AFAIR the Mail headers must contain the addresses you specified in the
> vacation rules. Did you check that?

His [custom] delivery mech is rewriting/inserting a Return-Path: to
*himself* for *every* message.   So when this message arrives in his
INBOX the Return-Path will not be the sender (me) or even the list, but
his address (the destination).  That will break just about everything.

> Also keep in mind, that vacation mail is not sent, when sender and recipient
> are the same.



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working

2009-05-27 Thread Carsten Hoeger
On Wed, May 27, Garry wrote:

> > Also, the logfile created by this line:
> > [..]
> > doesn't show up right away either ...
> >   
> Actually, I just noticed that timsieved of course isn't even the process
> responsible for doing any filtering, but only for doing the back-end
> script stuff ... so I added the "-D" to the lmtpd line, which I _assume_
> (please correct me if I'm wrong) is the process that actually should be
> doing the sieve checking and processing ... anyway, there was no sign
> that lmtpd attempted to do any sendmail interaction ...

AFAIR the Mail headers must contain the addresses you specified in the
vacation rules. Did you check that?

Also keep in mind, that vacation mail is not sent, when sender and recipient
are the same.

-- 
With best regards,

Carsten Hoeger


pgplHmVSCKyux.pgp
Description: PGP signature

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Sieve: Vacation not working

2009-05-27 Thread Garry

> Also, the logfile created by this line:
> [..]
> doesn't show up right away either ...
>   
Actually, I just noticed that timsieved of course isn't even the process
responsible for doing any filtering, but only for doing the back-end
script stuff ... so I added the "-D" to the lmtpd line, which I _assume_
(please correct me if I'm wrong) is the process that actually should be
doing the sieve checking and processing ... anyway, there was no sign
that lmtpd attempted to do any sendmail interaction ...

Help, anybody?

Tnx, -garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve: Vacation not working

2009-05-27 Thread Garry
Adam Tauno Williams wrote:
> On Tue, 2009-05-26 at 09:21 -0400, Gottschalk, David wrote:
>   
>> See, I'm using this entirely custom deliver script in .procmailrc, and
>> I think that is my problem. I think if Sieve doesn't get a proper from
>> address, it will not reply. The question is how do you know if this is
>> occurring?
>> 
>
> Sendmail has been able to perform LMTP delivery (no "deliver" required)
> for a long time.
>
>   
>> You might try different configuration options of that. I've seen searching 
>> the web that some people had vacation reply issues with different 
>> configurations of the Cyrus mailer(s).
>> 
>>> How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be 
>>> my issue, maybe yours too.
>>>   
>> I'm using the cyrus feature
>> define(`confLOCAL_MAILER', `cyrus')dnl
>> ifdef(`CYRUS_MAILER_ARGS',,
>> `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
>> in the mc file, and as the regular sorting seems to work (moving certain
>> mails to other folders e.g.), as well as storing incoming mail in the
>> appropriate inboxes, I assume the Cyrus interface as such should be
>> working fine, as well as the Sieve call ... what puzzles me is that I
>> don't even see Sieve attempt to deliever anything, at least not locally
>> - plus I can't seem to find any config file that would contain
>> definitions about what to do with mails generated by Sieve (like, e.g.,
>> what Mailserver to use)
>> 
>
> This is specified in imapd.conf via the "sendmail" directive.
>   
Yes, found that in the meantime ... anyway, still no success ...
according to the mail log, it's not being called, at least there are
still no messages from it ... I enabled the debugging_command, using
strace to get some infos on whether it is even trying to call sendmail
... from what I can tell, it doesn't even attempt to do anything ... is
the vacation line valid the way it is in the script?

Also, the logfile created by this line:

debug_command: /usr/bin/strace -tt -f -s256 -o /tmp/strace.cyrus.%s.%d
-p %2$d <&- 2>&1 &

doesn't show up right away either ...

Isn't there any way to make timsieved more verbose about what it's (not)
doing and why?

Tnx, -garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Sieve: Vacation not working

2009-05-26 Thread Adam Tauno Williams
On Tue, 2009-05-26 at 09:21 -0400, Gottschalk, David wrote:
> See, I'm using this entirely custom deliver script in .procmailrc, and
> I think that is my problem. I think if Sieve doesn't get a proper from
> address, it will not reply. The question is how do you know if this is
> occurring?

Sendmail has been able to perform LMTP delivery (no "deliver" required)
for a long time.

> You might try different configuration options of that. I've seen searching 
> the web that some people had vacation reply issues with different 
> configurations of the Cyrus mailer(s).
> > How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be 
> > my issue, maybe yours too.
> I'm using the cyrus feature
> define(`confLOCAL_MAILER', `cyrus')dnl
> ifdef(`CYRUS_MAILER_ARGS',,
> `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
> in the mc file, and as the regular sorting seems to work (moving certain
> mails to other folders e.g.), as well as storing incoming mail in the
> appropriate inboxes, I assume the Cyrus interface as such should be
> working fine, as well as the Sieve call ... what puzzles me is that I
> don't even see Sieve attempt to deliever anything, at least not locally
> - plus I can't seem to find any config file that would contain
> definitions about what to do with mails generated by Sieve (like, e.g.,
> what Mailserver to use)

This is specified in imapd.conf via the "sendmail" directive.


sendmail: /usr/sbin/sendmail
The pathname of the sendmail executable.  Sieve invokes sendmail  for
sending  rejections, redirects and vacation responses.
Note:  This Invoca RPM build uses /usr/sbin/sendmail by default instead
of /usr/lib/sendmail for sendmail.

sendsms: /usr/bin/sendsms
The pathname of the sendsms executable.  Sieve invokes sendsms for
sending  SMS  notifications.



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Sieve: Vacation not working

2009-05-26 Thread Gottschalk, David
See, I'm using this entirely custom deliver script in .procmailrc, and I think 
that is my problem. I think if Sieve doesn't get a proper from address, it will 
not reply. The question is how do you know if this is occurring?

You might try different configuration options of that. I've seen searching the 
web that some people had vacation reply issues with different configurations of 
the Cyrus mailer(s).

David Gottschalk
UTS Email team
david.gottsch...@emory.edu


-Original Message-
From: Garry [mailto:ga...@glendown.de]
Sent: Tuesday, May 26, 2009 9:14 AM
To: Gottschalk, David
Subject: Re: Sieve: Vacation not working

Gottschalk, David wrote:
> Check out my thread going on this.
>
> I'm having the same issue.
>
> How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be 
> my issue, maybe yours too.
>
I'm using the cyrus feature

define(`confLOCAL_MAILER', `cyrus')dnl
ifdef(`CYRUS_MAILER_ARGS',,
`define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')

in the mc file, and as the regular sorting seems to work (moving certain
mails to other folders e.g.), as well as storing incoming mail in the
appropriate inboxes, I assume the Cyrus interface as such should be
working fine, as well as the Sieve call ... what puzzles me is that I
don't even see Sieve attempt to deliever anything, at least not locally
- plus I can't seem to find any config file that would contain
definitions about what to do with mails generated by Sieve (like, e.g.,
what Mailserver to use)

-garry

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Sieve: Vacation not working

2009-05-26 Thread Gottschalk, David
Check out my thread going on this.

I'm having the same issue.

How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be my 
issue, maybe yours too.

David Gottschalk
UTS Email team
david.gottsch...@emory.edu


-Original Message-
From: info-cyrus-bounces+dgottsc=emory@lists.andrew.cmu.edu 
[mailto:info-cyrus-bounces+dgottsc=emory@lists.andrew.cmu.edu] On Behalf Of 
Garry
Sent: Monday, May 25, 2009 4:12 PM
To: info-cyrus@lists.andrew.cmu.edu
Subject: Sieve: Vacation not working

I have a SuSE Enterprise 10 system set up, which is running smoothly ...
I have Cyrus 2.2.12 on it, which too is working fine - IMAP, SASL-Auth,
the whole 9 yards ... even Sieve itself is fine, messages are moved to
the appropriate folders as directed in the Sieve config ...

Here's an excerpt from the Sieve script:

require [ "vacation" , "fileinto" ] ;

## Flag: |UniqueId:1|Rulename: SpamMsg
if header :contains "From" "gkg"
{
fileinto "INBOX.Spam" ;
}

## Flag: vacation|UniqueId:0|Rulename: Abwesenheitsbenachrichtigung
if true
{
vacation :days 7 :addresses [ "ad...@ox6.mydomain.de" ,
"ad...@mydomain.de" ] :subject "Ich bin nicht da ..." "blah" ;
}


The message is received, but according to /var/log/messages, nothing
happens apart from it being stored locally ...

I'm somewhat at a loss as to where else I can check for the reason of it
not working ... couldn't find anything on Google that would have been
helpful, either ... maybe somebody could point me in the right direction
... ?!

Tnx, -garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Sieve: Vacation not working

2009-05-25 Thread Garry
I have a SuSE Enterprise 10 system set up, which is running smoothly ...
I have Cyrus 2.2.12 on it, which too is working fine - IMAP, SASL-Auth,
the whole 9 yards ... even Sieve itself is fine, messages are moved to
the appropriate folders as directed in the Sieve config ...

Here's an excerpt from the Sieve script:

require [ "vacation" , "fileinto" ] ;

## Flag: |UniqueId:1|Rulename: SpamMsg
if header :contains "From" "gkg"
{
fileinto "INBOX.Spam" ;
}

## Flag: vacation|UniqueId:0|Rulename: Abwesenheitsbenachrichtigung
if true
{
vacation :days 7 :addresses [ "ad...@ox6.mydomain.de" ,
"ad...@mydomain.de" ] :subject "Ich bin nicht da ..." "blah" ;
}


The message is received, but according to /var/log/messages, nothing
happens apart from it being stored locally ...

I'm somewhat at a loss as to where else I can check for the reason of it
not working ... couldn't find anything on Google that would have been
helpful, either ... maybe somebody could point me in the right direction
... ?!

Tnx, -garry

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve vacation reposnse gives no response even after end of days specified

2008-11-25 Thread Marco Colombo
Wesley Craig wrote:
> On 24 Nov 2008, at 01:51, ram wrote:
>> Is there a patch that fixes this value to 1
> 
> Find one attached.  Is this in bugzilla?  I couldn't find it...  If
> someone puts it there and marks it as a "blocker", it will be fixed in
> the next release.
> 
> :wes

At that time I just reported the "bug" here. I wasn't even sure it was
a bug.

.TM.


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve vacation reposnse gives no response even after end of days specified

2008-11-24 Thread Wesley Craig

On 24 Nov 2008, at 01:51, ram wrote:

Is there a patch that fixes this value to 1


Find one attached.  Is this in bugzilla?  I couldn't find it...  If  
someone puts it there and marks it as a "blocker", it will be fixed  
in the next release.


:wes


sieve-min.diff
Description: Binary data

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: sieve vacation reposnse gives no response even after end of days specified

2008-11-23 Thread ram

On Wed, 2008-11-19 at 12:18 +0100, Marco Colombo wrote:
> ram wrote:
> > I have a default cyrus installation with cyrus-imapd-2.3 on centos 5 
> > People use sieve to set their vacation responses 
> > 
> > As per the configuration no response is sent for 1 day 
> > -
> > cat  /usr/sieve/i/it/default.script
> > 
> > require "vacation";
> > # Vacation
> > vacation :days 1 :addresses "[EMAIL PROTECTED]" "this is a vacation
> > response";
> > --
> > 
> > 
> > The first vacation response seems to go perfectly fine , but even after
> > 1 day the response is not sent again
> > 
> > What could be the issue ? how do I debug this ? 
> 
> http://tools.ietf.org/html/rfc5230#section-4.1
> 
>The minimum value used for this parameter is normally 1.  Sites MAY
>define a different minimum value as long as the minimum is greater
>than 0.
> 
> I think your server has the minimum = 3 days.
> 
> See also:
> http://lists.andrew.cmu.edu/pipermail/info-cyrus/2007-August/026550.html
> 


Is there a patch that fixes this value to 1 


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve vacation reposnse gives no response even after end of days specified

2008-11-19 Thread Marco Colombo
ram wrote:
> I have a default cyrus installation with cyrus-imapd-2.3 on centos 5 
> People use sieve to set their vacation responses 
> 
> As per the configuration no response is sent for 1 day 
> -
> cat  /usr/sieve/i/it/default.script
> 
> require "vacation";
> # Vacation
> vacation :days 1 :addresses "[EMAIL PROTECTED]" "this is a vacation
> response";
> --
> 
> 
> The first vacation response seems to go perfectly fine , but even after
> 1 day the response is not sent again
> 
> What could be the issue ? how do I debug this ? 

http://tools.ietf.org/html/rfc5230#section-4.1

   The minimum value used for this parameter is normally 1.  Sites MAY
   define a different minimum value as long as the minimum is greater
   than 0.

I think your server has the minimum = 3 days.

See also:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/2007-August/026550.html

.TM.

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


sieve vacation reposnse gives no response even after end of days specified

2008-11-16 Thread ram
I have a default cyrus installation with cyrus-imapd-2.3 on centos 5 
People use sieve to set their vacation responses 

As per the configuration no response is sent for 1 day 
-
cat  /usr/sieve/i/it/default.script

require "vacation";
# Vacation
vacation :days 1 :addresses "[EMAIL PROTECTED]" "this is a vacation
response";
--


The first vacation response seems to go perfectly fine , but even after
1 day the response is not sent again

What could be the issue ? how do I debug this ? 





Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


tell sieve vacation not to reply to return-path

2008-05-26 Thread christine kuhlmey
Hello to all,

I need to forward my emails from one server to another and on that way 
the Return-Path header is being modified to my own address on the 
forwarding host. This usually won't be a problem because the From-header 
remains unchanged. But at the final destination server (cyrus) I do 
email-filtering with sieve and after filtering I want to submit vacation 
messages to the original sender.

Unfortunately sieve-vacation sends it's replies to the address in the 
Return-Path header, which is my own address thus sending vacation 
replies to myself and not to the originator of that message.
Is there a way to tell sieve not to do that and to reply to the 
From-address instead?

Any help is greatly appreciated!
Thanks in advance -
Christine Kuhlmey




Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


sieve vacation

2008-02-28 Thread jakjr
Hi,

I made some tests with sieve vacation and it works great !

But the record (timestamp) wrote on deliver.db from expiration time seems
only accept the minimum of 3 days !

Is this a feature ??

I'm using cyrus-imapd version 2.2.13 on a debian etch.

Thanks.

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Sieve vacation function not working..

2007-09-28 Thread Mike Eggleston
On Mon, 17 Sep 2007, Mike Eggleston might have said:

> On Mon, 17 Sep 2007, Torsten Schlabach might have said:
> 
> > Hi Joseph,
> > 
> > it would indeed be helpful if you posted the relevant section of your 
> > sieve script. Nevertheless, two hints which might hopefully be useful:
> > 
> > 1. Try to find out if anything in the chain between Sieve and your MTA 
> > might be the issue. The easiest way to do that is to try some rejecting 
> > with message or some forwarding as this will require Sieve to generate a 
> > new message and send it. In case that works, your Cyrus-MTA-Integration 
> > is probably not the problem. If that does not work either, check your 
> > MTA's log files for potential problems.
> > 
> > 2. If you find out that it looks as if Sieve is not creating any 
> > vacation response message at all, do you have the :address parameter set 
> > up and set up correctly? This parameter is technically optional, but the 
> > default value when omitting that parameter is *not* a wildcard. In other 
> > words: A vacation setup without any :address parameter will never create 
> > a vacation response message at all. (I think this could become an FAQ.)
> 
> My apologies for a seeming hijack of this thread. I have the same issue also.
> 
> The vacation portion of my sieve script is:
> 
> # load the necessary components
> # fileinto is for filtering
> # vacation is ... well ... just that
> 
> require ["fileinto", "vacation", "imapflags"];
> 
> # save a copy of inbound messages
> setflag "\\Seen";
> fileinto "INBOX.backup";
> removeflag "\\Seen";
> 
> # main filtering rules
> if header :contains "Subject" "testing vacation" {
>   vacation :days 1 :subject "test vac" "I'm testing, ok?!";
>   setflag "\\Answered";
>   fileinto "INBOX.howard";
> } elsif address :contains ["to","from","cc","bcc"] ["@mac.com","[EMAIL 
> PROTECTED]"] {
> ...
> }
> 
> I am transitioning my users from pop3 to imap4/cyrus. Currently I have most 
> users
> on imap4 using a wierd mail route. The mail comes in, is sent to the pop3
> server, a crontab entry for each user pulls the mail with fetchmail, sends 
> each
> message to procmail, and procmail eventually uses deliver.
> 
> I'm testing eliminating procmail for the internal sieve scripting on my 
> account.
> I cannot eliminate fetchmail until all my users are migrated to imap4. This is
> just background data.
> 
> Currently my sieve works well for filing the various messages. As mentioned 
> above I
> cannot get the vacation portion to work. When a message arrives with a subject
> of 'testing vacation' the message is filed into the folder 'howard' but not 
> reply
> is received on the external, sending account. I have waited several days 
> between
> messages to get around the ':days 1' parameter in the script above.
> 
> I have local6 sent to a separate file, though I do not see any extra messages.
> I am using the current rpms on fedora core 5.
> 
> I know sieve is working because my messages do get filed according to the full
> sieve script.

As mentioned I'm in a transition mode from POP3 to IMAP4 for my users. For
this transition mode I have fetchmail pulling mail from my legacy POP3 server
to the new IMAP4 server running cyrus. I now have vacation working by changing
the command in the $HOME/.fetchmailrc from:

is "mikee" mda "/usr/lib/cyrus-imapd/deliver -m '' -- mikee"

to:

is "mikee" mda "/usr/lib/cyrus-imapd/deliver -r %F -- mikee"

and the sieve script to:

if header :contains "Subject" "testing vacation" {
  vacation :days 1
:addresses ["[EMAIL PROTECTED]", "[EMAIL PROTECTED]", "[EMAIL PROTECTED]", 
"[EMAIL PROTECTED]", "[EMAIL PROTECTED]"]
:subject "Automated Reply"
"I am currently out of the office and will respond to your message when I 
return.";
  setflag "\\Answered";
  fileinto "INBOX.while-on-vacation";
} elsif

Seems like the '-r' is critical for deliver and sieve to know where the
message has come from so sieve and vacation know where to send the reply.
Also, the receiver's email must be in the ':addresses "[EMAIL PROTECTED]'
parameter to vacation.

I place the message into the =INBOX.while-on-vacation folder so I know what
I need to deal with when I return from vacation instead of hunting various
messages in my normal folders.

Mike

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-26 Thread Marcelo Terres
Hello.

> I hope you made sure that the forwarding is by the means of Sieve, not
> in the MTA?

Yes, sieve is working in forward filter. I saw in the logs.

>
> I am not sure about the days: 0 parameter. I know the default is 7, but
> will 0 mean that a response is sent every time?


I think so. Anyway, I tried with days: 1 and I had the same problem.


>
> Did you grep the logfile of your MTA to make sure Sieve really doesn't
> attempt to send a message? The problem might as well be that a message
> is generated but not accepted by your MTA for whatever reason.

No, in this case nothing from sieve appears in the logs. In the
forward case, I can see sieve logs.


>
> AFAIK sieve calls sendmail, so depending on your MTA you need to make
> sure that sendmail is a proper alias to your actual MTA.

Yes, but if the problem is the MTA, the forward filter would not work
too, am I right ?


Regards,

>
> Regards,
> Torsten
>
> Marcelo Terres schrieb:
> > Here is the script:
> >
> > # Sieve Filter
> > # Generated by Ingo (http://www.horde.org/ingo/) (September 25, 2007, 4:38 
> > pm)
> >
> > require "vacation";
> >
> > # Férias
> > vacation :days 0 :addresses "[EMAIL PROTECTED]" :subject "Retorno
> > de mensagem" "Teste de mensagem de resposta";
> >
> > I just don't understand what is "require vacation". Maybe I need a
> > module or something ???
> >
> > Regards,
> >
> > On 9/26/07, Martin Schweizer <[EMAIL PROTECTED]> wrote:
> >
> >>Hello Marcelo
> >>
> >>Is the script activated? Is the synatax correct? Check with sieveshell.
> >>
> >>Regards,
> >>
> >>2007/9/25, Marcelo Terres <[EMAIL PROTECTED]>:
> >>
> >>>I'm having a problem with sieve vacation.
> >>>
> >>>I'm using cyrus 2.2.12 with postfix 2.2.10 and horde.
> >>>
> >>>My users create the sieve filters with Ingo (from Horde) and
> >>>everything is working, except vacation. The sieve script is correct,
> >>>but nothing happens when the message come to the user.
> >>>
> >>>I'm sure that sieve is working cause if the user add a forward filter,
> >>>it works fine.
> >>>
> >>>Anybody can give me some help in this question ?
> >>>
> >>>Thanks in advance,
> >>>
> >>>--
> >>>Marcelo H. Terres
> >>>[EMAIL PROTECTED]
> >>>
> >>>Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> >>>Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> >>>List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
> >>>
> >>
> >>
> >>--
> >>Martin Schweizer
> >>[EMAIL PROTECTED]
> >>Tel.: +41 32 512 48 54 (VoIP)
> >>Fax: +1 619 3300587
> >>
> >
> >
> >
>


-- 
Marcelo H. Terres
[EMAIL PROTECTED]

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-26 Thread Marcelo Terres
In this case, [EMAIL PROTECTED] is just an example, this is not
the real address.

On 9/26/07, Rudy Gevaert <[EMAIL PROTECTED]> wrote:
> Marcelo Terres wrote:
> > Yes, the directory is correct. If I put a forward filter there, the
> > message is forwarded correctly.
> >
> > The problem is specifically with vacation.
> >
> > This is the script:
> >
> > # Sieve Filter
> > # Generated by Ingo (http://www.horde.org/ingo/) (September 25, 2007, 4:38 
> > pm)
> >
> > require "vacation";
> >
> > # Férias
> > vacation :days 0 :addresses "[EMAIL PROTECTED]" :subject "Retorno
> > de mensagem" "Teste de mensagem de resposta";
> >
>
> are you trying it by sending from the [EMAIL PROTECTED] address?  If
> so, that will never work :). See the Sieve rfc, sieve doesn't send
> vacation messages to addresses it knows about.
>
>
> --
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Rudy Gevaert  [EMAIL PROTECTED]  tel:+32 9 264 4734
> Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
> Groep SystemenSystems group
> Universiteit Gent Ghent University
> Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>


-- 
Marcelo H. Terres
[EMAIL PROTECTED]

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-26 Thread Marcelo Terres
I think that addresses in this case is ':addresses
"[EMAIL PROTECTED]"'. I'm putting my address in this line.

On 9/26/07, Mike Eggleston <[EMAIL PROTECTED]> wrote:
> On Wed, 26 Sep 2007, Marcelo Terres might have said:
>
> > The script has an :addresses parameter not an :address. Is this a problem ?
>
> I've been trying to get vacation working also. Is the :addresses "[EMAIL 
> PROTECTED]"
> the address of the person we're looking to send a custom reply to or is this
> the address of the receiving person?
>
> If I'm [EMAIL PROTECTED] and I get a message from [EMAIL PROTECTED], is the 
> vacation
> line ':addresses "[EMAIL PROTECTED]"' or ':addresses "[EMAIL PROTECTED]"'? I 
> wrote it
> and it's confusing to me. What I'm trying to ask is should the :addresses line
> be my address because I'm receiving the message or should the :addresses line 
> be
> the address of someone I'm expecting to receive a message from?
>
> Mike
>


-- 
Marcelo H. Terres
[EMAIL PROTECTED]

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-26 Thread Michael Menge
Hi

- Quote ---
http://www.ietf.org/internet-drafts/draft-ietf-sieve-vacation-07.txt

4.5.  Address Parameter and Limiting Replies to Personal Messages

"Vacation" MUST NOT respond to a message unless the recipient user's
email address is in a "To", "Cc", "Bcc", "Resent-To", "Resent-Cc", or
"Resent-Bcc" line of the original message.  An email address is
considered to belong to the recipient if it is one of:

1.  An email address known by the implementation to be associated
with the recipient,

2.  the final envelope recipient address if it's available to the
implementation, or

3.  an address specified by the script writer via the ":addresses"
argument described in the next paragraph.

Users can supply additional mail addresses that are theirs with the
":addresses" argument, which takes a string-list listing additional
addresses that a user might have.  These addresses are considered to
belong to the recipient user in addition to the addresses known to
the implementation.

---

As fas as i know cyrus does not know any other email address from the user
other than the address given by :addresses


Quoting Mike Eggleston <[EMAIL PROTECTED]>:

> On Wed, 26 Sep 2007, Marcelo Terres might have said:
>
>> The script has an :addresses parameter not an :address. Is this a problem ?
>
> I've been trying to get vacation working also. Is the :addresses   
> "[EMAIL PROTECTED]"
> the address of the person we're looking to send a custom reply to or is this
> the address of the receiving person?
>
> If I'm [EMAIL PROTECTED] and I get a message from [EMAIL PROTECTED], is  
>  the vacation
> line ':addresses "[EMAIL PROTECTED]"' or ':addresses   
> "[EMAIL PROTECTED]"'? I wrote it
> and it's confusing to me. What I'm trying to ask is should the   
> :addresses line
> be my address because I'm receiving the message or should the   
> :addresses line be
> the address of someone I'm expecting to receive a message from?
>
> Mike
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>




M.Menge Tel.: (49) 7071/29-70316
Universitaet Tuebingen  Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung  mail:  
[EMAIL PROTECTED]
Waechterstrasse 76
72074 Tuebingen


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-26 Thread Torsten Schlabach
 > I just don't understand what is "require vacation".

It's a kind of declaration. Your script "announces" it will need the 
vacation module. If it would not be there, imapd would probably 
complain. But it's usually built in.

 > I'm sure that sieve is working cause if the user add a forward filter,
 > it works fine.

I hope you made sure that the forwarding is by the means of Sieve, not 
in the MTA?

I am not sure about the days: 0 parameter. I know the default is 7, but 
will 0 mean that a response is sent every time?

Did you grep the logfile of your MTA to make sure Sieve really doesn't 
attempt to send a message? The problem might as well be that a message 
is generated but not accepted by your MTA for whatever reason.

AFAIK sieve calls sendmail, so depending on your MTA you need to make 
sure that sendmail is a proper alias to your actual MTA.

Regards,
Torsten

Marcelo Terres schrieb:
> Here is the script:
> 
> # Sieve Filter
> # Generated by Ingo (http://www.horde.org/ingo/) (September 25, 2007, 4:38 pm)
> 
> require "vacation";
> 
> # Férias
> vacation :days 0 :addresses "[EMAIL PROTECTED]" :subject "Retorno
> de mensagem" "Teste de mensagem de resposta";
> 
> I just don't understand what is "require vacation". Maybe I need a
> module or something ???
> 
> Regards,
> 
> On 9/26/07, Martin Schweizer <[EMAIL PROTECTED]> wrote:
> 
>>Hello Marcelo
>>
>>Is the script activated? Is the synatax correct? Check with sieveshell.
>>
>>Regards,
>>
>>2007/9/25, Marcelo Terres <[EMAIL PROTECTED]>:
>>
>>>I'm having a problem with sieve vacation.
>>>
>>>I'm using cyrus 2.2.12 with postfix 2.2.10 and horde.
>>>
>>>My users create the sieve filters with Ingo (from Horde) and
>>>everything is working, except vacation. The sieve script is correct,
>>>but nothing happens when the message come to the user.
>>>
>>>I'm sure that sieve is working cause if the user add a forward filter,
>>>it works fine.
>>>
>>>Anybody can give me some help in this question ?
>>>
>>>Thanks in advance,
>>>
>>>--
>>>Marcelo H. Terres
>>>[EMAIL PROTECTED]
>>>
>>>Cyrus Home Page: http://cyrusimap.web.cmu.edu/
>>>Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
>>>List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>>>
>>
>>
>>--
>>Martin Schweizer
>>[EMAIL PROTECTED]
>>Tel.: +41 32 512 48 54 (VoIP)
>>Fax: +1 619 3300587
>>
> 
> 
> 

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-26 Thread Marcelo Terres
The script has an :addresses parameter not an :address. Is this a problem ?

On 9/26/07, Torsten Schlabach <[EMAIL PROTECTED]> wrote:
> Does the script have an :address parameter? If not, it will never work!
> Search the list achive; this has been the problem with 3/4 of all cases.
> Regards,
> Torsten
>
> Martin Schweizer schrieb:
> > Hello Marcelo
> >
> > Is the script activated? Is the synatax correct? Check with sieveshell.
> >
> > Regards,
> >
> > 2007/9/25, Marcelo Terres <[EMAIL PROTECTED]>:
> >
> >>I'm having a problem with sieve vacation.
> >>
> >>I'm using cyrus 2.2.12 with postfix 2.2.10 and horde.
> >>
> >>My users create the sieve filters with Ingo (from Horde) and
> >>everything is working, except vacation. The sieve script is correct,
> >>but nothing happens when the message come to the user.
> >>
> >>I'm sure that sieve is working cause if the user add a forward filter,
> >>it works fine.
> >>
> >>Anybody can give me some help in this question ?
> >>
> >>Thanks in advance,
> >>
> >>--
> >>Marcelo H. Terres
> >>[EMAIL PROTECTED]
> >>
> >>Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> >>Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> >>List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
> >>
> >
> >
> >
>


-- 
Marcelo H. Terres
[EMAIL PROTECTED]

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-26 Thread Mike Eggleston
On Wed, 26 Sep 2007, Marcelo Terres might have said:

> The script has an :addresses parameter not an :address. Is this a problem ?

I've been trying to get vacation working also. Is the :addresses "[EMAIL 
PROTECTED]"
the address of the person we're looking to send a custom reply to or is this
the address of the receiving person?

If I'm [EMAIL PROTECTED] and I get a message from [EMAIL PROTECTED], is the 
vacation
line ':addresses "[EMAIL PROTECTED]"' or ':addresses "[EMAIL PROTECTED]"'? I 
wrote it
and it's confusing to me. What I'm trying to ask is should the :addresses line
be my address because I'm receiving the message or should the :addresses line be
the address of someone I'm expecting to receive a message from?

Mike

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-26 Thread Marcelo Terres
Here is the script:

# Sieve Filter
# Generated by Ingo (http://www.horde.org/ingo/) (September 25, 2007, 4:38 pm)

require "vacation";

# Férias
vacation :days 0 :addresses "[EMAIL PROTECTED]" :subject "Retorno
de mensagem" "Teste de mensagem de resposta";

I just don't understand what is "require vacation". Maybe I need a
module or something ???

Regards,

On 9/26/07, Martin Schweizer <[EMAIL PROTECTED]> wrote:
> Hello Marcelo
>
> Is the script activated? Is the synatax correct? Check with sieveshell.
>
> Regards,
>
> 2007/9/25, Marcelo Terres <[EMAIL PROTECTED]>:
> > I'm having a problem with sieve vacation.
> >
> > I'm using cyrus 2.2.12 with postfix 2.2.10 and horde.
> >
> > My users create the sieve filters with Ingo (from Horde) and
> > everything is working, except vacation. The sieve script is correct,
> > but nothing happens when the message come to the user.
> >
> > I'm sure that sieve is working cause if the user add a forward filter,
> > it works fine.
> >
> > Anybody can give me some help in this question ?
> >
> > Thanks in advance,
> >
> > --
> > Marcelo H. Terres
> > [EMAIL PROTECTED]
> > 
> > Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
> >
>
>
> --
> Martin Schweizer
> [EMAIL PROTECTED]
> Tel.: +41 32 512 48 54 (VoIP)
> Fax: +1 619 3300587
>


-- 
Marcelo H. Terres
[EMAIL PROTECTED]

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-26 Thread Rudy Gevaert
Marcelo Terres wrote:
> Yes, the directory is correct. If I put a forward filter there, the
> message is forwarded correctly.
> 
> The problem is specifically with vacation.
> 
> This is the script:
> 
> # Sieve Filter
> # Generated by Ingo (http://www.horde.org/ingo/) (September 25, 2007, 4:38 pm)
> 
> require "vacation";
> 
> # Férias
> vacation :days 0 :addresses "[EMAIL PROTECTED]" :subject "Retorno
> de mensagem" "Teste de mensagem de resposta";
> 

are you trying it by sending from the [EMAIL PROTECTED] address?  If 
so, that will never work :). See the Sieve rfc, sieve doesn't send 
vacation messages to addresses it knows about.


-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert  [EMAIL PROTECTED]  tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep SystemenSystems group
Universiteit Gent Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-26 Thread Marcelo Terres
Yes, the directory is correct. If I put a forward filter there, the
message is forwarded correctly.

The problem is specifically with vacation.

This is the script:

# Sieve Filter
# Generated by Ingo (http://www.horde.org/ingo/) (September 25, 2007, 4:38 pm)

require "vacation";

# Férias
vacation :days 0 :addresses "[EMAIL PROTECTED]" :subject "Retorno
de mensagem" "Teste de mensagem de resposta";

Regards,


On 9/26/07, Rudy Gevaert <[EMAIL PROTECTED]> wrote:
> Marcelo Terres wrote:
> > I'm having a problem with sieve vacation.
> >
> > I'm using cyrus 2.2.12 with postfix 2.2.10 and horde.
> >
> > My users create the sieve filters with Ingo (from Horde) and
> > everything is working, except vacation. The sieve script is correct,
> > but nothing happens when the message come to the user.
>
> Have you checked the server to see if the script is on the sieve dir of
> the user.  Even if Horde says it's activated it could be that it is't
> activated.
>
> Rudy
>
>
> --
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Rudy Gevaert  [EMAIL PROTECTED]  tel:+32 9 264 4734
> Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
> Groep SystemenSystems group
> Universiteit Gent Ghent University
> Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>


-- 
Marcelo H. Terres
[EMAIL PROTECTED]

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-26 Thread Torsten Schlabach
Does the script have an :address parameter? If not, it will never work! 
Search the list achive; this has been the problem with 3/4 of all cases.
Regards,
Torsten

Martin Schweizer schrieb:
> Hello Marcelo
> 
> Is the script activated? Is the synatax correct? Check with sieveshell.
> 
> Regards,
> 
> 2007/9/25, Marcelo Terres <[EMAIL PROTECTED]>:
> 
>>I'm having a problem with sieve vacation.
>>
>>I'm using cyrus 2.2.12 with postfix 2.2.10 and horde.
>>
>>My users create the sieve filters with Ingo (from Horde) and
>>everything is working, except vacation. The sieve script is correct,
>>but nothing happens when the message come to the user.
>>
>>I'm sure that sieve is working cause if the user add a forward filter,
>>it works fine.
>>
>>Anybody can give me some help in this question ?
>>
>>Thanks in advance,
>>
>>--
>>Marcelo H. Terres
>>[EMAIL PROTECTED]
>>
>>Cyrus Home Page: http://cyrusimap.web.cmu.edu/
>>Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
>>List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>>
> 
> 
> 

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-25 Thread Rudy Gevaert
Marcelo Terres wrote:
> I'm having a problem with sieve vacation.
> 
> I'm using cyrus 2.2.12 with postfix 2.2.10 and horde.
> 
> My users create the sieve filters with Ingo (from Horde) and
> everything is working, except vacation. The sieve script is correct,
> but nothing happens when the message come to the user.

Have you checked the server to see if the script is on the sieve dir of 
the user.  Even if Horde says it's activated it could be that it is't 
activated.

Rudy


-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert  [EMAIL PROTECTED]  tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep SystemenSystems group
Universiteit Gent Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation problem

2007-09-25 Thread Martin Schweizer
Hello Marcelo

Is the script activated? Is the synatax correct? Check with sieveshell.

Regards,

2007/9/25, Marcelo Terres <[EMAIL PROTECTED]>:
> I'm having a problem with sieve vacation.
>
> I'm using cyrus 2.2.12 with postfix 2.2.10 and horde.
>
> My users create the sieve filters with Ingo (from Horde) and
> everything is working, except vacation. The sieve script is correct,
> but nothing happens when the message come to the user.
>
> I'm sure that sieve is working cause if the user add a forward filter,
> it works fine.
>
> Anybody can give me some help in this question ?
>
> Thanks in advance,
>
> --
> Marcelo H. Terres
> [EMAIL PROTECTED]
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>


-- 
Martin Schweizer
[EMAIL PROTECTED]
Tel.: +41 32 512 48 54 (VoIP)
Fax: +1 619 3300587

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Sieve vacation problem

2007-09-25 Thread Marcelo Terres
I'm having a problem with sieve vacation.

I'm using cyrus 2.2.12 with postfix 2.2.10 and horde.

My users create the sieve filters with Ingo (from Horde) and
everything is working, except vacation. The sieve script is correct,
but nothing happens when the message come to the user.

I'm sure that sieve is working cause if the user add a forward filter,
it works fine.

Anybody can give me some help in this question ?

Thanks in advance,

-- 
Marcelo H. Terres
[EMAIL PROTECTED]

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation function not working..

2007-09-17 Thread Mike Eggleston
On Mon, 17 Sep 2007, Torsten Schlabach might have said:

> > What value should I use to wild-card to every address?
> 
> No sure out of the top of my head ... AFAIK wildcards are an extra 
> module in Sieve, but not sure. If in doubt, try some RTFM. Or try with 
> one address to start with, so see some success in the first place. It 
> might be just *. You might even be able to do things such as 
> '[EMAIL PROTECTED]'.
> 
> Be a bit careful when it comes to wildcards. Vacation responses are a 
> bit more complex than they look like, i.e.:
> 
> - You never ever want to send responses to mails where you have been on 
> bcc. (Unless you want to make sure spammers know your address is valid.)
> - You might not want to send responses to mails where you have been on cc.
> - You don't want to send responses to mailing lists. (I think there's 
> some built-in functionality to prevent this.)
> 
> Nevertheless, I sometimes wish I could see (after my return) who got a 
> vacation response from me. Is there anything preventing me of having 
> Sieve store a copy of the outbound message into my Sent folder? (Just 
> thinking loud.)
> 
> Regards,
> Torsten
> 
> 
> Mike Eggleston schrieb:
> >On Mon, 17 Sep 2007, Torsten Schlabach might have said:
> >
> >
> >>Mike!
> >>
> >>I cannot see an :address parameter in your sieve script. Without that, 
> >>you will never see any vacation response being generated! (Refer to 2. 
> >>in my post.)
> >
> >
> >Duh, I expected the problem to be something simple, but I couldn't see
> >the answer. What value should I use to wild-card to every address?
> >
> >Mike

I have the same desire to see what items vacation responded to, the filing
of a message into the folder 'howard' is working just fine.

Mike

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation function not working..

2007-09-17 Thread Torsten Schlabach
 > What value should I use to wild-card to every address?

No sure out of the top of my head ... AFAIK wildcards are an extra 
module in Sieve, but not sure. If in doubt, try some RTFM. Or try with 
one address to start with, so see some success in the first place. It 
might be just *. You might even be able to do things such as 
'[EMAIL PROTECTED]'.

Be a bit careful when it comes to wildcards. Vacation responses are a 
bit more complex than they look like, i.e.:

- You never ever want to send responses to mails where you have been on 
bcc. (Unless you want to make sure spammers know your address is valid.)
- You might not want to send responses to mails where you have been on cc.
- You don't want to send responses to mailing lists. (I think there's 
some built-in functionality to prevent this.)

Nevertheless, I sometimes wish I could see (after my return) who got a 
vacation response from me. Is there anything preventing me of having 
Sieve store a copy of the outbound message into my Sent folder? (Just 
thinking loud.)

Regards,
Torsten


Mike Eggleston schrieb:
> On Mon, 17 Sep 2007, Torsten Schlabach might have said:
> 
> 
>>Mike!
>>
>>I cannot see an :address parameter in your sieve script. Without that, 
>>you will never see any vacation response being generated! (Refer to 2. 
>>in my post.)
> 
> 
> Duh, I expected the problem to be something simple, but I couldn't see
> the answer. What value should I use to wild-card to every address?
> 
> Mike

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation function not working..

2007-09-17 Thread Mike Eggleston
On Mon, 17 Sep 2007, Torsten Schlabach might have said:

> Mike!
> 
> I cannot see an :address parameter in your sieve script. Without that, 
> you will never see any vacation response being generated! (Refer to 2. 
> in my post.)

Duh, I expected the problem to be something simple, but I couldn't see
the answer. What value should I use to wild-card to every address?

Mike

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation function not working..

2007-09-17 Thread Torsten Schlabach
Mike!

I cannot see an :address parameter in your sieve script. Without that, 
you will never see any vacation response being generated! (Refer to 2. 
in my post.)

Regards,
Torsten

Mike Eggleston schrieb:
> On Mon, 17 Sep 2007, Torsten Schlabach might have said:
> 
> 
>>Hi Joseph,
>>
>>it would indeed be helpful if you posted the relevant section of your 
>>sieve script. Nevertheless, two hints which might hopefully be useful:
>>
>>1. Try to find out if anything in the chain between Sieve and your MTA 
>>might be the issue. The easiest way to do that is to try some rejecting 
>>with message or some forwarding as this will require Sieve to generate a 
>>new message and send it. In case that works, your Cyrus-MTA-Integration 
>>is probably not the problem. If that does not work either, check your 
>>MTA's log files for potential problems.
>>
>>2. If you find out that it looks as if Sieve is not creating any 
>>vacation response message at all, do you have the :address parameter set 
>>up and set up correctly? This parameter is technically optional, but the 
>>default value when omitting that parameter is *not* a wildcard. In other 
>>words: A vacation setup without any :address parameter will never create 
>>a vacation response message at all. (I think this could become an FAQ.)
> 
> 
> My apologies for a seeming hijack of this thread. I have the same issue also.
> 
> The vacation portion of my sieve script is:
> 
> # load the necessary components
> # fileinto is for filtering
> # vacation is ... well ... just that
> 
> require ["fileinto", "vacation", "imapflags"];
> 
> # save a copy of inbound messages
> setflag "\\Seen";
> fileinto "INBOX.backup";
> removeflag "\\Seen";
> 
> # main filtering rules
> if header :contains "Subject" "testing vacation" {
>   vacation :days 1 :subject "test vac" "I'm testing, ok?!";
>   setflag "\\Answered";
>   fileinto "INBOX.howard";
> } elsif address :contains ["to","from","cc","bcc"] ["@mac.com","[EMAIL 
> PROTECTED]"] {
> ...
> }
> 
> I am transitioning my users from pop3 to imap4/cyrus. Currently I have most 
> users
> on imap4 using a wierd mail route. The mail comes in, is sent to the pop3
> server, a crontab entry for each user pulls the mail with fetchmail, sends 
> each
> message to procmail, and procmail eventually uses deliver.
> 
> I'm testing eliminating procmail for the internal sieve scripting on my 
> account.
> I cannot eliminate fetchmail until all my users are migrated to imap4. This is
> just background data.
> 
> Currently my sieve works well for filing the various messages. As mentioned 
> above I
> cannot get the vacation portion to work. When a message arrives with a subject
> of 'testing vacation' the message is filed into the folder 'howard' but not 
> reply
> is received on the external, sending account. I have waited several days 
> between
> messages to get around the ':days 1' parameter in the script above.
> 
> I have local6 sent to a separate file, though I do not see any extra messages.
> I am using the current rpms on fedora core 5.
> 
> I know sieve is working because my messages do get filed according to the full
> sieve script.
> 
> Mike
> 
> - rpms
> [EMAIL PROTECTED] ~]$ cat /etc/redhat-release 
> Fedora Core release 5 (Bordeaux)
> [EMAIL PROTECTED] ~]$ rpm -qa | grep cyrus
> cyrus-imapd-devel-2.3.1-2.8.fc5
> cyrus-sasl-lib-2.1.21-10
> cyrus-sasl-2.1.21-10
> cyrus-imapd-utils-2.3.1-2.8.fc5
> cyrus-sasl-ldap-2.1.21-10
> cyrus-imapd-2.3.1-2.8.fc5
> cyrus-sasl-devel-2.1.21-10
> - rpms
> - /etc/imapd.conf
> admins: cyrus
> allowanonymouslogin: no
> allowplaintext: yes
> autocreatequota: -1
> autocreateinboxfolders: Sent | Drafts | Trash | Junk | spam | backup
> configdirectory: /var/lib/imap
> drachost: localhost
> dracinterval: 0
> hashimapspool: true
> partition-default: /var/spool/imap
> poptimeout: 10
> postmaster: postmaster
> quotawarn: 90
> reject8bit: no
> sasl_mech_list: PLAIN
> sasl_pwcheck_method: saslauthd
> sendmail: /usr/lib/sendmail
> servername: servername
> sieveusehomedir: 0
> sievedir: /var/lib/imap/sieve
> sieve_maxscripts: 5
> sieve_maxscriptsize: 32
> timeout: 1440
> tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
> tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
> tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
> #unixhierarchysep: yes
> - /etc/imapd.conf
> - /etc/cyrus.conf
> # standard standalone server implementation
> 
> START {
>   # do not delete this entry!
>   recover   cmd="ctl_cyrusdb -r"
> 
>   # this is only necessary if using idled for IMAP IDLE
>   idled cmd="idled"
> }
> 
> # UNIX sockets start with a slash and are put into /var/lib/imap/sockets
> SERVICES {
>   # add or remove based on preferences
>   imap  cmd="imapd" listen="imap" prefork=5
>   imaps cmd="imapd -s" listen="imap

Re: Sieve vacation function not working..

2007-09-17 Thread Torsten Schlabach
Hi Joseph,

it would indeed be helpful if you posted the relevant section of your 
sieve script. Nevertheless, two hints which might hopefully be useful:

1. Try to find out if anything in the chain between Sieve and your MTA 
might be the issue. The easiest way to do that is to try some rejecting 
with message or some forwarding as this will require Sieve to generate a 
new message and send it. In case that works, your Cyrus-MTA-Integration 
is probably not the problem. If that does not work either, check your 
MTA's log files for potential problems.

2. If you find out that it looks as if Sieve is not creating any 
vacation response message at all, do you have the :address parameter set 
up and set up correctly? This parameter is technically optional, but the 
default value when omitting that parameter is *not* a wildcard. In other 
words: A vacation setup without any :address parameter will never create 
a vacation response message at all. (I think this could become an FAQ.)

Regards,
Torsten


Joseph Silverman schrieb:
> ALL other sieve functions work as described.  Vacation simply doesn't  
> work - mail is delivered, but no response is sent out.  This is true  
> in multiple versions of cyrus:
> 
> * OK HOST Cyrus IMAP4 v2.2.13-Mandriva-RPM-2.2.13-4mdv2007.1 server  
> ready
> * OK HOST Cyrus IMAP4 v2.2.12-Mandriva-RPM-2.2.12-15mdk server ready
> 
> The one "caveat" is that we are using sendmail as our MTA.  I have  
> tested many sieve functions, they all seem to work except vacation.   
> And, yes, I always use a different from address to avoid the send- 
> once-every-n-days function.
> 
> Is there something I am missing?  Obviously vacation works for some  
> folks out there.  But just as obviously, from googling for failures,  
> there are a substantial number of folks who can't or couldn't at the  
> time the messages were posted, get it to work.
> 
> Thank you for your time! - Yossie
> 
> Here are a few googled links reporting issues with sieve/vacation in  
> cyrus:
> 
> http://archives.devshed.com/forums/networking-100/cyrus-sieve-with- 
> vacation-does-not-go-1673174.html
> http://www.usenet.com/newsgroups/comp.mail.imap/msg00608.html
> http://www.webservertalk.com/archive202-2006-6-1548266.html
> http://www.irbs.net/internet/info-cyrus/0412/0031.html
> http://forums.fedoraforum.org/archive/index.php/t-20225.html
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation function not working..

2007-09-17 Thread Mike Eggleston
On Mon, 17 Sep 2007, Torsten Schlabach might have said:

> Hi Joseph,
> 
> it would indeed be helpful if you posted the relevant section of your 
> sieve script. Nevertheless, two hints which might hopefully be useful:
> 
> 1. Try to find out if anything in the chain between Sieve and your MTA 
> might be the issue. The easiest way to do that is to try some rejecting 
> with message or some forwarding as this will require Sieve to generate a 
> new message and send it. In case that works, your Cyrus-MTA-Integration 
> is probably not the problem. If that does not work either, check your 
> MTA's log files for potential problems.
> 
> 2. If you find out that it looks as if Sieve is not creating any 
> vacation response message at all, do you have the :address parameter set 
> up and set up correctly? This parameter is technically optional, but the 
> default value when omitting that parameter is *not* a wildcard. In other 
> words: A vacation setup without any :address parameter will never create 
> a vacation response message at all. (I think this could become an FAQ.)

My apologies for a seeming hijack of this thread. I have the same issue also.

The vacation portion of my sieve script is:

# load the necessary components
# fileinto is for filtering
# vacation is ... well ... just that

require ["fileinto", "vacation", "imapflags"];

# save a copy of inbound messages
setflag "\\Seen";
fileinto "INBOX.backup";
removeflag "\\Seen";

# main filtering rules
if header :contains "Subject" "testing vacation" {
vacation :days 1 :subject "test vac" "I'm testing, ok?!";
setflag "\\Answered";
fileinto "INBOX.howard";
} elsif address :contains ["to","from","cc","bcc"] ["@mac.com","[EMAIL 
PROTECTED]"] {
...
}

I am transitioning my users from pop3 to imap4/cyrus. Currently I have most 
users
on imap4 using a wierd mail route. The mail comes in, is sent to the pop3
server, a crontab entry for each user pulls the mail with fetchmail, sends each
message to procmail, and procmail eventually uses deliver.

I'm testing eliminating procmail for the internal sieve scripting on my account.
I cannot eliminate fetchmail until all my users are migrated to imap4. This is
just background data.

Currently my sieve works well for filing the various messages. As mentioned 
above I
cannot get the vacation portion to work. When a message arrives with a subject
of 'testing vacation' the message is filed into the folder 'howard' but not 
reply
is received on the external, sending account. I have waited several days between
messages to get around the ':days 1' parameter in the script above.

I have local6 sent to a separate file, though I do not see any extra messages.
I am using the current rpms on fedora core 5.

I know sieve is working because my messages do get filed according to the full
sieve script.

Mike

- rpms
[EMAIL PROTECTED] ~]$ cat /etc/redhat-release 
Fedora Core release 5 (Bordeaux)
[EMAIL PROTECTED] ~]$ rpm -qa | grep cyrus
cyrus-imapd-devel-2.3.1-2.8.fc5
cyrus-sasl-lib-2.1.21-10
cyrus-sasl-2.1.21-10
cyrus-imapd-utils-2.3.1-2.8.fc5
cyrus-sasl-ldap-2.1.21-10
cyrus-imapd-2.3.1-2.8.fc5
cyrus-sasl-devel-2.1.21-10
- rpms
- /etc/imapd.conf
admins: cyrus
allowanonymouslogin: no
allowplaintext: yes
autocreatequota: -1
autocreateinboxfolders: Sent | Drafts | Trash | Junk | spam | backup
configdirectory: /var/lib/imap
drachost: localhost
dracinterval: 0
hashimapspool: true
partition-default: /var/spool/imap
poptimeout: 10
postmaster: postmaster
quotawarn: 90
reject8bit: no
sasl_mech_list: PLAIN
sasl_pwcheck_method: saslauthd
sendmail: /usr/lib/sendmail
servername: servername
sieveusehomedir: 0
sievedir: /var/lib/imap/sieve
sieve_maxscripts: 5
sieve_maxscriptsize: 32
timeout: 1440
tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
#unixhierarchysep: yes
- /etc/imapd.conf
- /etc/cyrus.conf
# standard standalone server implementation

START {
  # do not delete this entry!
  recover   cmd="ctl_cyrusdb -r"

  # this is only necessary if using idled for IMAP IDLE
  idled cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
  # add or remove based on preferences
  imap  cmd="imapd" listen="imap" prefork=5
  imaps cmd="imapd -s" listen="imaps" prefork=1
# pop3  cmd="pop3d" listen="pop3" prefork=3
# pop3s cmd="pop3d -s" listen="pop3s" prefork=1
  sieve cmd="timsieved" listen="sieve" prefork=1

  # these are only necessary if receiving/exporting usenet via NNTP
#  nntp cmd="nntpd" listen="nntp" prefork=3
#  nntpscmd="nntpd -s" listen="nntps" prefork=1

  # at least one LMTP is required for delivery
#  lmtp cmd="lmtpd"

Re: Sieve vacation function not working..

2007-09-14 Thread Andreas Winkelmann
On Friday 14 September 2007 20:51, Joseph Silverman wrote:

> ALL other sieve functions work as described.  Vacation simply doesn't
> work - mail is delivered, but no response is sent out.  This is true
> in multiple versions of cyrus:
>
> * OK HOST Cyrus IMAP4 v2.2.13-Mandriva-RPM-2.2.13-4mdv2007.1 server
> ready
> * OK HOST Cyrus IMAP4 v2.2.12-Mandriva-RPM-2.2.12-15mdk server ready
>
> The one "caveat" is that we are using sendmail as our MTA.  I have
> tested many sieve functions, they all seem to work except vacation.
> And, yes, I always use a different from address to avoid the send-
> once-every-n-days function.
>
> Is there something I am missing?  Obviously vacation works for some
> folks out there.  But just as obviously, from googling for failures,
> there are a substantial number of folks who can't or couldn't at the
> time the messages were posted, get it to work.

Show your config (imapd.conf) and the (Part of the) Sieve-Script. Maybe even 
too, the way you deliver Mails to Cyrus.

> Thank you for your time! - Yossie
>
> Here are a few googled links reporting issues with sieve/vacation in
> cyrus:
>
> http://archives.devshed.com/forums/networking-100/cyrus-sieve-with-
> vacation-does-not-go-1673174.html
> http://www.usenet.com/newsgroups/comp.mail.imap/msg00608.html
> http://www.webservertalk.com/archive202-2006-6-1548266.html
> http://www.irbs.net/internet/info-cyrus/0412/0031.html
> http://forums.fedoraforum.org/archive/index.php/t-20225.html

-- 
Andreas

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Sieve vacation function not working..

2007-09-14 Thread Joseph Silverman
ALL other sieve functions work as described.  Vacation simply doesn't  
work - mail is delivered, but no response is sent out.  This is true  
in multiple versions of cyrus:

* OK HOST Cyrus IMAP4 v2.2.13-Mandriva-RPM-2.2.13-4mdv2007.1 server  
ready
* OK HOST Cyrus IMAP4 v2.2.12-Mandriva-RPM-2.2.12-15mdk server ready

The one "caveat" is that we are using sendmail as our MTA.  I have  
tested many sieve functions, they all seem to work except vacation.   
And, yes, I always use a different from address to avoid the send- 
once-every-n-days function.

Is there something I am missing?  Obviously vacation works for some  
folks out there.  But just as obviously, from googling for failures,  
there are a substantial number of folks who can't or couldn't at the  
time the messages were posted, get it to work.

Thank you for your time! - Yossie

Here are a few googled links reporting issues with sieve/vacation in  
cyrus:

http://archives.devshed.com/forums/networking-100/cyrus-sieve-with- 
vacation-does-not-go-1673174.html
http://www.usenet.com/newsgroups/comp.mail.imap/msg00608.html
http://www.webservertalk.com/archive202-2006-6-1548266.html
http://www.irbs.net/internet/info-cyrus/0412/0031.html
http://forums.fedoraforum.org/archive/index.php/t-20225.html

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Spam and sieve vacation

2007-08-28 Thread Tomas Lindroos DC


On Mon, 27 Aug 2007, Janne Peltonen wrote:

5/week? Whee. We might achieve something remotely approaching that with 
personalized bayesian filtering (a multi-discipline, internationaly 
connected university receives quite a lot of ham that looks very much 
like spam, so we are a bit paranoid about false positives).


Due to spam levels we have been disallowing "vacation" the last 4-5 years. 
This summer we made it possible for our users to enable an autoresponder. 
We use greylisting and spamassassin with bayesian filtering, and we are 
quite low on spam ending up in users inboxes, and also on false positives.


We don't provide vacation via sieve though, we considered it not being the 
IMAP server that should send the answers. Instead we use a home-grown 
python script on a smtp server.


Since may 73 people have actually used this service. During the last 12 
weeks 17129 messages were not answered, of which 3002 had a spam level of 
3 or more and 1103 messages would have been answered if they had come from 
inside addresses (our users can choose to answer only inside our domain).


2570 auto-replies were sent. Looking at the logs it seems that perhaps 25% 
of these replies should not have been sent and most of these can actually 
be caught with some more filters in the python script. That makes 200 
backscatter messages a week for us this summer - probably worth it, and 
the filters can be improved.


/skitta
checking out rfc3834 right now - we seem to be fairly
compliant :)
--
 Tomas 'Skitta' Lindroos.
 UNIX systems administrator, Åbo Akademi University, Computing Centre
 [EMAIL PROTECTED], +358-40-5177716
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Spam and sieve vacation

2007-08-27 Thread Rudy Gevaert
Janne Peltonen wrote:
> On Fri, Aug 24, 2007 at 11:58:04PM +0200, Rudy Gevaert wrote:
>>> Now I'd like to ask the people on this list about their experiences
>>> using the sieve vacation module. The risks of automatically
>>> responding to spam / automatically forwarding spam / ending up in
>>> sorceror's apprentice mode / ending up having our mail servers
>>> blacklisted as spam relays - would they be acceptably low?
>> We (Ghent University) are using an Ironport appliance to tag spam.  We 
>> allow our users to forward email and to set vacations.  We deliver all 
>> messages that have a score lower that X (the higher X the more chance 
>> it's spam).  For outgoing messages if we think a message is spam we put 
>> in a quarantine.  Thus preventing the sending out of spam.
> 
> This is interesting. What does it mean that a message gets put in
> quarantine? Does somebody have to approve it manually before it gets out
> and away? 

No, if it ends up in the quarantine it gets deleted when the appliance 
reaches 80% of its disk space.

If somebody would mail us we could go and have a look.  But nobody has 
emailed us yet. :)

How many such messages do you get per day/week? How big is
> your user base?

We have almost 50.000 users.  Not counting all other users that are 
hosted on servers inside our mail domain (we don't have much control 
over them).

-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert  [EMAIL PROTECTED]  tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep SystemenSystems group
Universiteit Gent Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Spam and sieve vacation

2007-08-27 Thread Janne Peltonen
On Fri, Aug 24, 2007 at 11:54:38AM -0400, Jorey Bump wrote:
> In my opinion, no amount of backscatter is acceptable, so I don't allow 
> user-configurable autoresponders or forwarding. My antispam measures 
> have reduced the amount that makes it to the user's inbox to about 
> 5/week, so I will make a rare exception, but only if I configure it 
> myself.

5/week? Whee. We might achieve something remotely approaching that with
personalized bayesian filtering (a multi-discipline, internationaly
connected university receives quite a lot of ham that looks very much
like spam, so we are a bit paranoid about false positives).

> Forwarding has proven to be more risky than autoresponses, 
> because agressive ESPs can create a temporary DoS to their sites for the 
> entire server. This is particularly frustrating when the cause is your 
> own user marking a forwarded message as spam.
> 
> On systems that I use but don't manage, autoresponders and forwarding do 
> cause problems, and servers get publicly blacklisted regularly. There is 
> also an increase in volume caused by the backscatter from autoresponses, 
> affecting both bandwidth and storage needs.
> 
> That said, both features can be useful and even justifiable, but have 
> fallen into disfavor due to the problems they cause. RFC 3834 compliance 
> and continual evaluation of your antispam measures will help. 
> Unfortunately, demand for these features often has a political component 
> that can affect you professionally, so only you can decide what's best.

I'm trying to battle the political component. ;) I don't have much to
fear, though, since this appears to be one professor against the IT
department, university board, and so on. That is: my boss understands
that this is a trade-off between a useful feature and a risk of getting
blacklisted... ;)

Thanks for your insight again.


--Janne
-- 
Janne Peltonen <[EMAIL PROTECTED]>

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Spam and sieve vacation

2007-08-27 Thread Janne Peltonen
On Fri, Aug 24, 2007 at 11:58:04PM +0200, Rudy Gevaert wrote:
> > Now I'd like to ask the people on this list about their experiences
> > using the sieve vacation module. The risks of automatically
> > responding to spam / automatically forwarding spam / ending up in
> > sorceror's apprentice mode / ending up having our mail servers
> > blacklisted as spam relays - would they be acceptably low?
> 
> We (Ghent University) are using an Ironport appliance to tag spam.  We 
> allow our users to forward email and to set vacations.  We deliver all 
> messages that have a score lower that X (the higher X the more chance 
> it's spam).  For outgoing messages if we think a message is spam we put 
> in a quarantine.  Thus preventing the sending out of spam.

This is interesting. What does it mean that a message gets put in
quarantine? Does somebody have to approve it manually before it gets out
and away? How many such messages do you get per day/week? How big is
your user base?

Thanks,


--Janne
-- 
Janne Peltonen <[EMAIL PROTECTED]>

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Spam and sieve vacation

2007-08-24 Thread Rudy Gevaert
Janne Peltonen wrote:

> Now I'd like to ask the people on this list about their experiences
> using the sieve vacation module. The risks of automatically
> responding to spam / automatically forwarding spam / ending up in
> sorceror's apprentice mode / ending up having our mail servers
> blacklisted as spam relays - would they be acceptably low?

We (Ghent University) are using an Ironport appliance to tag spam.  We 
allow our users to forward email and to set vacations.  We deliver all 
messages that have a score lower that X (the higher X the more chance 
it's spam).  For outgoing messages if we think a message is spam we put 
in a quarantine.  Thus preventing the sending out of spam.

Rudy


-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert  [EMAIL PROTECTED]  tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur  Direction ICT, Infrastructure dept.
Groep Systemen Systems group
Universiteit Gent  Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Spam and sieve vacation

2007-08-24 Thread Jorey Bump
Janne Peltonen wrote:
> On Fri, Aug 24, 2007 at 07:47:28AM -0400, Jorey Bump wrote:
> 
>> If you don't get much spam, sieve vacation is suitable.
> 
> But how much is much, in your opinion? Say, 4 spam messages per day per user,
> with 50 000 users? Would that be much? If, during summer, 25% of our
> users were to have vacation active at any given time, that'd result in
> 50 000 vacation spams per day...

In my opinion, no amount of backscatter is acceptable, so I don't allow 
user-configurable autoresponders or forwarding. My antispam measures 
have reduced the amount that makes it to the user's inbox to about 
5/week, so I will make a rare exception, but only if I configure it 
myself. Forwarding has proven to be more risky than autoresponses, 
because agressive ESPs can create a temporary DoS to their sites for the 
entire server. This is particularly frustrating when the cause is your 
own user marking a forwarded message as spam.

On systems that I use but don't manage, autoresponders and forwarding do 
cause problems, and servers get publicly blacklisted regularly. There is 
also an increase in volume caused by the backscatter from autoresponses, 
affecting both bandwidth and storage needs.

That said, both features can be useful and even justifiable, but have 
fallen into disfavor due to the problems they cause. RFC 3834 compliance 
and continual evaluation of your antispam measures will help. 
Unfortunately, demand for these features often has a political component 
that can affect you professionally, so only you can decide what's best.

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Spam and sieve vacation

2007-08-24 Thread Janne Peltonen
On Fri, Aug 24, 2007 at 07:47:28AM -0400, Jorey Bump wrote:
> > The policy in our university has long been to discourage using auto
> > responders (two of the main reasons being, we don't want to end up
> > forwarding spam to innocent third parties, and neither want to
> > automatically confirm to a spammer that an address works - auto-answers
> > to lists and other traditional pitfalls are more easy to avoid).  So we
> > don't support sieve vacation, either.
> > Now I'd like to ask the people on this list about their experiences
> > using the sieve vacation module. The risks of automatically
> > responding to spam / automatically forwarding spam / ending up in
> > sorceror's apprentice mode / ending up having our mail servers
> > blacklisted as spam relays - would they be acceptably low?
> 
> The risks are dependent on how effective your antispam measures are. If 
> you find that your institution is still delivering a high amount of spam 
> to user inboxes, it might be wise to continue the ban on autoreponders.

Well, abt 96% of all the mail we receive (or tries to reach us) is
recognized as spam, either blocked at smtp level (using blacklists) or
tagged as such by spamassassin & friends. It's harder to give a measure
on how much of the remaining 4% is still spam, for obvious reasons. ;)
There is some spam trickling through all the time, and when spammers get
innovative, the amount of spam that ends up visible to the users will
grow for a while. About 1 message in 50 that I actually see in my INBOX
is spam.

The problem is, of course, that the spam that isn't classified as such
isn't classified as spam because it's hard to automatically classify it
as spam. So, even if sieve vacation won't answer suspicious messages,
it would probably answer the spam it sees...

> If you don't get much spam, sieve vacation is suitable.

But how much is much, in your opinion? Say, 4 spam messages per day per user,
with 50 000 users? Would that be much? If, during summer, 25% of our
users were to have vacation active at any given time, that'd result in
50 000 vacation spams per day...

> Providing a usable frontend for ordinary users is the real challenge.

So it is.

Thanks for your insights.


--Janne
-- 
Janne Peltonen <[EMAIL PROTECTED]>

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Spam and sieve vacation

2007-08-24 Thread Jorey Bump
Janne Peltonen wrote:

> The policy in our university has long been to discourage using auto
> responders (two of the main reasons being, we don't want to end up
> forwarding spam to innocent third parties, and neither want to
> automatically confirm to a spammer that an address works - auto-answers
> to lists and other traditional pitfalls are more easy to avoid).  So we
> don't support sieve vacation, either.

[snip]

> Now I'd like to ask the people on this list about their experiences
> using the sieve vacation module. The risks of automatically
> responding to spam / automatically forwarding spam / ending up in
> sorceror's apprentice mode / ending up having our mail servers
> blacklisted as spam relays - would they be acceptably low?

The risks are dependent on how effective your antispam measures are. If 
you find that your institution is still delivering a high amount of spam 
to user inboxes, it might be wise to continue the ban on autoreponders.

If you don't get much spam, sieve vacation is suitable. Providing a 
usable frontend for ordinary users is the real challenge.

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Spam and sieve vacation

2007-08-24 Thread Janne Peltonen
Hi!

The policy in our university has long been to discourage using auto
responders (two of the main reasons being, we don't want to end up
forwarding spam to innocent third parties, and neither want to
automatically confirm to a spammer that an address works - auto-answers
to lists and other traditional pitfalls are more easy to avoid).  So we
don't support sieve vacation, either.

Now I heard the people at MIT have reversed their policy on auto
responders abt a year ago (haven't confirmed this, though). Apparently
they're using sieve 07 (not confirmed this, either), which contains
sieve-vacation-07, which appears to be more or less identical to
sieve-vacation-04, which is implemented by Cyrus 2.3.x. And vacation-04
appears to implement the recommendations for auto responders rfc
(rfc3834).

Now I'd like to ask the people on this list about their experiences
using the sieve vacation module. The risks of automatically
responding to spam / automatically forwarding spam / ending up in
sorceror's apprentice mode / ending up having our mail servers
blacklisted as spam relays - would they be acceptably low?

(It seems to me that MIT is at a lesser risk of ending up on permanent
blacklists than a relatively unknown university from a remote
country...)

Thanks,


--Janne Peltonen
imap admin
Univ. of Helsinki
-- 
Janne Peltonen <[EMAIL PROTECTED]>

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Expiry date for sieve vacation messages

2007-08-10 Thread Gary Mills
What would be required to add an expiry date feature to sieve vacation
messages?  The need is pretty clear: people set up a vacation message
when they begin their vacation, but forget to remove it when they
return.  They have no indication in their e-mail reader that their
vacation message is still being sent out.

-- 
-Gary Mills--Unix Support--U of M Academic Computing and Networking-

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve vacation

2007-08-01 Thread Marco Colombo
Ethariel wrote:
> Hello,
> 
> I've installed cyrus-imapd (2.2.13 on MDV 2007). Sieve scripts are
> working fine except 'vacation'.
> User 1 has a vacation script with days: 1
> User 2 sents an email to user1 it receives an answer (the correct
> vacation message).
> Then after User2 can send email the same day or three days after, it
> will not receive anymore automatic answer.
> If I delete user1 script, and recreate a new one with another vacation
> alert, then it works fine for one more mail.
> 
> The Sieve draft describes 'Day' as the period between two answers, but
> this value can be bypass by 'SITE' value.
> Where do I check site value ? Or are they any known bugs in 2.2.13 Sieve
> implementation ?
> (I've searched the archive without success).
> 
> Thks to all
> 
> Ethariel

Hi,
I've been hit by the same problem, recently. I've positively verified
that sieve pushed an entry into the deliverdb (which is used to remember
 whom the autoresponse has already been sent to) with a timestamp of
(now + 3 days) instead of +1.

I've been digging through the source, both of 2.2.12 (which I'm running)
and of 2.3.8. The current minimum for :days seems to be hardcoded to 3 days.

I'm not totally sure this is intented, tho. It smells like an 'unwanted
feature'. Here's what I've found:

- in the sieve source, you've got a function named
sieve_register_vacation(), which take a C struct as an argument. This
struct has 4 member, of which two have inspiring names: min_response and
max_response. The relevant part of the code follows:

if (v->min_response == 0) v->min_response = 3;
if (v->max_response == 0) v->max_response = 90;

so, if the caller doesn't specify a min_response, the default is 3.
We're here inside the sieve parser, so this min_response is what
according to the RFC is a limit set by the implementation, and it's
totally fine, per spec, for the parser to accept an user script with
:days 1 but set it to the minimum value, 3.
You can see the source here:
https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/sieve/interp.c?rev=1.24

- in the same place you find the source of sievec, which is the
command-line compiler for sieve scripts. This program only parses and
compliles a sieve script, and never actually executes it. Sieve scripts
are executed by lmtpd (part of the cyrus imapd), as a step of the
delivery process. Inside sievec.c you find:

sieve_vacation_t vacation = {
0,  /* min response */
0,  /* max response */
(sieve_callback *) &foo,/* autorespond() */
(sieve_callback *) &foo /* send_response() */
};

The foo() function is a dummy one, the two callback are called only at
execution time, not at parse/compile time, of course. Note that as far
as sievec is concerned, it does not specify limits, so the library
defaults, 3 and 90, come into play.

- in the cyrus-imapd source, you find timsieved, which provides a way
for remote users to update their sieve scripts. It seems it does not use
sievec to compile the script, it links to the sieve library instead.
Unsurprisingly, you see:

sieve_vacation_t vacation = {
0,  /* min response */
0,  /* max response */
(sieve_callback *) &foo,/* autorespond() */
(sieve_callback *) &foo /* send_response() */
};

Scripts are compiled by timsieved exactly in the same way sievec does.
See:
https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/timsieved/scripttest.c?rev=1.24

- now the fun starts. There's another place where you can find a sieve
parser. It's inside lmtpd. If I'm not mistaken, this parser is not used
to parse/compile scripts, as lmtpd now looks for pre-compiled scripts
only. Anyway there is it, and it also calls sieve_register_vacation(),
but now the struct is different:

/* vacation support */
sieve_vacation_t vacation = {
1,  /* min response */
31, /* max response */
&autorespond,   /* autorespond() */
&send_response, /* send_response() */
};

Now, I think this struct is not actually been used any more. But it's
interesting to note that here the min response is set to 1. This
overrides the library default, and becomes the new implementation minimum.

See:
https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/lmtp_sieve.c?rev=1.15

I'd hardly call this a bug, but suspect that originally the intended
behaviour of sieve inside lmtpd (that is, cyrus imapd), was to set the
minimum of :days to 1, and not 3. By moving to precompiled scripts, this
 setting has been lost, since all the other compilers now relay on the
library default, which is 3.

Of course I'm not much familiar with all the source, and I may be
missing something.

.TM.

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve vacation with postfix [au f Viren überprüft]

2007-07-25 Thread Hans Moser
Jeffrey McDonald schrieb:
>  Here is the sieve vacation instruction:
> 
> # Vacation
> vacation :days 7 :addresses ["[EMAIL PROTECTED]",  
> "[EMAIL PROTECTED]", "[EMAIL PROTECTED]",  
> "[EMAIL PROTECTED]"] :subject "not here" "I'm away.  I will  
> return in 7 days. ";
Did you use "require vacation"?

The following works for me (2.2.12 + postfix 2.3.x)

--

require "vacation";

vacation
:addresses [ "[EMAIL PROTECTED]", "[EMAIL PROTECTED]" ]
:subject "test"
   "away";

--

Note: One of the addresses in :addresses [] must be in the To:-, CC:- or 
BCC:-header of the mail to activate vacation.


Hans

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve vacation with postfix

2007-07-18 Thread FORMER 03 | Baltasar Cevc
Hi Jeff,

On 18.07.2007, at 22:36, Jeffrey McDonald wrote:

> Hi,
> thanks for your response, I can't find any documentation about  
> clearing the vacation database for sieve, can you point me to the  
> command or documentation for that?
> thanks in advance,
> jeff

Delete the duplicate database (it's a file called deliver.db in you  
"configdirectory" which is not the /etc/... path but rather /var/ 
spool/cyrus/imap or something like that). That database contains  
vacation informatio, too.

Baltasar


--
Baltasar Cevc

_ FORMER 03 GmbH
_ infanteriestraße 19 haus 6 eg
_ D-80797 muenchen

_ http://www.former03.de



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieve vacation with postfix

2007-07-18 Thread FORMER 03 | Baltasar Cevc
On 17.07.2007, at 17:30, Jeffrey McDonald wrote:

> Hi,
>
> I'm trying to use sieve to setup a vacation message.   The important
> parameters for delivery (from what I've gathered from a search of the
> archive) are:
...
>
> I don't see any errors in the log files and I see no message ever
> recieved by the  postfix daemon from the sieve filter.   The
> /usr/lib/sendmail executable is setup to sendmail.postfix and this
> executable sends mail properly if executed outside of sieve.

Have you configured your sendmail path in imapd.conf? As sieve keeps
track of any vacation messages, try to delete the duplicate database
before testing so that it will start from a clean system (this
database contains the vacation state, too).

Hope that helps,
Baltasar


--
Baltasar Cevc

_ FORMER 03 GmbH
_ infanteriestraße 19 haus 6 eg
_ D-80797 muenchen

_ http://www.former03.de



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


sieve vacation with postfix

2007-07-17 Thread Jeffrey McDonald
Hi,

I'm trying to use sieve to setup a vacation message.   The important  
parameters for delivery (from what I've gathered from a search of the  
archive) are:

cyrus-imapd version 2.2.12  this is a packaged version from RHEL version 4.
I'm using postfix 2.2.10-1 as the delivery agent.  cyrus is setup to  
run lmtp and postfix is delivering directly to cyrus lmtp.  postfix  
smtp is delivering via lmtp on the same host.

e.g. postfix/main.cf
mailbox_transport=lmtp:unix:/var/lib/imap/socket/lmtp

cyrus.conf:

lmtp  cmd="lmtpd" listen="FQDN:lmtp" prefork=1

Everything seems to be working great except sieve vacation.  Sieve is  
filtering mail properly, but when vacation is setup, I don't see any  
attempt from sieve to actually create an e-mail.  Here is the sieve  
vacation instruction:

# Vacation
vacation :days 7 :addresses ["[EMAIL PROTECTED]",  
"[EMAIL PROTECTED]", "[EMAIL PROTECTED]",  
"[EMAIL PROTECTED]"] :subject "not here" "I'm away.  I will  
return in 7 days. ";


I don't see any errors in the log files and I see no message ever  
recieved by the  postfix daemon from the sieve filter.   The  
/usr/lib/sendmail executable is setup to sendmail.postfix and this  
executable sends mail properly if executed outside of sieve.

I've searched some of the archive but I've been able to find any  
solution to this problem.  If it matters, the script is created by  
horde/ingo 1.8.10.

Please advise.

Thanks,
Jeff McDonald




---
Jeffrey McDonald, PhD   School of Computational Science
Computer Research SpecialistHigh Performance Computing Manager
450 Dirac Science Library   [EMAIL PROTECTED]
Florida State UniversityTallahassee, FL 32303-4120
phone: +1 850-644-5559  fax:   +1 850-644-0098



This message was sent using IMP, the Internet Messaging Program.


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Sieve vacation

2007-06-11 Thread Ethariel

Hello,

I've installed cyrus-imapd (2.2.13 on MDV 2007). Sieve scripts are working
fine except 'vacation'.
User 1 has a vacation script with days: 1
User 2 sents an email to user1 it receives an answer (the correct vacation
message).
Then after User2 can send email the same day or three days after, it will
not receive anymore automatic answer.
If I delete user1 script, and recreate a new one with another vacation
alert, then it works fine for one more mail.

The Sieve draft describes 'Day' as the period between two answers, but this
value can be bypass by 'SITE' value.
Where do I check site value ? Or are they any known bugs in 2.2.13 Sieve
implementation ?
(I've searched the archive without success).

Thks to all

Ethariel

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

  1   2   3   >